| 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 #include <X11/Xutil.h> | 10 #include <X11/Xutil.h> |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 void ConvertEventToDifferentHost(ui::LocatedEvent* located_event, | 228 void ConvertEventToDifferentHost(ui::LocatedEvent* located_event, |
| 229 DesktopWindowTreeHostX11* host); | 229 DesktopWindowTreeHostX11* host); |
| 230 | 230 |
| 231 // Resets the window region for the current widget bounds if necessary. | 231 // Resets the window region for the current widget bounds if necessary. |
| 232 void ResetWindowRegion(); | 232 void ResetWindowRegion(); |
| 233 | 233 |
| 234 // Serializes an image to the format used by _NET_WM_ICON. | 234 // Serializes an image to the format used by _NET_WM_ICON. |
| 235 void SerializeImageRepresentation(const gfx::ImageSkiaRep& rep, | 235 void SerializeImageRepresentation(const gfx::ImageSkiaRep& rep, |
| 236 std::vector<unsigned long>* data); | 236 std::vector<unsigned long>* data); |
| 237 | 237 |
| 238 // Returns an 8888 ARGB visual. Can return NULL if there is no matching | |
| 239 // visual on this display. | |
| 240 Visual* GetARGBVisual(); | |
| 241 | |
| 242 // See comment for variable open_windows_. | 238 // See comment for variable open_windows_. |
| 243 static std::list<XID>& open_windows(); | 239 static std::list<XID>& open_windows(); |
| 244 | 240 |
| 245 // Map the window (shows it) taking into account the given |show_state|. | 241 // Map the window (shows it) taking into account the given |show_state|. |
| 246 void MapWindow(ui::WindowShowState show_state); | 242 void MapWindow(ui::WindowShowState show_state); |
| 247 | 243 |
| 248 void SetWindowTransparency(); | 244 void SetWindowTransparency(); |
| 249 | 245 |
| 250 // Relayout the widget's client and non-client views. | 246 // Relayout the widget's client and non-client views. |
| 251 void Relayout(); | 247 void Relayout(); |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 XID modal_dialog_xid_; | 363 XID modal_dialog_xid_; |
| 368 | 364 |
| 369 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; | 365 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; |
| 370 | 366 |
| 371 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); | 367 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); |
| 372 }; | 368 }; |
| 373 | 369 |
| 374 } // namespace views | 370 } // namespace views |
| 375 | 371 |
| 376 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 372 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
| OLD | NEW |