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 "ui/aura/window_tree_host.h" | 8 #include "ui/aura/window_tree_host.h" |
9 #include "ui/views/views_export.h" | 9 #include "ui/views/views_export.h" |
10 #include "ui/views/widget/desktop_aura/desktop_window_tree_host.h" | 10 #include "ui/views/widget/desktop_aura/desktop_window_tree_host.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 class HWNDMessageHandler; | 25 class HWNDMessageHandler; |
26 | 26 |
27 namespace corewm { | 27 namespace corewm { |
28 class TooltipWin; | 28 class TooltipWin; |
29 } | 29 } |
30 | 30 |
31 class VIEWS_EXPORT DesktopWindowTreeHostWin | 31 class VIEWS_EXPORT DesktopWindowTreeHostWin |
32 : public DesktopWindowTreeHost, | 32 : public DesktopWindowTreeHost, |
33 public aura::client::AnimationHost, | 33 public aura::client::AnimationHost, |
34 public aura::WindowTreeHost, | 34 public aura::WindowTreeHost, |
35 public ui::EventSource, | |
36 public HWNDMessageHandlerDelegate { | 35 public HWNDMessageHandlerDelegate { |
37 public: | 36 public: |
38 DesktopWindowTreeHostWin( | 37 DesktopWindowTreeHostWin( |
39 internal::NativeWidgetDelegate* native_widget_delegate, | 38 internal::NativeWidgetDelegate* native_widget_delegate, |
40 DesktopNativeWidgetAura* desktop_native_widget_aura); | 39 DesktopNativeWidgetAura* desktop_native_widget_aura); |
41 ~DesktopWindowTreeHostWin() override; | 40 ~DesktopWindowTreeHostWin() override; |
42 | 41 |
43 // A way of converting an HWND into a content window. | 42 // A way of converting an HWND into a content window. |
44 static aura::Window* GetContentWindowForHWND(HWND hwnd); | 43 static aura::Window* GetContentWindowForHWND(HWND hwnd); |
45 | 44 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 void Hide() override; | 110 void Hide() override; |
112 gfx::Rect GetBounds() const override; | 111 gfx::Rect GetBounds() const override; |
113 void SetBounds(const gfx::Rect& bounds) override; | 112 void SetBounds(const gfx::Rect& bounds) override; |
114 gfx::Point GetLocationOnNativeScreen() const override; | 113 gfx::Point GetLocationOnNativeScreen() const override; |
115 void SetCapture() override; | 114 void SetCapture() override; |
116 void ReleaseCapture() override; | 115 void ReleaseCapture() override; |
117 void SetCursorNative(gfx::NativeCursor cursor) override; | 116 void SetCursorNative(gfx::NativeCursor cursor) override; |
118 void OnCursorVisibilityChangedNative(bool show) override; | 117 void OnCursorVisibilityChangedNative(bool show) override; |
119 void MoveCursorToNative(const gfx::Point& location) override; | 118 void MoveCursorToNative(const gfx::Point& location) override; |
120 | 119 |
121 // Overridden frm ui::EventSource | |
122 ui::EventProcessor* GetEventProcessor() override; | |
123 | |
124 // Overridden from aura::client::AnimationHost | 120 // Overridden from aura::client::AnimationHost |
125 void SetHostTransitionOffsets( | 121 void SetHostTransitionOffsets( |
126 const gfx::Vector2d& top_left_delta, | 122 const gfx::Vector2d& top_left_delta, |
127 const gfx::Vector2d& bottom_right_delta) override; | 123 const gfx::Vector2d& bottom_right_delta) override; |
128 void OnWindowHidingAnimationCompleted() override; | 124 void OnWindowHidingAnimationCompleted() override; |
129 | 125 |
130 // Overridden from HWNDMessageHandlerDelegate: | 126 // Overridden from HWNDMessageHandlerDelegate: |
131 bool IsWidgetWindow() const override; | 127 bool IsWidgetWindow() const override; |
132 bool IsUsingCustomFrame() const override; | 128 bool IsUsingCustomFrame() const override; |
133 void SchedulePaint() override; | 129 void SchedulePaint() override; |
134 void EnableInactiveRendering() override; | 130 void EnableInactiveRendering() override; |
135 bool IsInactiveRenderingDisabled() override; | 131 bool IsInactiveRenderingDisabled() override; |
136 bool CanResize() const override; | 132 bool CanResize() const override; |
137 bool CanMaximize() const override; | 133 bool CanMaximize() const override; |
138 bool CanMinimize() const override; | 134 bool CanMinimize() const override; |
139 bool CanActivate() const override; | 135 bool CanActivate() const override; |
140 bool WidgetSizeIsClientSize() const override; | 136 bool WidgetSizeIsClientSize() const override; |
141 bool IsModal() const override; | 137 bool IsModal() const override; |
142 int GetInitialShowState() const override; | 138 int GetInitialShowState() const override; |
143 bool WillProcessWorkAreaChange() const override; | 139 bool WillProcessWorkAreaChange() const override; |
144 int GetNonClientComponent(const gfx::Point& point) const override; | 140 int GetNonClientComponent(const gfx::Point& point) const override; |
145 void GetWindowMask(const gfx::Size& size, gfx::Path* path) override; | 141 void GetWindowMask(const gfx::Size& size, gfx::Path* path) override; |
146 bool GetClientAreaInsets(gfx::Insets* insets) const override; | 142 bool GetClientAreaInsets(gfx::Insets* insets) const override; |
147 void GetMinMaxSize(gfx::Size* min_size, gfx::Size* max_size) const override; | 143 void GetMinMaxSize(gfx::Size* min_size, gfx::Size* max_size) const override; |
148 gfx::Size GetRootViewSize() const override; | 144 gfx::Size GetRootViewSize() const override; |
149 void ResetWindowControls() override; | 145 void ResetWindowControls() override; |
150 void PaintLayeredWindow(gfx::Canvas* canvas) override; | 146 void PaintLayeredWindow(gfx::Canvas* canvas) override; |
151 gfx::NativeViewAccessible GetNativeViewAccessible() override; | 147 gfx::NativeViewAccessible GetNativeViewAccessible() override; |
152 bool ShouldHandleSystemCommands() const override; | 148 bool ShouldHandleSystemCommands() const override; |
153 InputMethod* GetInputMethod() override; | |
154 void HandleAppDeactivated() override; | 149 void HandleAppDeactivated() override; |
155 void HandleActivationChanged(bool active) override; | 150 void HandleActivationChanged(bool active) override; |
156 bool HandleAppCommand(short command) override; | 151 bool HandleAppCommand(short command) override; |
157 void HandleCancelMode() override; | 152 void HandleCancelMode() override; |
158 void HandleCaptureLost() override; | 153 void HandleCaptureLost() override; |
159 void HandleClose() override; | 154 void HandleClose() override; |
160 bool HandleCommand(int command) override; | 155 bool HandleCommand(int command) override; |
161 void HandleAccelerator(const ui::Accelerator& accelerator) override; | 156 void HandleAccelerator(const ui::Accelerator& accelerator) override; |
162 void HandleCreate() override; | 157 void HandleCreate() override; |
163 void HandleDestroying() override; | 158 void HandleDestroying() override; |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 static bool is_cursor_visible_; | 253 static bool is_cursor_visible_; |
259 | 254 |
260 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_; | 255 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_; |
261 | 256 |
262 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin); | 257 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin); |
263 }; | 258 }; |
264 | 259 |
265 } // namespace views | 260 } // namespace views |
266 | 261 |
267 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ | 262 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ |
OLD | NEW |