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 18 matching lines...) Expand all Loading... |
29 virtual ~WindowTreeHostMojo(); | 29 virtual ~WindowTreeHostMojo(); |
30 | 30 |
31 gfx::Rect bounds() const { return bounds_; } | 31 gfx::Rect bounds() const { return bounds_; } |
32 ScopedMessagePipeHandle TakeGLES2PipeHandle() { return gles2_handle_.Pass(); } | 32 ScopedMessagePipeHandle TakeGLES2PipeHandle() { return gles2_handle_.Pass(); } |
33 | 33 |
34 private: | 34 private: |
35 // WindowTreeHost: | 35 // WindowTreeHost: |
36 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; | 36 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; |
37 virtual void Show() OVERRIDE; | 37 virtual void Show() OVERRIDE; |
38 virtual void Hide() OVERRIDE; | 38 virtual void Hide() OVERRIDE; |
39 virtual void ToggleFullScreen() OVERRIDE; | |
40 virtual gfx::Rect GetBounds() const OVERRIDE; | 39 virtual gfx::Rect GetBounds() const OVERRIDE; |
41 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 40 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
42 virtual gfx::Insets GetInsets() const OVERRIDE; | |
43 virtual void SetInsets(const gfx::Insets& insets) OVERRIDE; | |
44 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; | 41 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; |
45 virtual void SetCapture() OVERRIDE; | 42 virtual void SetCapture() OVERRIDE; |
46 virtual void ReleaseCapture() OVERRIDE; | 43 virtual void ReleaseCapture() OVERRIDE; |
47 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; | 44 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; |
48 virtual bool ConfineCursorToRootWindow() OVERRIDE; | |
49 virtual void UnConfineCursor() OVERRIDE; | |
50 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; | 45 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
51 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 46 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
52 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; | 47 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; |
53 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; | 48 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; |
54 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; | 49 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; |
55 | 50 |
56 // ui::EventSource: | 51 // ui::EventSource: |
57 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; | 52 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; |
58 | 53 |
59 // Overridden from NativeViewportClient: | 54 // Overridden from NativeViewportClient: |
(...skipping 10 matching lines...) Expand all Loading... |
70 | 65 |
71 gfx::Rect bounds_; | 66 gfx::Rect bounds_; |
72 | 67 |
73 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMojo); | 68 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMojo); |
74 }; | 69 }; |
75 | 70 |
76 } // namespace examples | 71 } // namespace examples |
77 } // namespace mojo | 72 } // namespace mojo |
78 | 73 |
79 #endif // MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_ | 74 #endif // MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_ |
OLD | NEW |