| 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 int GetRestoredWorkspace() 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, |
| 230 int workspace_id) override; |
| 228 void OnHostMoved(const aura::WindowTreeHost* host, | 231 void OnHostMoved(const aura::WindowTreeHost* host, |
| 229 const gfx::Point& new_origin) override; | 232 const gfx::Point& new_origin) override; |
| 230 | 233 |
| 231 private: | 234 private: |
| 232 friend class FocusManagerEventHandler; | 235 friend class FocusManagerEventHandler; |
| 233 friend class RootWindowDestructionObserver; | 236 friend class RootWindowDestructionObserver; |
| 234 | 237 |
| 235 // To save a clear on platforms where the window is never transparent, the | 238 // 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. | 239 // window is only set as transparent when the glass frame is in use. |
| 237 void UpdateWindowTransparency(); | 240 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 | 307 // The following factory is used for calls to close the NativeWidgetAura |
| 305 // instance. | 308 // instance. |
| 306 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_; | 309 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_; |
| 307 | 310 |
| 308 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); | 311 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); |
| 309 }; | 312 }; |
| 310 | 313 |
| 311 } // namespace views | 314 } // namespace views |
| 312 | 315 |
| 313 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ | 316 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ |
| OLD | NEW |