| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 void ConvertEventToDifferentHost(ui::LocatedEvent* located_event, | 217 void ConvertEventToDifferentHost(ui::LocatedEvent* located_event, |
| 218 DesktopWindowTreeHostX11* host); | 218 DesktopWindowTreeHostX11* host); |
| 219 | 219 |
| 220 // Resets the window region for the current widget bounds if necessary. | 220 // Resets the window region for the current widget bounds if necessary. |
| 221 void ResetWindowRegion(); | 221 void ResetWindowRegion(); |
| 222 | 222 |
| 223 // Serializes an image to the format used by _NET_WM_ICON. | 223 // Serializes an image to the format used by _NET_WM_ICON. |
| 224 void SerializeImageRepresentation(const gfx::ImageSkiaRep& rep, | 224 void SerializeImageRepresentation(const gfx::ImageSkiaRep& rep, |
| 225 std::vector<unsigned long>* data); | 225 std::vector<unsigned long>* data); |
| 226 | 226 |
| 227 // Returns an 8888 ARGB visual. Can return NULL if there is no matching | |
| 228 // visual on this display. | |
| 229 Visual* GetARGBVisual(); | |
| 230 | |
| 231 // See comment for variable open_windows_. | 227 // See comment for variable open_windows_. |
| 232 static std::list<XID>& open_windows(); | 228 static std::list<XID>& open_windows(); |
| 233 | 229 |
| 234 // Map the window (shows it) taking into account the given |show_state|. | 230 // Map the window (shows it) taking into account the given |show_state|. |
| 235 void MapWindow(ui::WindowShowState show_state); | 231 void MapWindow(ui::WindowShowState show_state); |
| 236 | 232 |
| 237 void SetWindowTransparency(); | 233 void SetWindowTransparency(); |
| 238 | 234 |
| 239 // Relayout the widget's client and non-client views. | 235 // Relayout the widget's client and non-client views. |
| 240 void Relayout(); | 236 void Relayout(); |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 base::CancelableCallback<void()> delayed_resize_task_; | 348 base::CancelableCallback<void()> delayed_resize_task_; |
| 353 | 349 |
| 354 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; | 350 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; |
| 355 | 351 |
| 356 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); | 352 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); |
| 357 }; | 353 }; |
| 358 | 354 |
| 359 } // namespace views | 355 } // namespace views |
| 360 | 356 |
| 361 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 357 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
| OLD | NEW |