Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: examples/ui/shapes/shapes_view.h

Issue 1559723002: Update the UI examples. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-14
Patch Set: address feedback Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « examples/ui/shapes/shapes_app.cc ('k') | examples/ui/shapes/shapes_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 // |GaneshView|:
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_
OLDNEW
« no previous file with comments | « examples/ui/shapes/shapes_app.cc ('k') | examples/ui/shapes/shapes_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698