OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_AURA_WINDOW_TREE_HOST_X11_H_ | 5 #ifndef UI_AURA_WINDOW_TREE_HOST_X11_H_ |
6 #define UI_AURA_WINDOW_TREE_HOST_X11_H_ | 6 #define UI_AURA_WINDOW_TREE_HOST_X11_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "ui/aura/aura_export.h" | 9 #include "ui/aura/aura_export.h" |
10 #include "ui/aura/window_tree_host.h" | 10 #include "ui/aura/window_tree_host.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // WindowTreeHost: | 44 // WindowTreeHost: |
45 ui::EventSource* GetEventSource() override; | 45 ui::EventSource* GetEventSource() override; |
46 gfx::AcceleratedWidget GetAcceleratedWidget() override; | 46 gfx::AcceleratedWidget GetAcceleratedWidget() override; |
47 void Show() override; | 47 void Show() override; |
48 void Hide() override; | 48 void Hide() override; |
49 gfx::Rect GetBounds() const override; | 49 gfx::Rect GetBounds() const override; |
50 void SetBounds(const gfx::Rect& bounds) override; | 50 void SetBounds(const gfx::Rect& bounds) override; |
51 gfx::Point GetLocationOnNativeScreen() const override; | 51 gfx::Point GetLocationOnNativeScreen() const override; |
52 void SetCapture() override; | 52 void SetCapture() override; |
53 void ReleaseCapture() override; | 53 void ReleaseCapture() override; |
54 void PostNativeEvent(const base::NativeEvent& event) override; | |
55 void SetCursorNative(gfx::NativeCursor cursor_type) override; | 54 void SetCursorNative(gfx::NativeCursor cursor_type) override; |
56 void MoveCursorToNative(const gfx::Point& location) override; | 55 void MoveCursorToNative(const gfx::Point& location) override; |
57 void OnCursorVisibilityChangedNative(bool show) override; | 56 void OnCursorVisibilityChangedNative(bool show) override; |
58 | 57 |
59 // ui::EventSource overrides. | 58 // ui::EventSource overrides. |
60 ui::EventProcessor* GetEventProcessor() override; | 59 ui::EventProcessor* GetEventProcessor() override; |
61 | 60 |
62 protected: | 61 protected: |
63 // Called when X Configure Notify event is recevied. | 62 // Called when X Configure Notify event is recevied. |
64 virtual void OnConfigureNotify(); | 63 virtual void OnConfigureNotify(); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 namespace test { | 107 namespace test { |
109 | 108 |
110 // Set the default value of the override redirect flag used to | 109 // Set the default value of the override redirect flag used to |
111 // create a X window for WindowTreeHostX11. | 110 // create a X window for WindowTreeHostX11. |
112 AURA_EXPORT void SetUseOverrideRedirectWindowByDefault(bool override_redirect); | 111 AURA_EXPORT void SetUseOverrideRedirectWindowByDefault(bool override_redirect); |
113 | 112 |
114 } // namespace test | 113 } // namespace test |
115 } // namespace aura | 114 } // namespace aura |
116 | 115 |
117 #endif // UI_AURA_WINDOW_TREE_HOST_X11_H_ | 116 #endif // UI_AURA_WINDOW_TREE_HOST_X11_H_ |
OLD | NEW |