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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual gfx::Insets GetInsets() const OVERRIDE; | 42 virtual gfx::Insets GetInsets() const OVERRIDE; |
43 virtual void SetInsets(const gfx::Insets& insets) OVERRIDE; | 43 virtual void SetInsets(const gfx::Insets& insets) OVERRIDE; |
44 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; | 44 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; |
45 virtual void SetCapture() OVERRIDE; | 45 virtual void SetCapture() OVERRIDE; |
46 virtual void ReleaseCapture() OVERRIDE; | 46 virtual void ReleaseCapture() OVERRIDE; |
47 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; | 47 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; |
48 virtual bool ConfineCursorToRootWindow() OVERRIDE; | 48 virtual bool ConfineCursorToRootWindow() OVERRIDE; |
49 virtual void UnConfineCursor() OVERRIDE; | 49 virtual void UnConfineCursor() OVERRIDE; |
50 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; | 50 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
51 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 51 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
52 virtual void PrepareForShutdown() OVERRIDE; | |
53 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; | 52 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; |
54 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; | 53 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; |
55 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; | 54 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; |
56 | 55 |
57 // ui::EventSource: | 56 // ui::EventSource: |
58 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; | 57 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; |
59 | 58 |
60 // Overridden from NativeViewportClient: | 59 // Overridden from NativeViewportClient: |
61 virtual void OnCreated() OVERRIDE; | 60 virtual void OnCreated() OVERRIDE; |
62 virtual void OnDestroyed() OVERRIDE; | 61 virtual void OnDestroyed() OVERRIDE; |
63 virtual void OnBoundsChanged(const Rect& bounds) OVERRIDE; | 62 virtual void OnBoundsChanged(const Rect& bounds) OVERRIDE; |
64 virtual void OnEvent(const Event& event) OVERRIDE; | 63 virtual void OnEvent(const Event& event) OVERRIDE; |
65 | 64 |
66 static ui::ContextFactory* context_factory_; | 65 static ui::ContextFactory* context_factory_; |
67 | 66 |
68 ScopedMessagePipeHandle gles2_handle_; | 67 ScopedMessagePipeHandle gles2_handle_; |
69 RemotePtr<NativeViewport> native_viewport_; | 68 RemotePtr<NativeViewport> native_viewport_; |
70 base::Callback<void()> compositor_created_callback_; | 69 base::Callback<void()> compositor_created_callback_; |
71 | 70 |
72 gfx::Rect bounds_; | 71 gfx::Rect bounds_; |
73 | 72 |
74 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMojo); | 73 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMojo); |
75 }; | 74 }; |
76 | 75 |
77 } // namespace examples | 76 } // namespace examples |
78 } // namespace mojo | 77 } // namespace mojo |
79 | 78 |
80 #endif // MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_ | 79 #endif // MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_ |
OLD | NEW |