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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 // window size to the monitor size causes the WM to set the EWMH for | 177 // window size to the monitor size causes the WM to set the EWMH for |
178 // fullscreen. | 178 // fullscreen. |
179 gfx::Size AdjustSize(const gfx::Size& requested_size); | 179 gfx::Size AdjustSize(const gfx::Size& requested_size); |
180 | 180 |
181 // Called when |xwindow_|'s _NET_WM_STATE property is updated. | 181 // Called when |xwindow_|'s _NET_WM_STATE property is updated. |
182 void OnWMStateUpdated(); | 182 void OnWMStateUpdated(); |
183 | 183 |
184 // Called when |xwindow_|'s _NET_FRAME_EXTENTS property is updated. | 184 // Called when |xwindow_|'s _NET_FRAME_EXTENTS property is updated. |
185 void OnFrameExtentsUpdated(); | 185 void OnFrameExtentsUpdated(); |
186 | 186 |
| 187 // Called when |xwindow_| is mapped, either directly (in the case of |
| 188 // override-redirect windows) or in response to a MapNotify event. |
| 189 void OnX11WindowMapped(); |
| 190 |
| 191 // Called when |xwindow_| is unmapped. |
| 192 void OnX11WindowUnmapped(); |
| 193 |
187 // Updates |xwindow_|'s minimum and maximum size. | 194 // Updates |xwindow_|'s minimum and maximum size. |
188 void UpdateMinAndMaxSize(); | 195 void UpdateMinAndMaxSize(); |
189 | 196 |
190 // Updates |xwindow_|'s _NET_WM_USER_TIME if |xwindow_| is active. | 197 // Updates |xwindow_|'s _NET_WM_USER_TIME if |xwindow_| is active. |
191 void UpdateWMUserTime(const ui::PlatformEvent& event); | 198 void UpdateWMUserTime(const ui::PlatformEvent& event); |
192 | 199 |
193 // Sends a message to the x11 window manager, enabling or disabling the | 200 // Sends a message to the x11 window manager, enabling or disabling the |
194 // states |state1| and |state2|. | 201 // states |state1| and |state2|. |
195 void SetWMSpecState(bool enabled, ::Atom state1, ::Atom state2); | 202 void SetWMSpecState(bool enabled, ::Atom state1, ::Atom state2); |
196 | 203 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 | 289 |
283 // The window manager state bits. | 290 // The window manager state bits. |
284 std::set< ::Atom> window_properties_; | 291 std::set< ::Atom> window_properties_; |
285 | 292 |
286 // Whether |xwindow_| was requested to be fullscreen via SetFullscreen(). | 293 // Whether |xwindow_| was requested to be fullscreen via SetFullscreen(). |
287 bool is_fullscreen_; | 294 bool is_fullscreen_; |
288 | 295 |
289 // True if the window should stay on top of most other windows. | 296 // True if the window should stay on top of most other windows. |
290 bool is_always_on_top_; | 297 bool is_always_on_top_; |
291 | 298 |
| 299 // True if the window has the override_redirect bit set. |
| 300 bool is_override_redirect_; |
| 301 |
292 // True if the window has title-bar / borders provided by the window manager. | 302 // True if the window has title-bar / borders provided by the window manager. |
293 bool use_native_frame_; | 303 bool use_native_frame_; |
294 | 304 |
295 // True if a Maximize() call should be done after mapping the window. | 305 // True if a Maximize() call should be done after mapping the window. |
296 bool should_maximize_after_map_; | 306 bool should_maximize_after_map_; |
297 | 307 |
298 // Whether we used an ARGB visual for our window. | 308 // Whether we used an ARGB visual for our window. |
299 bool use_argb_visual_; | 309 bool use_argb_visual_; |
300 | 310 |
301 DesktopDragDropClientAuraX11* drag_drop_client_; | 311 DesktopDragDropClientAuraX11* drag_drop_client_; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 base::CancelableCallback<void()> delayed_resize_task_; | 359 base::CancelableCallback<void()> delayed_resize_task_; |
350 | 360 |
351 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; | 361 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; |
352 | 362 |
353 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); | 363 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); |
354 }; | 364 }; |
355 | 365 |
356 } // namespace views | 366 } // namespace views |
357 | 367 |
358 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 368 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
OLD | NEW |