| // Copyright 2015 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef GARNET_EXAMPLES_UI_SHAPES_SHAPES_VIEW_H_ |
| #define GARNET_EXAMPLES_UI_SHAPES_SHAPES_VIEW_H_ |
| |
| #include "lib/fxl/macros.h" |
| #include "lib/ui/scenic/cpp/resources.h" |
| #include "lib/ui/view_framework/base_view.h" |
| |
| class SkCanvas; |
| |
| namespace examples { |
| |
| class ShapesView : public mozart::BaseView { |
| public: |
| ShapesView(::fuchsia::ui::viewsv1::ViewManagerPtr view_manager, |
| fidl::InterfaceRequest<::fuchsia::ui::viewsv1token::ViewOwner> |
| view_owner_request); |
| |
| ~ShapesView() override; |
| |
| private: |
| // |BaseView|: |
| void OnSceneInvalidated( |
| fuchsia::images::PresentationInfo presentation_info) override; |
| |
| scenic::ShapeNode background_node_; |
| scenic::ShapeNode card_node_; |
| scenic::ShapeNode circle_node_; |
| |
| FXL_DISALLOW_COPY_AND_ASSIGN(ShapesView); |
| }; |
| |
| } // namespace examples |
| |
| #endif // GARNET_EXAMPLES_UI_SHAPES_SHAPES_VIEW_H_ |