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 "base/macros.h" | 8 #include "base/macros.h" |
9 #include "mojo/services/public/cpp/view_manager/view_observer.h" | 9 #include "mojo/services/public/cpp/view_manager/view_observer.h" |
10 #include "ui/aura/window_tree_host.h" | 10 #include "ui/aura/window_tree_host.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 void PostNativeEvent(const base::NativeEvent& native_event) override; | 49 void PostNativeEvent(const base::NativeEvent& native_event) override; |
50 void SetCursorNative(gfx::NativeCursor cursor) override; | 50 void SetCursorNative(gfx::NativeCursor cursor) override; |
51 void MoveCursorToNative(const gfx::Point& location) override; | 51 void MoveCursorToNative(const gfx::Point& location) override; |
52 void OnCursorVisibilityChangedNative(bool show) override; | 52 void OnCursorVisibilityChangedNative(bool show) override; |
53 | 53 |
54 // ui::EventSource: | 54 // ui::EventSource: |
55 ui::EventProcessor* GetEventProcessor() override; | 55 ui::EventProcessor* GetEventProcessor() override; |
56 | 56 |
57 // ViewObserver: | 57 // ViewObserver: |
58 void OnViewBoundsChanged(View* view, | 58 void OnViewBoundsChanged(View* view, |
59 const gfx::Rect& old_bounds, | 59 const Rect& old_bounds, |
60 const gfx::Rect& new_bounds) override; | 60 const Rect& new_bounds) override; |
61 | 61 |
62 View* view_; | 62 View* view_; |
63 | 63 |
64 gfx::Rect bounds_; | 64 gfx::Rect bounds_; |
65 | 65 |
66 scoped_ptr<SurfaceContextFactory> context_factory_; | 66 scoped_ptr<SurfaceContextFactory> context_factory_; |
67 | 67 |
68 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMojo); | 68 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMojo); |
69 }; | 69 }; |
70 | 70 |
71 } // namespace mojo | 71 } // namespace mojo |
72 | 72 |
73 #endif // MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_VIEW_MANAGER_H_ | 73 #endif // MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_VIEW_MANAGER_H_ |
OLD | NEW |