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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(); |
171 | 171 |
172 // Called when |xwindow_|'s _NET_FRAME_EXTENTS property is updated. | 172 // Called when |xwindow_|'s _NET_FRAME_EXTENTS property is updated. |
173 void OnFrameExtentsUpdated(); | 173 void OnFrameExtentsUpdated(); |
174 | 174 |
| 175 // Updates |xwindow_|'s _NET_WM_USER_TIME if |xwindow_| is active. |
| 176 void UpdateWMUserTime(const ui::PlatformEvent& event); |
| 177 |
175 // Sends a message to the x11 window manager, enabling or disabling the | 178 // Sends a message to the x11 window manager, enabling or disabling the |
176 // states |state1| and |state2|. | 179 // states |state1| and |state2|. |
177 void SetWMSpecState(bool enabled, ::Atom state1, ::Atom state2); | 180 void SetWMSpecState(bool enabled, ::Atom state1, ::Atom state2); |
178 | 181 |
179 // Checks if the window manager has set a specific state. | 182 // Checks if the window manager has set a specific state. |
180 bool HasWMSpecProperty(const char* property) const; | 183 bool HasWMSpecProperty(const char* property) const; |
181 | 184 |
182 // Sets whether the window's borders are provided by the window manager. | 185 // Sets whether the window's borders are provided by the window manager. |
183 void SetUseNativeFrame(bool use_native_frame); | 186 void SetUseNativeFrame(bool use_native_frame); |
184 | 187 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 // attention to the window or completely ignore the hint. We stop flashing | 321 // 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. | 322 // the frame when |xwindow_| gains focus or handles a mouse button event. |
320 bool urgency_hint_set_; | 323 bool urgency_hint_set_; |
321 | 324 |
322 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); | 325 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); |
323 }; | 326 }; |
324 | 327 |
325 } // namespace views | 328 } // namespace views |
326 | 329 |
327 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 330 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
OLD | NEW |