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_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
7 | 7 |
8 #include <X11/extensions/shape.h> | 8 #include <X11/extensions/shape.h> |
9 #include <X11/Xlib.h> | 9 #include <X11/Xlib.h> |
10 | 10 |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // Overridden from aura::WindowTreeHost: | 149 // Overridden from aura::WindowTreeHost: |
150 ui::EventSource* GetEventSource() override; | 150 ui::EventSource* GetEventSource() override; |
151 gfx::AcceleratedWidget GetAcceleratedWidget() override; | 151 gfx::AcceleratedWidget GetAcceleratedWidget() override; |
152 void Show() override; | 152 void Show() override; |
153 void Hide() override; | 153 void Hide() override; |
154 gfx::Rect GetBounds() const override; | 154 gfx::Rect GetBounds() const override; |
155 void SetBounds(const gfx::Rect& requested_bounds) override; | 155 void SetBounds(const gfx::Rect& requested_bounds) override; |
156 gfx::Point GetLocationOnNativeScreen() const override; | 156 gfx::Point GetLocationOnNativeScreen() const override; |
157 void SetCapture() override; | 157 void SetCapture() override; |
158 void ReleaseCapture() override; | 158 void ReleaseCapture() override; |
159 void PostNativeEvent(const base::NativeEvent& native_event) override; | |
160 void SetCursorNative(gfx::NativeCursor cursor) override; | 159 void SetCursorNative(gfx::NativeCursor cursor) override; |
161 void MoveCursorToNative(const gfx::Point& location) override; | 160 void MoveCursorToNative(const gfx::Point& location) override; |
162 void OnCursorVisibilityChangedNative(bool show) override; | 161 void OnCursorVisibilityChangedNative(bool show) override; |
163 | 162 |
164 // Overridden frm ui::EventSource | 163 // Overridden frm ui::EventSource |
165 ui::EventProcessor* GetEventProcessor() override; | 164 ui::EventProcessor* GetEventProcessor() override; |
166 | 165 |
167 private: | 166 private: |
168 // Initializes our X11 surface to draw on. This method performs all | 167 // Initializes our X11 surface to draw on. This method performs all |
169 // initialization related to talking to the X11 server. | 168 // initialization related to talking to the X11 server. |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 base::CancelableCallback<void()> delayed_resize_task_; | 336 base::CancelableCallback<void()> delayed_resize_task_; |
338 | 337 |
339 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; | 338 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; |
340 | 339 |
341 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); | 340 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); |
342 }; | 341 }; |
343 | 342 |
344 } // namespace views | 343 } // namespace views |
345 | 344 |
346 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 345 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
OLD | NEW |