Chromium Code Reviews| 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_ROOT_WINDOW_HOST_WIN_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ |
| 7 | 7 |
| 8 #include "ui/aura/root_window_host.h" | 8 #include "ui/aura/root_window_host.h" |
| 9 #include "ui/views/views_export.h" | 9 #include "ui/views/views_export.h" |
| 10 #include "ui/views/widget/desktop_aura/desktop_root_window_host.h" | 10 #include "ui/views/widget/desktop_aura/desktop_root_window_host.h" |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 40 const gfx::Rect& initial_bounds); | 40 const gfx::Rect& initial_bounds); |
| 41 virtual ~DesktopRootWindowHostWin(); | 41 virtual ~DesktopRootWindowHostWin(); |
| 42 | 42 |
| 43 // A way of converting an HWND into a content window. | 43 // A way of converting an HWND into a content window. |
| 44 static aura::Window* GetContentWindowForHWND(HWND hwnd); | 44 static aura::Window* GetContentWindowForHWND(HWND hwnd); |
| 45 | 45 |
| 46 protected: | 46 protected: |
| 47 // Overridden from DesktopRootWindowHost: | 47 // Overridden from DesktopRootWindowHost: |
| 48 virtual aura::RootWindow* Init(aura::Window* content_window, | 48 virtual aura::RootWindow* Init(aura::Window* content_window, |
| 49 const Widget::InitParams& params) OVERRIDE; | 49 const Widget::InitParams& params) OVERRIDE; |
| 50 virtual void InitFocus(aura::Window* window) OVERRIDE; | |
| 50 virtual void Close() OVERRIDE; | 51 virtual void Close() OVERRIDE; |
| 51 virtual void CloseNow() OVERRIDE; | 52 virtual void CloseNow() OVERRIDE; |
| 52 virtual aura::RootWindowHost* AsRootWindowHost() OVERRIDE; | 53 virtual aura::RootWindowHost* AsRootWindowHost() OVERRIDE; |
| 53 virtual void ShowWindowWithState(ui::WindowShowState show_state) OVERRIDE; | 54 virtual void ShowWindowWithState(ui::WindowShowState show_state) OVERRIDE; |
| 54 virtual void ShowMaximizedWithBounds( | 55 virtual void ShowMaximizedWithBounds( |
| 55 const gfx::Rect& restored_bounds) OVERRIDE; | 56 const gfx::Rect& restored_bounds) OVERRIDE; |
| 56 virtual bool IsVisible() const OVERRIDE; | 57 virtual bool IsVisible() const OVERRIDE; |
| 57 virtual void SetSize(const gfx::Size& size) OVERRIDE; | 58 virtual void SetSize(const gfx::Size& size) OVERRIDE; |
| 58 virtual void CenterWindow(const gfx::Size& size) OVERRIDE; | 59 virtual void CenterWindow(const gfx::Size& size) OVERRIDE; |
| 59 virtual void GetWindowPlacement( | 60 virtual void GetWindowPlacement( |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 117 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; | 118 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; |
| 118 virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds, | 119 virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds, |
| 119 const gfx::Point& dest_offset, | 120 const gfx::Point& dest_offset, |
| 120 SkCanvas* canvas) OVERRIDE; | 121 SkCanvas* canvas) OVERRIDE; |
| 121 virtual bool GrabSnapshot( | 122 virtual bool GrabSnapshot( |
| 122 const gfx::Rect& snapshot_bounds, | 123 const gfx::Rect& snapshot_bounds, |
| 123 std::vector<unsigned char>* png_representation) OVERRIDE; | 124 std::vector<unsigned char>* png_representation) OVERRIDE; |
| 124 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; | 125 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
| 125 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 126 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
| 126 virtual void PrepareForShutdown() OVERRIDE; | 127 virtual void PrepareForShutdown() OVERRIDE; |
| 128 virtual void SetHostWindowExpansion(const gfx::Rect& extra) OVERRIDE; | |
| 127 | 129 |
| 128 // Overridden from HWNDMessageHandlerDelegate: | 130 // Overridden from HWNDMessageHandlerDelegate: |
| 129 virtual bool IsWidgetWindow() const OVERRIDE; | 131 virtual bool IsWidgetWindow() const OVERRIDE; |
| 130 virtual bool IsUsingCustomFrame() const OVERRIDE; | 132 virtual bool IsUsingCustomFrame() const OVERRIDE; |
| 131 virtual void SchedulePaint() OVERRIDE; | 133 virtual void SchedulePaint() OVERRIDE; |
| 132 virtual void EnableInactiveRendering() OVERRIDE; | 134 virtual void EnableInactiveRendering() OVERRIDE; |
| 133 virtual bool IsInactiveRenderingDisabled() OVERRIDE; | 135 virtual bool IsInactiveRenderingDisabled() OVERRIDE; |
| 134 virtual bool CanResize() const OVERRIDE; | 136 virtual bool CanResize() const OVERRIDE; |
| 135 virtual bool CanMaximize() const OVERRIDE; | 137 virtual bool CanMaximize() const OVERRIDE; |
| 136 virtual bool CanActivate() const OVERRIDE; | 138 virtual bool CanActivate() const OVERRIDE; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 226 | 228 |
| 227 // In some cases, we set a screen position client on |root_window_|. If we | 229 // In some cases, we set a screen position client on |root_window_|. If we |
| 228 // do, we're responsible for the lifetime. | 230 // do, we're responsible for the lifetime. |
| 229 scoped_ptr<aura::client::ScreenPositionClient> position_client_; | 231 scoped_ptr<aura::client::ScreenPositionClient> position_client_; |
| 230 | 232 |
| 231 // Controls visibility of the cursor. | 233 // Controls visibility of the cursor. |
| 232 scoped_ptr<views::corewm::CursorManager> cursor_client_; | 234 scoped_ptr<views::corewm::CursorManager> cursor_client_; |
| 233 | 235 |
| 234 scoped_ptr<DesktopDragDropClientWin> drag_drop_client_; | 236 scoped_ptr<DesktopDragDropClientWin> drag_drop_client_; |
| 235 | 237 |
| 238 gfx::Rect window_expansion_; | |
|
sky
2013/03/14 20:06:37
Description?
scottmg
2013/03/14 22:51:53
Done.
| |
| 239 | |
| 236 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin); | 240 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin); |
| 237 }; | 241 }; |
| 238 | 242 |
| 239 } // namespace views | 243 } // namespace views |
| 240 | 244 |
| 241 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ | 245 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ |
| OLD | NEW |