Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 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 EXAMPLES_UI_SHAPES_SHAPES_VIEW_H_ | |
| 6 #define EXAMPLES_UI_SHAPES_SHAPES_VIEW_H_ | |
| 7 | |
| 8 #include "mojo/ui/ganesh_view.h" | |
| 9 | |
| 10 class SkCanvas; | |
| 11 | |
| 12 namespace examples { | |
| 13 | |
| 14 class ShapesView : public mojo::ui::GaneshView { | |
| 15 public: | |
| 16 ShapesView( | |
| 17 mojo::ApplicationImpl* app_impl, | |
| 18 const mojo::ui::ViewProvider::CreateViewCallback& create_view_callback); | |
| 19 | |
| 20 ~ShapesView() override; | |
| 21 | |
| 22 private: | |
| 23 // |View|: | |
|
viettrungluu
2016/01/13 00:10:57
This comment is accurate, though it was a bit conf
jeffbrown
2016/01/26 08:14:17
Good point. I'll change these.
| |
| 24 void OnLayout(mojo::ui::ViewLayoutParamsPtr layout_params, | |
| 25 mojo::Array<uint32_t> children_needing_layout, | |
| 26 const OnLayoutCallback& callback) override; | |
| 27 | |
| 28 void UpdateScene(); | |
| 29 void DrawContent(SkCanvas* canvas); | |
| 30 | |
| 31 mojo::Size size_; | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(ShapesView); | |
| 34 }; | |
| 35 | |
| 36 } // namespace examples | |
| 37 | |
| 38 #endif // EXAMPLES_UI_SHAPES_SHAPES_VIEW_H_ | |
| OLD | NEW |