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_NATIVE_WIDGET_AURA_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 void CenterWindow(const gfx::Size& size) override; | 116 void CenterWindow(const gfx::Size& size) override; |
117 void GetWindowPlacement(gfx::Rect* bounds, | 117 void GetWindowPlacement(gfx::Rect* bounds, |
118 ui::WindowShowState* maximized) const override; | 118 ui::WindowShowState* maximized) const override; |
119 bool SetWindowTitle(const base::string16& title) override; | 119 bool SetWindowTitle(const base::string16& title) override; |
120 void SetWindowIcons(const gfx::ImageSkia& window_icon, | 120 void SetWindowIcons(const gfx::ImageSkia& window_icon, |
121 const gfx::ImageSkia& app_icon) override; | 121 const gfx::ImageSkia& app_icon) override; |
122 void InitModalType(ui::ModalType modal_type) override; | 122 void InitModalType(ui::ModalType modal_type) override; |
123 gfx::Rect GetWindowBoundsInScreen() const override; | 123 gfx::Rect GetWindowBoundsInScreen() const override; |
124 gfx::Rect GetClientAreaBoundsInScreen() const override; | 124 gfx::Rect GetClientAreaBoundsInScreen() const override; |
125 gfx::Rect GetRestoredBounds() const override; | 125 gfx::Rect GetRestoredBounds() const override; |
| 126 std::string GetWorkspace() const override; |
126 void SetBounds(const gfx::Rect& bounds) override; | 127 void SetBounds(const gfx::Rect& bounds) override; |
127 void SetSize(const gfx::Size& size) override; | 128 void SetSize(const gfx::Size& size) override; |
128 void StackAbove(gfx::NativeView native_view) override; | 129 void StackAbove(gfx::NativeView native_view) override; |
129 void StackAtTop() override; | 130 void StackAtTop() override; |
130 void StackBelow(gfx::NativeView native_view) override; | 131 void StackBelow(gfx::NativeView native_view) override; |
131 void SetShape(SkRegion* shape) override; | 132 void SetShape(SkRegion* shape) override; |
132 void Close() override; | 133 void Close() override; |
133 void CloseNow() override; | 134 void CloseNow() override; |
134 void Show() override; | 135 void Show() override; |
135 void Hide() override; | 136 void Hide() override; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 219 |
219 // Overridden from aura::client::DragDropDelegate: | 220 // Overridden from aura::client::DragDropDelegate: |
220 void OnDragEntered(const ui::DropTargetEvent& event) override; | 221 void OnDragEntered(const ui::DropTargetEvent& event) override; |
221 int OnDragUpdated(const ui::DropTargetEvent& event) override; | 222 int OnDragUpdated(const ui::DropTargetEvent& event) override; |
222 void OnDragExited() override; | 223 void OnDragExited() override; |
223 int OnPerformDrop(const ui::DropTargetEvent& event) override; | 224 int OnPerformDrop(const ui::DropTargetEvent& event) override; |
224 | 225 |
225 // Overridden from aura::WindowTreeHostObserver: | 226 // Overridden from aura::WindowTreeHostObserver: |
226 void OnHostCloseRequested(const aura::WindowTreeHost* host) override; | 227 void OnHostCloseRequested(const aura::WindowTreeHost* host) override; |
227 void OnHostResized(const aura::WindowTreeHost* host) override; | 228 void OnHostResized(const aura::WindowTreeHost* host) override; |
| 229 void OnHostWorkspaceChanged(const aura::WindowTreeHost* host) override; |
228 void OnHostMoved(const aura::WindowTreeHost* host, | 230 void OnHostMoved(const aura::WindowTreeHost* host, |
229 const gfx::Point& new_origin) override; | 231 const gfx::Point& new_origin) override; |
230 | 232 |
231 private: | 233 private: |
232 friend class FocusManagerEventHandler; | 234 friend class FocusManagerEventHandler; |
233 friend class RootWindowDestructionObserver; | 235 friend class RootWindowDestructionObserver; |
234 | 236 |
235 // To save a clear on platforms where the window is never transparent, the | 237 // To save a clear on platforms where the window is never transparent, the |
236 // window is only set as transparent when the glass frame is in use. | 238 // window is only set as transparent when the glass frame is in use. |
237 void UpdateWindowTransparency(); | 239 void UpdateWindowTransparency(); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 // The following factory is used for calls to close the NativeWidgetAura | 306 // The following factory is used for calls to close the NativeWidgetAura |
305 // instance. | 307 // instance. |
306 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_; | 308 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_; |
307 | 309 |
308 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); | 310 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); |
309 }; | 311 }; |
310 | 312 |
311 } // namespace views | 313 } // namespace views |
312 | 314 |
313 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ | 315 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |