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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <X11/extensions/shape.h> | 10 #include <X11/extensions/shape.h> |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 void SizeConstraintsChanged() override; | 154 void SizeConstraintsChanged() override; |
155 | 155 |
156 // Overridden from aura::WindowTreeHost: | 156 // Overridden from aura::WindowTreeHost: |
157 gfx::Transform GetRootTransform() const override; | 157 gfx::Transform GetRootTransform() const override; |
158 ui::EventSource* GetEventSource() override; | 158 ui::EventSource* GetEventSource() override; |
159 gfx::AcceleratedWidget GetAcceleratedWidget() override; | 159 gfx::AcceleratedWidget GetAcceleratedWidget() override; |
160 void ShowImpl() override; | 160 void ShowImpl() override; |
161 void HideImpl() override; | 161 void HideImpl() override; |
162 gfx::Rect GetBoundsInPixels() const override; | 162 gfx::Rect GetBoundsInPixels() const override; |
163 void SetBoundsInPixels(const gfx::Rect& requested_bounds_in_pixels) override; | 163 void SetBoundsInPixels(const gfx::Rect& requested_bounds_in_pixels) override; |
164 gfx::Point GetLocationOnNativeScreen() const override; | 164 gfx::Point GetLocationOnScreenInPixels() const override; |
165 void SetCapture() override; | 165 void SetCapture() override; |
166 void ReleaseCapture() override; | 166 void ReleaseCapture() override; |
167 void SetCursorNative(gfx::NativeCursor cursor) override; | 167 void SetCursorNative(gfx::NativeCursor cursor) override; |
168 void MoveCursorToNative(const gfx::Point& location) override; | 168 void MoveCursorToScreenLocationInPixels( |
| 169 const gfx::Point& location_in_pixels) override; |
169 void OnCursorVisibilityChangedNative(bool show) override; | 170 void OnCursorVisibilityChangedNative(bool show) override; |
170 | 171 |
171 private: | 172 private: |
172 friend class DesktopWindowTreeHostX11HighDPITest; | 173 friend class DesktopWindowTreeHostX11HighDPITest; |
173 // Initializes our X11 surface to draw on. This method performs all | 174 // Initializes our X11 surface to draw on. This method performs all |
174 // initialization related to talking to the X11 server. | 175 // initialization related to talking to the X11 server. |
175 void InitX11Window(const Widget::InitParams& params); | 176 void InitX11Window(const Widget::InitParams& params); |
176 | 177 |
177 // Creates an aura::WindowEventDispatcher to contain the |content_window|, | 178 // Creates an aura::WindowEventDispatcher to contain the |content_window|, |
178 // along with all aura client objects that direct behavior. | 179 // along with all aura client objects that direct behavior. |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 | 428 |
428 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; | 429 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; |
429 base::WeakPtrFactory<DesktopWindowTreeHostX11> weak_factory_; | 430 base::WeakPtrFactory<DesktopWindowTreeHostX11> weak_factory_; |
430 | 431 |
431 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); | 432 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); |
432 }; | 433 }; |
433 | 434 |
434 } // namespace views | 435 } // namespace views |
435 | 436 |
436 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 437 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
OLD | NEW |