OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_AURA_WINDOW_TREE_HOST_MOJO_H_ | 5 #ifndef MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_ |
6 #define MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_ | 6 #define MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_ |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "mojo/services/native_viewport/native_viewport.mojom.h" | 9 #include "mojo/services/native_viewport/native_viewport.mojom.h" |
10 #include "ui/aura/window_tree_host.h" | 10 #include "ui/aura/window_tree_host.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; | 46 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; |
47 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; | 47 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; |
48 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; | 48 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; |
49 | 49 |
50 // ui::EventSource: | 50 // ui::EventSource: |
51 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; | 51 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; |
52 | 52 |
53 // Overridden from NativeViewportClient: | 53 // Overridden from NativeViewportClient: |
54 virtual void OnCreated() OVERRIDE; | 54 virtual void OnCreated() OVERRIDE; |
55 virtual void OnDestroyed() OVERRIDE; | 55 virtual void OnDestroyed() OVERRIDE; |
56 virtual void OnBoundsChanged(const Rect& bounds) OVERRIDE; | 56 virtual void OnBoundsChanged(RectPtr bounds) OVERRIDE; |
57 virtual void OnEvent(const Event& event, | 57 virtual void OnEvent(EventPtr event, |
58 const mojo::Callback<void()>& callback) OVERRIDE; | 58 const mojo::Callback<void()>& callback) OVERRIDE; |
59 | 59 |
60 static ContextFactoryMojo* context_factory_; | 60 static ContextFactoryMojo* context_factory_; |
61 | 61 |
62 NativeViewportPtr native_viewport_; | 62 NativeViewportPtr native_viewport_; |
63 base::Callback<void()> compositor_created_callback_; | 63 base::Callback<void()> compositor_created_callback_; |
64 | 64 |
65 gfx::Rect bounds_; | 65 gfx::Rect bounds_; |
66 | 66 |
67 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMojo); | 67 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMojo); |
68 }; | 68 }; |
69 | 69 |
70 } // namespace mojo | 70 } // namespace mojo |
71 | 71 |
72 #endif // MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_ | 72 #endif // MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_ |
OLD | NEW |