OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/public/interfaces/native_viewport/native_viewport.mojom.
h" | 9 #include "mojo/services/public/interfaces/native_viewport/native_viewport.mojom.
h" |
10 #include "ui/aura/window_tree_host.h" | 10 #include "ui/aura/window_tree_host.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 virtual ui::EventSource* GetEventSource() OVERRIDE; | 37 virtual ui::EventSource* GetEventSource() OVERRIDE; |
38 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; | 38 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; |
39 virtual void Show() OVERRIDE; | 39 virtual void Show() OVERRIDE; |
40 virtual void Hide() OVERRIDE; | 40 virtual void Hide() OVERRIDE; |
41 virtual gfx::Rect GetBounds() const OVERRIDE; | 41 virtual gfx::Rect GetBounds() const OVERRIDE; |
42 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 42 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
43 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; | 43 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; |
44 virtual void SetCapture() OVERRIDE; | 44 virtual void SetCapture() OVERRIDE; |
45 virtual void ReleaseCapture() OVERRIDE; | 45 virtual void ReleaseCapture() OVERRIDE; |
46 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; | 46 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
47 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | |
48 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; | 47 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; |
49 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; | 48 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; |
50 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; | 49 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; |
51 | 50 |
52 // ui::EventSource: | 51 // ui::EventSource: |
53 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; | 52 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; |
54 | 53 |
55 // Overridden from NativeViewportClient: | 54 // Overridden from NativeViewportClient: |
56 virtual void OnCreated() OVERRIDE; | 55 virtual void OnCreated() OVERRIDE; |
57 virtual void OnDestroyed() OVERRIDE; | 56 virtual void OnDestroyed() OVERRIDE; |
58 virtual void OnBoundsChanged(RectPtr bounds) OVERRIDE; | 57 virtual void OnBoundsChanged(RectPtr bounds) OVERRIDE; |
59 virtual void OnEvent(EventPtr event, | 58 virtual void OnEvent(EventPtr event, |
60 const mojo::Callback<void()>& callback) OVERRIDE; | 59 const mojo::Callback<void()>& callback) OVERRIDE; |
61 | 60 |
62 static ContextFactoryImpl* context_factory_; | 61 static ContextFactoryImpl* context_factory_; |
63 | 62 |
64 NativeViewportPtr native_viewport_; | 63 NativeViewportPtr native_viewport_; |
65 base::Callback<void()> compositor_created_callback_; | 64 base::Callback<void()> compositor_created_callback_; |
66 | 65 |
67 gfx::Rect bounds_; | 66 gfx::Rect bounds_; |
68 | 67 |
69 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostImpl); | 68 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostImpl); |
70 }; | 69 }; |
71 | 70 |
72 } // namespace service | 71 } // namespace service |
73 } // namespace view_manager | 72 } // namespace view_manager |
74 } // namespace mojo | 73 } // namespace mojo |
75 | 74 |
76 #endif // MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_ | 75 #endif // MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_ |
OLD | NEW |