OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_VIEW_MANAGER_H_ | 5 #ifndef MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_VIEW_MANAGER_H_ |
6 #define MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_VIEW_MANAGER_H_ | 6 #define MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_VIEW_MANAGER_H_ |
7 | 7 |
8 #include "mojo/services/public/cpp/view_manager/node_observer.h" | 8 #include "mojo/services/public/cpp/view_manager/node_observer.h" |
9 #include "ui/aura/window_tree_host.h" | 9 #include "ui/aura/window_tree_host.h" |
10 #include "ui/events/event_source.h" | 10 #include "ui/events/event_source.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; | 55 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
56 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 56 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
57 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; | 57 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; |
58 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; | 58 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; |
59 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; | 59 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; |
60 | 60 |
61 // ui::EventSource: | 61 // ui::EventSource: |
62 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; | 62 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; |
63 | 63 |
64 // view_manager::NodeObserver: | 64 // view_manager::NodeObserver: |
65 virtual void OnNodeBoundsChange( | 65 virtual void OnNodeBoundsChanged( |
66 view_manager::Node* node, | 66 view_manager::Node* node, |
67 const gfx::Rect& old_bounds, | 67 const gfx::Rect& old_bounds, |
68 const gfx::Rect& new_bounds, | 68 const gfx::Rect& new_bounds) OVERRIDE; |
69 view_manager::NodeObserver::DispositionChangePhase phase) OVERRIDE; | |
70 | 69 |
71 view_manager::Node* node_; | 70 view_manager::Node* node_; |
72 | 71 |
73 gfx::Rect bounds_; | 72 gfx::Rect bounds_; |
74 | 73 |
75 WindowTreeHostMojoDelegate* delegate_; | 74 WindowTreeHostMojoDelegate* delegate_; |
76 | 75 |
77 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMojo); | 76 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMojo); |
78 }; | 77 }; |
79 | 78 |
80 } // namespace mojo | 79 } // namespace mojo |
81 | 80 |
82 #endif // MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_VIEW_MANAGER_H_ | 81 #endif // MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_VIEW_MANAGER_H_ |
OLD | NEW |