| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 virtual void ReleaseCapture() OVERRIDE; | 150 virtual void ReleaseCapture() OVERRIDE; |
| 151 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; | 151 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
| 152 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 152 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
| 153 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; | 153 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; |
| 154 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; | 154 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; |
| 155 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; | 155 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; |
| 156 | 156 |
| 157 // Overridden frm ui::EventSource | 157 // Overridden frm ui::EventSource |
| 158 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; | 158 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; |
| 159 | 159 |
| 160 private: | 160 private: |
| 161 // Initializes our X11 surface to draw on. This method performs all | 161 // Initializes our X11 surface to draw on. This method performs all |
| 162 // initialization related to talking to the X11 server. | 162 // initialization related to talking to the X11 server. |
| 163 void InitX11Window(const Widget::InitParams& params); | 163 void InitX11Window(const Widget::InitParams& params); |
| 164 | 164 |
| 165 // Creates an aura::WindowEventDispatcher to contain the |content_window|, | 165 // Creates an aura::WindowEventDispatcher to contain the |content_window|, |
| 166 // along with all aura client objects that direct behavior. | 166 // along with all aura client objects that direct behavior. |
| 167 aura::WindowEventDispatcher* InitDispatcher(const Widget::InitParams& params); | 167 aura::WindowEventDispatcher* InitDispatcher(const Widget::InitParams& params); |
| 168 | 168 |
| 169 // Called when |xwindow_|'s _NET_WM_STATE property is updated. | 169 // Called when |xwindow_|'s _NET_WM_STATE property is updated. |
| 170 void OnWMStateUpdated(); | 170 void OnWMStateUpdated(); |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 // attention to the window or completely ignore the hint. We stop flashing | 318 // attention to the window or completely ignore the hint. We stop flashing |
| 319 // the frame when |xwindow_| gains focus or handles a mouse button event. | 319 // the frame when |xwindow_| gains focus or handles a mouse button event. |
| 320 bool urgency_hint_set_; | 320 bool urgency_hint_set_; |
| 321 | 321 |
| 322 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); | 322 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); |
| 323 }; | 323 }; |
| 324 | 324 |
| 325 } // namespace views | 325 } // namespace views |
| 326 | 326 |
| 327 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 327 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
| OLD | NEW |