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

Side by Side Diff: examples/ui/spinning_cube/spinning_cube_view.h

Issue 1991853003: Make BaseView et al. take an ApplicationConnector instead of an ApplicationImpl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh Created 4 years, 7 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXAMPLES_UI_SPINNING_CUBE_SPINNING_CUBE_VIEW_H_ 5 #ifndef EXAMPLES_UI_SPINNING_CUBE_SPINNING_CUBE_VIEW_H_
6 #define EXAMPLES_UI_SPINNING_CUBE_SPINNING_CUBE_VIEW_H_ 6 #define EXAMPLES_UI_SPINNING_CUBE_SPINNING_CUBE_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "examples/spinning_cube/spinning_cube.h" 10 #include "examples/spinning_cube/spinning_cube.h"
11 #include "mojo/ui/choreographer.h" 11 #include "mojo/ui/choreographer.h"
12 #include "mojo/ui/gl_view.h" 12 #include "mojo/ui/gl_view.h"
13 #include "mojo/ui/input_handler.h" 13 #include "mojo/ui/input_handler.h"
14 14
15 namespace examples { 15 namespace examples {
16 16
17 class SpinningCubeView : public mojo::ui::GLView, 17 class SpinningCubeView : public mojo::ui::GLView,
18 public mojo::ui::ChoreographerDelegate, 18 public mojo::ui::ChoreographerDelegate,
19 public mojo::ui::InputListener { 19 public mojo::ui::InputListener {
20 public: 20 public:
21 SpinningCubeView( 21 SpinningCubeView(
22 mojo::ApplicationImpl* app_impl, 22 mojo::InterfaceHandle<mojo::ApplicationConnector> app_connector,
23 mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request); 23 mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request);
24 24
25 ~SpinningCubeView() override; 25 ~SpinningCubeView() override;
26 26
27 private: 27 private:
28 // |GLView|: 28 // |GLView|:
29 void OnPropertiesChanged(uint32_t old_scene_version, 29 void OnPropertiesChanged(uint32_t old_scene_version,
30 mojo::ui::ViewPropertiesPtr old_properties) override; 30 mojo::ui::ViewPropertiesPtr old_properties) override;
31 31
32 // |ChoreographerDelegate|: 32 // |ChoreographerDelegate|:
(...skipping 16 matching lines...) Expand all
49 MojoTimeTicks drag_start_time_ = 0u; 49 MojoTimeTicks drag_start_time_ = 0u;
50 50
51 base::WeakPtrFactory<SpinningCubeView> weak_ptr_factory_; 51 base::WeakPtrFactory<SpinningCubeView> weak_ptr_factory_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(SpinningCubeView); 53 DISALLOW_COPY_AND_ASSIGN(SpinningCubeView);
54 }; 54 };
55 55
56 } // namespace examples 56 } // namespace examples
57 57
58 #endif // EXAMPLES_UI_SPINNING_CUBE_SPINNING_CUBE_VIEW_H_ 58 #endif // EXAMPLES_UI_SPINNING_CUBE_SPINNING_CUBE_VIEW_H_
OLDNEW
« no previous file with comments | « examples/ui/spinning_cube/spinning_cube_app.cc ('k') | examples/ui/spinning_cube/spinning_cube_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698