Index: ui/views/widget/desktop_aura/desktop_window_tree_host_win.h |
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.h b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.h |
index b6718a56fd350901c3308c0257b6f9b40153f05e..83ffd08fbe58f89a6615e9a89cc43e532d74bb9b 100644 |
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.h |
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.h |
@@ -46,163 +46,163 @@ class VIEWS_EXPORT DesktopWindowTreeHostWin |
protected: |
// Overridden from DesktopWindowTreeHost: |
virtual void Init(aura::Window* content_window, |
- const Widget::InitParams& params) OVERRIDE; |
- virtual void OnNativeWidgetCreated(const Widget::InitParams& params) OVERRIDE; |
- virtual scoped_ptr<corewm::Tooltip> CreateTooltip() OVERRIDE; |
+ const Widget::InitParams& params) override; |
+ virtual void OnNativeWidgetCreated(const Widget::InitParams& params) override; |
+ virtual scoped_ptr<corewm::Tooltip> CreateTooltip() override; |
virtual scoped_ptr<aura::client::DragDropClient> |
- CreateDragDropClient(DesktopNativeCursorManager* cursor_manager) OVERRIDE; |
- virtual void Close() OVERRIDE; |
- virtual void CloseNow() OVERRIDE; |
- virtual aura::WindowTreeHost* AsWindowTreeHost() OVERRIDE; |
- virtual void ShowWindowWithState(ui::WindowShowState show_state) OVERRIDE; |
+ CreateDragDropClient(DesktopNativeCursorManager* cursor_manager) override; |
+ virtual void Close() override; |
+ virtual void CloseNow() override; |
+ virtual aura::WindowTreeHost* AsWindowTreeHost() override; |
+ virtual void ShowWindowWithState(ui::WindowShowState show_state) override; |
virtual void ShowMaximizedWithBounds( |
- const gfx::Rect& restored_bounds) OVERRIDE; |
- virtual bool IsVisible() const OVERRIDE; |
- virtual void SetSize(const gfx::Size& size) OVERRIDE; |
- virtual void StackAtTop() OVERRIDE; |
- virtual void CenterWindow(const gfx::Size& size) OVERRIDE; |
+ const gfx::Rect& restored_bounds) override; |
+ virtual bool IsVisible() const override; |
+ virtual void SetSize(const gfx::Size& size) override; |
+ virtual void StackAtTop() override; |
+ virtual void CenterWindow(const gfx::Size& size) override; |
virtual void GetWindowPlacement( |
gfx::Rect* bounds, |
- ui::WindowShowState* show_state) const OVERRIDE; |
- virtual gfx::Rect GetWindowBoundsInScreen() const OVERRIDE; |
- virtual gfx::Rect GetClientAreaBoundsInScreen() const OVERRIDE; |
- virtual gfx::Rect GetRestoredBounds() const OVERRIDE; |
- virtual gfx::Rect GetWorkAreaBoundsInScreen() const OVERRIDE; |
- virtual void SetShape(gfx::NativeRegion native_region) OVERRIDE; |
- virtual void Activate() OVERRIDE; |
- virtual void Deactivate() OVERRIDE; |
- virtual bool IsActive() const OVERRIDE; |
- virtual void Maximize() OVERRIDE; |
- virtual void Minimize() OVERRIDE; |
- virtual void Restore() OVERRIDE; |
- virtual bool IsMaximized() const OVERRIDE; |
- virtual bool IsMinimized() const OVERRIDE; |
- virtual bool HasCapture() const OVERRIDE; |
- virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; |
- virtual bool IsAlwaysOnTop() const OVERRIDE; |
- virtual void SetVisibleOnAllWorkspaces(bool always_visible) OVERRIDE; |
- virtual bool SetWindowTitle(const base::string16& title) OVERRIDE; |
- virtual void ClearNativeFocus() OVERRIDE; |
+ ui::WindowShowState* show_state) const override; |
+ virtual gfx::Rect GetWindowBoundsInScreen() const override; |
+ virtual gfx::Rect GetClientAreaBoundsInScreen() const override; |
+ virtual gfx::Rect GetRestoredBounds() const override; |
+ virtual gfx::Rect GetWorkAreaBoundsInScreen() const override; |
+ virtual void SetShape(gfx::NativeRegion native_region) override; |
+ virtual void Activate() override; |
+ virtual void Deactivate() override; |
+ virtual bool IsActive() const override; |
+ virtual void Maximize() override; |
+ virtual void Minimize() override; |
+ virtual void Restore() override; |
+ virtual bool IsMaximized() const override; |
+ virtual bool IsMinimized() const override; |
+ virtual bool HasCapture() const override; |
+ virtual void SetAlwaysOnTop(bool always_on_top) override; |
+ virtual bool IsAlwaysOnTop() const override; |
+ virtual void SetVisibleOnAllWorkspaces(bool always_visible) override; |
+ virtual bool SetWindowTitle(const base::string16& title) override; |
+ virtual void ClearNativeFocus() override; |
virtual Widget::MoveLoopResult RunMoveLoop( |
const gfx::Vector2d& drag_offset, |
Widget::MoveLoopSource source, |
- Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE; |
- virtual void EndMoveLoop() OVERRIDE; |
- virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; |
- virtual bool ShouldUseNativeFrame() const OVERRIDE; |
- virtual bool ShouldWindowContentsBeTransparent() const OVERRIDE; |
- virtual void FrameTypeChanged() OVERRIDE; |
- virtual void SetFullscreen(bool fullscreen) OVERRIDE; |
- virtual bool IsFullscreen() const OVERRIDE; |
- virtual void SetOpacity(unsigned char opacity) OVERRIDE; |
+ Widget::MoveLoopEscapeBehavior escape_behavior) override; |
+ virtual void EndMoveLoop() override; |
+ virtual void SetVisibilityChangedAnimationsEnabled(bool value) override; |
+ virtual bool ShouldUseNativeFrame() const override; |
+ virtual bool ShouldWindowContentsBeTransparent() const override; |
+ virtual void FrameTypeChanged() override; |
+ virtual void SetFullscreen(bool fullscreen) override; |
+ virtual bool IsFullscreen() const override; |
+ virtual void SetOpacity(unsigned char opacity) override; |
virtual void SetWindowIcons(const gfx::ImageSkia& window_icon, |
- const gfx::ImageSkia& app_icon) OVERRIDE; |
- virtual void InitModalType(ui::ModalType modal_type) OVERRIDE; |
- virtual void FlashFrame(bool flash_frame) OVERRIDE; |
- virtual void OnRootViewLayout() OVERRIDE; |
- virtual void OnNativeWidgetFocus() OVERRIDE; |
- virtual void OnNativeWidgetBlur() OVERRIDE; |
- virtual bool IsAnimatingClosed() const OVERRIDE; |
- virtual bool IsTranslucentWindowOpacitySupported() const OVERRIDE; |
- virtual void SizeConstraintsChanged() OVERRIDE; |
+ const gfx::ImageSkia& app_icon) override; |
+ virtual void InitModalType(ui::ModalType modal_type) override; |
+ virtual void FlashFrame(bool flash_frame) override; |
+ virtual void OnRootViewLayout() override; |
+ virtual void OnNativeWidgetFocus() override; |
+ virtual void OnNativeWidgetBlur() override; |
+ virtual bool IsAnimatingClosed() const override; |
+ virtual bool IsTranslucentWindowOpacitySupported() const override; |
+ virtual void SizeConstraintsChanged() override; |
// Overridden from aura::WindowTreeHost: |
- virtual ui::EventSource* GetEventSource() OVERRIDE; |
- virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; |
- virtual void Show() OVERRIDE; |
- virtual void Hide() OVERRIDE; |
- virtual gfx::Rect GetBounds() const OVERRIDE; |
- virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
- virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; |
- virtual void SetCapture() OVERRIDE; |
- virtual void ReleaseCapture() OVERRIDE; |
- virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
- virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; |
- virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; |
- virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; |
+ virtual ui::EventSource* GetEventSource() override; |
+ virtual gfx::AcceleratedWidget GetAcceleratedWidget() override; |
+ virtual void Show() override; |
+ virtual void Hide() override; |
+ virtual gfx::Rect GetBounds() const override; |
+ virtual void SetBounds(const gfx::Rect& bounds) override; |
+ virtual gfx::Point GetLocationOnNativeScreen() const override; |
+ virtual void SetCapture() override; |
+ virtual void ReleaseCapture() override; |
+ virtual void PostNativeEvent(const base::NativeEvent& native_event) override; |
+ virtual void SetCursorNative(gfx::NativeCursor cursor) override; |
+ virtual void OnCursorVisibilityChangedNative(bool show) override; |
+ virtual void MoveCursorToNative(const gfx::Point& location) override; |
// Overridden frm ui::EventSource |
- virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; |
+ virtual ui::EventProcessor* GetEventProcessor() override; |
// Overridden from aura::client::AnimationHost |
virtual void SetHostTransitionOffsets( |
const gfx::Vector2d& top_left_delta, |
- const gfx::Vector2d& bottom_right_delta) OVERRIDE; |
- virtual void OnWindowHidingAnimationCompleted() OVERRIDE; |
+ const gfx::Vector2d& bottom_right_delta) override; |
+ virtual void OnWindowHidingAnimationCompleted() override; |
// Overridden from HWNDMessageHandlerDelegate: |
- virtual bool IsWidgetWindow() const OVERRIDE; |
- virtual bool IsUsingCustomFrame() const OVERRIDE; |
- virtual void SchedulePaint() OVERRIDE; |
- virtual void EnableInactiveRendering() OVERRIDE; |
- virtual bool IsInactiveRenderingDisabled() OVERRIDE; |
- virtual bool CanResize() const OVERRIDE; |
- virtual bool CanMaximize() const OVERRIDE; |
- virtual bool CanMinimize() const OVERRIDE; |
- virtual bool CanActivate() const OVERRIDE; |
- virtual bool WidgetSizeIsClientSize() const OVERRIDE; |
- virtual bool IsModal() const OVERRIDE; |
- virtual int GetInitialShowState() const OVERRIDE; |
- virtual bool WillProcessWorkAreaChange() const OVERRIDE; |
- virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; |
- virtual void GetWindowMask(const gfx::Size& size, gfx::Path* path) OVERRIDE; |
- virtual bool GetClientAreaInsets(gfx::Insets* insets) const OVERRIDE; |
+ virtual bool IsWidgetWindow() const override; |
+ virtual bool IsUsingCustomFrame() const override; |
+ virtual void SchedulePaint() override; |
+ virtual void EnableInactiveRendering() override; |
+ virtual bool IsInactiveRenderingDisabled() override; |
+ virtual bool CanResize() const override; |
+ virtual bool CanMaximize() const override; |
+ virtual bool CanMinimize() const override; |
+ virtual bool CanActivate() const override; |
+ virtual bool WidgetSizeIsClientSize() const override; |
+ virtual bool IsModal() const override; |
+ virtual int GetInitialShowState() const override; |
+ virtual bool WillProcessWorkAreaChange() const override; |
+ virtual int GetNonClientComponent(const gfx::Point& point) const override; |
+ virtual void GetWindowMask(const gfx::Size& size, gfx::Path* path) override; |
+ virtual bool GetClientAreaInsets(gfx::Insets* insets) const override; |
virtual void GetMinMaxSize(gfx::Size* min_size, |
- gfx::Size* max_size) const OVERRIDE; |
- virtual gfx::Size GetRootViewSize() const OVERRIDE; |
- virtual void ResetWindowControls() OVERRIDE; |
- virtual void PaintLayeredWindow(gfx::Canvas* canvas) OVERRIDE; |
- virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; |
- virtual bool ShouldHandleSystemCommands() const OVERRIDE; |
- virtual InputMethod* GetInputMethod() OVERRIDE; |
- virtual void HandleAppDeactivated() OVERRIDE; |
- virtual void HandleActivationChanged(bool active) OVERRIDE; |
- virtual bool HandleAppCommand(short command) OVERRIDE; |
- virtual void HandleCancelMode() OVERRIDE; |
- virtual void HandleCaptureLost() OVERRIDE; |
- virtual void HandleClose() OVERRIDE; |
- virtual bool HandleCommand(int command) OVERRIDE; |
- virtual void HandleAccelerator(const ui::Accelerator& accelerator) OVERRIDE; |
- virtual void HandleCreate() OVERRIDE; |
- virtual void HandleDestroying() OVERRIDE; |
- virtual void HandleDestroyed() OVERRIDE; |
- virtual bool HandleInitialFocus(ui::WindowShowState show_state) OVERRIDE; |
- virtual void HandleDisplayChange() OVERRIDE; |
- virtual void HandleBeginWMSizeMove() OVERRIDE; |
- virtual void HandleEndWMSizeMove() OVERRIDE; |
- virtual void HandleMove() OVERRIDE; |
- virtual void HandleWorkAreaChanged() OVERRIDE; |
- virtual void HandleVisibilityChanging(bool visible) OVERRIDE; |
- virtual void HandleVisibilityChanged(bool visible) OVERRIDE; |
- virtual void HandleClientSizeChanged(const gfx::Size& new_size) OVERRIDE; |
- virtual void HandleFrameChanged() OVERRIDE; |
- virtual void HandleNativeFocus(HWND last_focused_window) OVERRIDE; |
- virtual void HandleNativeBlur(HWND focused_window) OVERRIDE; |
- virtual bool HandleMouseEvent(const ui::MouseEvent& event) OVERRIDE; |
- virtual bool HandleKeyEvent(const ui::KeyEvent& event) OVERRIDE; |
- virtual bool HandleUntranslatedKeyEvent(const ui::KeyEvent& event) OVERRIDE; |
- virtual void HandleTouchEvent(const ui::TouchEvent& event) OVERRIDE; |
+ gfx::Size* max_size) const override; |
+ virtual gfx::Size GetRootViewSize() const override; |
+ virtual void ResetWindowControls() override; |
+ virtual void PaintLayeredWindow(gfx::Canvas* canvas) override; |
+ virtual gfx::NativeViewAccessible GetNativeViewAccessible() override; |
+ virtual bool ShouldHandleSystemCommands() const override; |
+ virtual InputMethod* GetInputMethod() override; |
+ virtual void HandleAppDeactivated() override; |
+ virtual void HandleActivationChanged(bool active) override; |
+ virtual bool HandleAppCommand(short command) override; |
+ virtual void HandleCancelMode() override; |
+ virtual void HandleCaptureLost() override; |
+ virtual void HandleClose() override; |
+ virtual bool HandleCommand(int command) override; |
+ virtual void HandleAccelerator(const ui::Accelerator& accelerator) override; |
+ virtual void HandleCreate() override; |
+ virtual void HandleDestroying() override; |
+ virtual void HandleDestroyed() override; |
+ virtual bool HandleInitialFocus(ui::WindowShowState show_state) override; |
+ virtual void HandleDisplayChange() override; |
+ virtual void HandleBeginWMSizeMove() override; |
+ virtual void HandleEndWMSizeMove() override; |
+ virtual void HandleMove() override; |
+ virtual void HandleWorkAreaChanged() override; |
+ virtual void HandleVisibilityChanging(bool visible) override; |
+ virtual void HandleVisibilityChanged(bool visible) override; |
+ virtual void HandleClientSizeChanged(const gfx::Size& new_size) override; |
+ virtual void HandleFrameChanged() override; |
+ virtual void HandleNativeFocus(HWND last_focused_window) override; |
+ virtual void HandleNativeBlur(HWND focused_window) override; |
+ virtual bool HandleMouseEvent(const ui::MouseEvent& event) override; |
+ virtual bool HandleKeyEvent(const ui::KeyEvent& event) override; |
+ virtual bool HandleUntranslatedKeyEvent(const ui::KeyEvent& event) override; |
+ virtual void HandleTouchEvent(const ui::TouchEvent& event) override; |
virtual bool HandleIMEMessage(UINT message, |
WPARAM w_param, |
LPARAM l_param, |
- LRESULT* result) OVERRIDE; |
+ LRESULT* result) override; |
virtual void HandleInputLanguageChange(DWORD character_set, |
- HKL input_language_id) OVERRIDE; |
- virtual bool HandlePaintAccelerated(const gfx::Rect& invalid_rect) OVERRIDE; |
- virtual void HandlePaint(gfx::Canvas* canvas) OVERRIDE; |
+ HKL input_language_id) override; |
+ virtual bool HandlePaintAccelerated(const gfx::Rect& invalid_rect) override; |
+ virtual void HandlePaint(gfx::Canvas* canvas) override; |
virtual bool HandleTooltipNotify(int w_param, |
NMHDR* l_param, |
- LRESULT* l_result) OVERRIDE; |
- virtual void HandleMenuLoop(bool in_menu_loop) OVERRIDE; |
+ LRESULT* l_result) override; |
+ virtual void HandleMenuLoop(bool in_menu_loop) override; |
virtual bool PreHandleMSG(UINT message, |
WPARAM w_param, |
LPARAM l_param, |
- LRESULT* result) OVERRIDE; |
+ LRESULT* result) override; |
virtual void PostHandleMSG(UINT message, |
WPARAM w_param, |
- LPARAM l_param) OVERRIDE; |
- virtual bool HandleScrollEvent(const ui::ScrollEvent& event) OVERRIDE; |
- virtual void HandleWindowSizeChanging() OVERRIDE; |
+ LPARAM l_param) override; |
+ virtual bool HandleScrollEvent(const ui::ScrollEvent& event) override; |
+ virtual void HandleWindowSizeChanging() override; |
Widget* GetWidget(); |
const Widget* GetWidget() const; |