public:
ShellNativeAppWindow(AppWindow* app_window,
const AppWindow::CreateParams& params);
- virtual ~ShellNativeAppWindow();
+ ~ShellNativeAppWindow() override;
// ui::BaseView overrides:
- virtual bool IsActive() const OVERRIDE;
- virtual bool IsMaximized() const OVERRIDE;
- virtual bool IsMinimized() const OVERRIDE;
- virtual bool IsFullscreen() const OVERRIDE;
- virtual gfx::NativeWindow GetNativeWindow() OVERRIDE;
- virtual gfx::Rect GetRestoredBounds() const OVERRIDE;
- virtual ui::WindowShowState GetRestoredState() const OVERRIDE;
- virtual gfx::Rect GetBounds() const OVERRIDE;
- virtual void Show() OVERRIDE;
- virtual void Hide() OVERRIDE;
- virtual void ShowInactive() OVERRIDE;
- virtual void Close() OVERRIDE;
- virtual void Activate() OVERRIDE;
- virtual void Deactivate() OVERRIDE;
- virtual void Maximize() OVERRIDE;
- virtual void Minimize() OVERRIDE;
- virtual void Restore() OVERRIDE;
- virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
- virtual void FlashFrame(bool flash) OVERRIDE;
- virtual bool IsAlwaysOnTop() const OVERRIDE;
- virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE;
+ bool IsActive() const override;
+ bool IsMaximized() const override;
+ bool IsMinimized() const override;
+ bool IsFullscreen() const override;
+ gfx::NativeWindow GetNativeWindow() const override;
+ gfx::Rect GetRestoredBounds() const override;
+ ui::WindowShowState GetRestoredState() const override;
+ gfx::Rect GetBounds() const override;
+ void Show() override;
+ void Hide() override;
+ void ShowInactive() override;
+ void Close() override;
+ void Activate() override;
+ void Deactivate() override;
+ void Maximize() override;
+ void Minimize() override;
+ void Restore() override;
+ void SetBounds(const gfx::Rect& bounds) override;
+ void FlashFrame(bool flash) override;
+ bool IsAlwaysOnTop() const override;
+ void SetAlwaysOnTop(bool always_on_top) override;
// web_modal::ModalDialogHost overrides:
- virtual gfx::NativeView GetHostView() const OVERRIDE;
- virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE;
- virtual void AddObserver(
- web_modal::ModalDialogHostObserver* observer) OVERRIDE;
- virtual void RemoveObserver(
- web_modal::ModalDialogHostObserver* observer) OVERRIDE;
+ gfx::NativeView GetHostView() const override;
+ gfx::Point GetDialogPosition(const gfx::Size& size) override;
+ void AddObserver(web_modal::ModalDialogHostObserver* observer) override;
+ void RemoveObserver(web_modal::ModalDialogHostObserver* observer) override;
// web_modal::WebContentsModalDialogHost overrides:
- virtual gfx::Size GetMaximumDialogSize() OVERRIDE;
+ gfx::Size GetMaximumDialogSize() override;
// NativeAppWindow overrides:
- virtual void SetFullscreen(int fullscreen_types) OVERRIDE;
- virtual bool IsFullscreenOrPending() const OVERRIDE;
- virtual void UpdateWindowIcon() OVERRIDE;
- virtual void UpdateWindowTitle() OVERRIDE;
- virtual void UpdateBadgeIcon() OVERRIDE;
- virtual void UpdateDraggableRegions(
- const std::vector<DraggableRegion>& regions) OVERRIDE;
- virtual SkRegion* GetDraggableRegion() OVERRIDE;
- virtual void UpdateShape(scoped_ptr<SkRegion> region) OVERRIDE;
- virtual void HandleKeyboardEvent(
- const content::NativeWebKeyboardEvent& event) OVERRIDE;
- virtual bool IsFrameless() const OVERRIDE;
- virtual bool HasFrameColor() const OVERRIDE;
- virtual SkColor ActiveFrameColor() const OVERRIDE;
- virtual SkColor InactiveFrameColor() const OVERRIDE;
- virtual gfx::Insets GetFrameInsets() const OVERRIDE;
- virtual void ShowWithApp() OVERRIDE;
- virtual void HideWithApp() OVERRIDE;
- virtual void UpdateShelfMenu() OVERRIDE;
- virtual gfx::Size GetContentMinimumSize() const OVERRIDE;
- virtual gfx::Size GetContentMaximumSize() const OVERRIDE;
- virtual void SetContentSizeConstraints(const gfx::Size& min_size,
- const gfx::Size& max_size) OVERRIDE;
- virtual void SetVisibleOnAllWorkspaces(bool always_visible) OVERRIDE;
- virtual bool CanHaveAlphaEnabled() const OVERRIDE;
+ void SetFullscreen(int fullscreen_types) override;
+ bool IsFullscreenOrPending() const override;
+ void UpdateWindowIcon() override;
+ void UpdateWindowTitle() override;
+ void UpdateBadgeIcon() override;
+ void UpdateDraggableRegions(
+ const std::vector<DraggableRegion>& regions) override;
+ SkRegion* GetDraggableRegion() override;
+ void UpdateShape(scoped_ptr<SkRegion> region) override;
+ void HandleKeyboardEvent(
+ const content::NativeWebKeyboardEvent& event) override;
+ bool IsFrameless() const override;
+ bool HasFrameColor() const override;
+ SkColor ActiveFrameColor() const override;
+ SkColor InactiveFrameColor() const override;
+ gfx::Insets GetFrameInsets() const override;
+ void ShowWithApp() override;
+ void HideWithApp() override;
+ void UpdateShelfMenu() override;
+ gfx::Size GetContentMinimumSize() const override;
+ gfx::Size GetContentMaximumSize() const override;
+ void SetContentSizeConstraints(const gfx::Size& min_size,
+ const gfx::Size& max_size) override;
+ void SetVisibleOnAllWorkspaces(bool always_visible) override;
+ bool CanHaveAlphaEnabled() const override;
private:
aura::Window* GetWindow() const;