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_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_ | 5 #ifndef MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_ |
6 #define MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_ | 6 #define MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_ |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "mojo/public/bindings/remote_ptr.h" | 9 #include "mojo/public/bindings/remote_ptr.h" |
10 #include "mojo/services/native_viewport/native_viewport.mojom.h" | 10 #include "mojo/services/native_viewport/native_viewport.mojom.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; | 53 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; |
54 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; | 54 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; |
55 | 55 |
56 // ui::EventSource: | 56 // ui::EventSource: |
57 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; | 57 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; |
58 | 58 |
59 // Overridden from NativeViewportClient: | 59 // Overridden from NativeViewportClient: |
60 virtual void OnCreated() OVERRIDE; | 60 virtual void OnCreated() OVERRIDE; |
61 virtual void OnDestroyed() OVERRIDE; | 61 virtual void OnDestroyed() OVERRIDE; |
62 virtual void OnBoundsChanged(const Rect& bounds) OVERRIDE; | 62 virtual void OnBoundsChanged(const Rect& bounds) OVERRIDE; |
63 virtual void OnEvent(const Event& event) OVERRIDE; | 63 virtual void OnEvent(const Event& event, |
| 64 const mojo::Callback<void()>& callback) OVERRIDE; |
64 | 65 |
65 static ui::ContextFactory* context_factory_; | 66 static ui::ContextFactory* context_factory_; |
66 | 67 |
67 ScopedMessagePipeHandle gles2_handle_; | 68 ScopedMessagePipeHandle gles2_handle_; |
68 RemotePtr<NativeViewport> native_viewport_; | 69 RemotePtr<NativeViewport> native_viewport_; |
69 base::Callback<void()> compositor_created_callback_; | 70 base::Callback<void()> compositor_created_callback_; |
70 | 71 |
71 gfx::Rect bounds_; | 72 gfx::Rect bounds_; |
72 | 73 |
73 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMojo); | 74 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMojo); |
74 }; | 75 }; |
75 | 76 |
76 } // namespace examples | 77 } // namespace examples |
77 } // namespace mojo | 78 } // namespace mojo |
78 | 79 |
79 #endif // MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_ | 80 #endif // MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_ |
OLD | NEW |