| 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
| 14 #include "ui/aura/window_tree_host.h" | 14 #include "ui/aura/window_tree_host.h" |
| 15 #include "ui/base/cursor/cursor_loader_x11.h" | 15 #include "ui/base/cursor/cursor_loader_x11.h" |
| 16 #include "ui/events/event_source.h" |
| 16 #include "ui/events/platform/platform_event_dispatcher.h" | 17 #include "ui/events/platform/platform_event_dispatcher.h" |
| 17 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
| 18 #include "ui/gfx/x/x11_atom_cache.h" | 19 #include "ui/gfx/x/x11_atom_cache.h" |
| 19 #include "ui/views/views_export.h" | 20 #include "ui/views/views_export.h" |
| 20 #include "ui/views/widget/desktop_aura/desktop_window_tree_host.h" | 21 #include "ui/views/widget/desktop_aura/desktop_window_tree_host.h" |
| 21 | 22 |
| 22 namespace gfx { | 23 namespace gfx { |
| 23 class ImageSkia; | 24 class ImageSkia; |
| 24 class ImageSkiaRep; | 25 class ImageSkiaRep; |
| 25 } | 26 } |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 virtual void SetWindowIcons(const gfx::ImageSkia& window_icon, | 124 virtual void SetWindowIcons(const gfx::ImageSkia& window_icon, |
| 124 const gfx::ImageSkia& app_icon) OVERRIDE; | 125 const gfx::ImageSkia& app_icon) OVERRIDE; |
| 125 virtual void InitModalType(ui::ModalType modal_type) OVERRIDE; | 126 virtual void InitModalType(ui::ModalType modal_type) OVERRIDE; |
| 126 virtual void FlashFrame(bool flash_frame) OVERRIDE; | 127 virtual void FlashFrame(bool flash_frame) OVERRIDE; |
| 127 virtual void OnRootViewLayout() const OVERRIDE; | 128 virtual void OnRootViewLayout() const OVERRIDE; |
| 128 virtual void OnNativeWidgetFocus() OVERRIDE; | 129 virtual void OnNativeWidgetFocus() OVERRIDE; |
| 129 virtual void OnNativeWidgetBlur() OVERRIDE; | 130 virtual void OnNativeWidgetBlur() OVERRIDE; |
| 130 virtual bool IsAnimatingClosed() const OVERRIDE; | 131 virtual bool IsAnimatingClosed() const OVERRIDE; |
| 131 | 132 |
| 132 // Overridden from aura::WindowTreeHost: | 133 // Overridden from aura::WindowTreeHost: |
| 134 virtual ui::EventSource* GetEventSource() OVERRIDE; |
| 133 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; | 135 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; |
| 134 virtual void Show() OVERRIDE; | 136 virtual void Show() OVERRIDE; |
| 135 virtual void Hide() OVERRIDE; | 137 virtual void Hide() OVERRIDE; |
| 136 virtual gfx::Rect GetBounds() const OVERRIDE; | 138 virtual gfx::Rect GetBounds() const OVERRIDE; |
| 137 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 139 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| 138 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; | 140 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; |
| 139 virtual void SetCapture() OVERRIDE; | 141 virtual void SetCapture() OVERRIDE; |
| 140 virtual void ReleaseCapture() OVERRIDE; | 142 virtual void ReleaseCapture() OVERRIDE; |
| 141 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; | 143 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; |
| 142 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; | 144 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 // attention to the window or completely ignore the hint. We stop flashing | 295 // attention to the window or completely ignore the hint. We stop flashing |
| 294 // the frame when |xwindow_| gains focus or handles a mouse button event. | 296 // the frame when |xwindow_| gains focus or handles a mouse button event. |
| 295 bool urgency_hint_set_; | 297 bool urgency_hint_set_; |
| 296 | 298 |
| 297 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); | 299 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); |
| 298 }; | 300 }; |
| 299 | 301 |
| 300 } // namespace views | 302 } // namespace views |
| 301 | 303 |
| 302 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 304 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
| OLD | NEW |