| 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 // Map the window (shows it) taking into account the given |show_state|. | 229 // Map the window (shows it) taking into account the given |show_state|. |
| 230 void MapWindow(ui::WindowShowState show_state); | 230 void MapWindow(ui::WindowShowState show_state); |
| 231 | 231 |
| 232 void SetWindowTransparency(); | 232 void SetWindowTransparency(); |
| 233 | 233 |
| 234 // Relayout the widget's client and non-client views. | 234 // Relayout the widget's client and non-client views. |
| 235 void Relayout(); | 235 void Relayout(); |
| 236 | 236 |
| 237 // ui::PlatformEventDispatcher: | 237 // ui::PlatformEventDispatcher: |
| 238 virtual bool CanDispatchEvent(const ui::PlatformEvent& event) override; | 238 virtual bool CanDispatchEvent(const ui::PlatformEvent& event) override; |
| 239 virtual uint32_t DispatchEvent(const ui::PlatformEvent& event) override; | 239 virtual ui::PostDispatchAction DispatchEvent( |
| 240 const ui::PlatformEvent& event) override; |
| 240 | 241 |
| 241 void DelayedResize(const gfx::Size& size); | 242 void DelayedResize(const gfx::Size& size); |
| 242 | 243 |
| 243 // X11 things | 244 // X11 things |
| 244 // The display and the native X window hosting the root window. | 245 // The display and the native X window hosting the root window. |
| 245 XDisplay* xdisplay_; | 246 XDisplay* xdisplay_; |
| 246 ::Window xwindow_; | 247 ::Window xwindow_; |
| 247 | 248 |
| 248 // The native root window. | 249 // The native root window. |
| 249 ::Window x_root_window_; | 250 ::Window x_root_window_; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 base::CancelableCallback<void()> delayed_resize_task_; | 340 base::CancelableCallback<void()> delayed_resize_task_; |
| 340 | 341 |
| 341 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; | 342 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; |
| 342 | 343 |
| 343 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); | 344 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); |
| 344 }; | 345 }; |
| 345 | 346 |
| 346 } // namespace views | 347 } // namespace views |
| 347 | 348 |
| 348 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 349 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
| OLD | NEW |