Sergey Ulanov | d283ff9 | 2023-03-03 20:59:47 | [diff] [blame] | 1 | // Copyright 2023 The Chromium Authors |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CONTENT_SHELL_BROWSER_FUCHSIA_VIEW_PRESENTER_H_ |
| 6 | #define CONTENT_SHELL_BROWSER_FUCHSIA_VIEW_PRESENTER_H_ |
| 7 | |
| 8 | #include <fuchsia/element/cpp/fidl.h> |
| 9 | |
| 10 | namespace content { |
| 11 | |
| 12 | class FuchsiaViewPresenter final { |
| 13 | public: |
| 14 | FuchsiaViewPresenter(); |
| 15 | ~FuchsiaViewPresenter(); |
| 16 | |
| 17 | FuchsiaViewPresenter(const FuchsiaViewPresenter&) = delete; |
| 18 | FuchsiaViewPresenter& operator=(const FuchsiaViewPresenter&) = delete; |
| 19 | |
| 20 | private: |
Sergey Ulanov | d283ff9 | 2023-03-03 20:59:47 | [diff] [blame] | 21 | fuchsia::element::ViewControllerPtr PresentFlatlandView( |
| 22 | fuchsia::ui::views::ViewportCreationToken viewport_creation_token); |
| 23 | |
| 24 | bool callbacks_were_set_ = false; |
| 25 | fuchsia::element::GraphicalPresenterPtr graphical_presenter_; |
| 26 | }; |
| 27 | |
| 28 | } // namespace content |
| 29 | |
| 30 | #endif // CONTENT_SHELL_BROWSER_FUCHSIA_VIEW_PRESENTER_H_ |