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 virtual ui::EventSource* GetEventSource() OVERRIDE; | 149 virtual ui::EventSource* GetEventSource() OVERRIDE; |
150 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; | 150 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; |
151 virtual void Show() OVERRIDE; | 151 virtual void Show() OVERRIDE; |
152 virtual void Hide() OVERRIDE; | 152 virtual void Hide() OVERRIDE; |
153 virtual gfx::Rect GetBounds() const OVERRIDE; | 153 virtual gfx::Rect GetBounds() const OVERRIDE; |
154 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 154 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
155 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; | 155 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; |
156 virtual void SetCapture() OVERRIDE; | 156 virtual void SetCapture() OVERRIDE; |
157 virtual void ReleaseCapture() OVERRIDE; | 157 virtual void ReleaseCapture() OVERRIDE; |
158 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; | 158 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
159 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | |
160 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; | 159 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; |
161 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; | 160 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; |
162 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; | 161 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; |
163 | 162 |
164 // Overridden frm ui::EventSource | 163 // Overridden frm ui::EventSource |
165 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; | 164 virtual 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 // attention to the window or completely ignore the hint. We stop flashing | 324 // attention to the window or completely ignore the hint. We stop flashing |
326 // the frame when |xwindow_| gains focus or handles a mouse button event. | 325 // the frame when |xwindow_| gains focus or handles a mouse button event. |
327 bool urgency_hint_set_; | 326 bool urgency_hint_set_; |
328 | 327 |
329 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); | 328 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); |
330 }; | 329 }; |
331 | 330 |
332 } // namespace views | 331 } // namespace views |
333 | 332 |
334 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 333 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
OLD | NEW |