| 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_WIN_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/aura/window_tree_host.h" | 9 #include "ui/aura/window_tree_host.h" |
| 10 #include "ui/display/display_observer.h" |
| 10 #include "ui/views/views_export.h" | 11 #include "ui/views/views_export.h" |
| 11 #include "ui/views/widget/desktop_aura/desktop_window_tree_host.h" | 12 #include "ui/views/widget/desktop_aura/desktop_window_tree_host.h" |
| 12 #include "ui/views/win/hwnd_message_handler_delegate.h" | 13 #include "ui/views/win/hwnd_message_handler_delegate.h" |
| 13 #include "ui/wm/public/animation_host.h" | 14 #include "ui/wm/public/animation_host.h" |
| 14 | 15 |
| 15 namespace aura { | 16 namespace aura { |
| 16 namespace client { | 17 namespace client { |
| 17 class DragDropClient; | 18 class DragDropClient; |
| 18 class FocusClient; | 19 class FocusClient; |
| 19 class ScopedTooltipDisabler; | 20 class ScopedTooltipDisabler; |
| 20 } | 21 } |
| 21 } | 22 } |
| 22 | 23 |
| 23 namespace views { | 24 namespace views { |
| 24 class DesktopCursorClient; | 25 class DesktopCursorClient; |
| 25 class DesktopDragDropClientWin; | 26 class DesktopDragDropClientWin; |
| 26 class HWNDMessageHandler; | 27 class HWNDMessageHandler; |
| 27 | 28 |
| 28 namespace corewm { | 29 namespace corewm { |
| 29 class TooltipWin; | 30 class TooltipWin; |
| 30 } | 31 } |
| 31 | 32 |
| 32 class VIEWS_EXPORT DesktopWindowTreeHostWin | 33 class VIEWS_EXPORT DesktopWindowTreeHostWin |
| 33 : public DesktopWindowTreeHost, | 34 : public DesktopWindowTreeHost, |
| 34 public aura::client::AnimationHost, | 35 public aura::client::AnimationHost, |
| 35 public aura::WindowTreeHost, | 36 public aura::WindowTreeHost, |
| 37 public display::DisplayObserver, |
| 36 public HWNDMessageHandlerDelegate { | 38 public HWNDMessageHandlerDelegate { |
| 37 public: | 39 public: |
| 38 DesktopWindowTreeHostWin( | 40 DesktopWindowTreeHostWin( |
| 39 internal::NativeWidgetDelegate* native_widget_delegate, | 41 internal::NativeWidgetDelegate* native_widget_delegate, |
| 40 DesktopNativeWidgetAura* desktop_native_widget_aura); | 42 DesktopNativeWidgetAura* desktop_native_widget_aura); |
| 41 ~DesktopWindowTreeHostWin() override; | 43 ~DesktopWindowTreeHostWin() override; |
| 42 | 44 |
| 43 // A way of converting an HWND into a content window. | 45 // A way of converting an HWND into a content window. |
| 44 static aura::Window* GetContentWindowForHWND(HWND hwnd); | 46 static aura::Window* GetContentWindowForHWND(HWND hwnd); |
| 45 | 47 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 void SetCursorNative(gfx::NativeCursor cursor) override; | 122 void SetCursorNative(gfx::NativeCursor cursor) override; |
| 121 void OnCursorVisibilityChangedNative(bool show) override; | 123 void OnCursorVisibilityChangedNative(bool show) override; |
| 122 void MoveCursorToNative(const gfx::Point& location) override; | 124 void MoveCursorToNative(const gfx::Point& location) override; |
| 123 | 125 |
| 124 // Overridden from aura::client::AnimationHost | 126 // Overridden from aura::client::AnimationHost |
| 125 void SetHostTransitionOffsets( | 127 void SetHostTransitionOffsets( |
| 126 const gfx::Vector2d& top_left_delta, | 128 const gfx::Vector2d& top_left_delta, |
| 127 const gfx::Vector2d& bottom_right_delta) override; | 129 const gfx::Vector2d& bottom_right_delta) override; |
| 128 void OnWindowHidingAnimationCompleted() override; | 130 void OnWindowHidingAnimationCompleted() override; |
| 129 | 131 |
| 132 // display::DisplayObserver: |
| 133 void OnDisplayAdded(const display::Display& display) override {} |
| 134 void OnDisplayRemoved(const display::Display& display) override {} |
| 135 void OnDisplayMetricsChanged(const display::Display& display, |
| 136 uint32_t changed_metrics) override; |
| 137 |
| 130 // Overridden from HWNDMessageHandlerDelegate: | 138 // Overridden from HWNDMessageHandlerDelegate: |
| 131 bool HasNonClientView() const override; | 139 bool HasNonClientView() const override; |
| 132 FrameMode GetFrameMode() const override; | 140 FrameMode GetFrameMode() const override; |
| 133 bool HasFrame() const override; | 141 bool HasFrame() const override; |
| 134 void SchedulePaint() override; | 142 void SchedulePaint() override; |
| 135 void SetAlwaysRenderAsActive(bool always_render_as_active) override; | 143 void SetAlwaysRenderAsActive(bool always_render_as_active) override; |
| 136 bool IsAlwaysRenderAsActive() override; | 144 bool IsAlwaysRenderAsActive() override; |
| 137 bool CanResize() const override; | 145 bool CanResize() const override; |
| 138 bool CanMaximize() const override; | 146 bool CanMaximize() const override; |
| 139 bool CanMinimize() const override; | 147 bool CanMinimize() const override; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 // Indicates if current window will receive mouse events when should not | 275 // Indicates if current window will receive mouse events when should not |
| 268 // become activated. | 276 // become activated. |
| 269 bool wants_mouse_events_when_inactive_ = false; | 277 bool wants_mouse_events_when_inactive_ = false; |
| 270 | 278 |
| 271 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin); | 279 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin); |
| 272 }; | 280 }; |
| 273 | 281 |
| 274 } // namespace views | 282 } // namespace views |
| 275 | 283 |
| 276 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ | 284 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ |
| OLD | NEW |