| Index: athena/env/athena_env_impl.cc
|
| diff --git a/athena/env/athena_env_impl.cc b/athena/env/athena_env_impl.cc
|
| index 3359dd9754a796accd191f5bf4b4bdb5f2d0fbf5..20f3852cd42bf4de22ff9e28a22288d347462887 100644
|
| --- a/athena/env/athena_env_impl.cc
|
| +++ b/athena/env/athena_env_impl.cc
|
| @@ -56,36 +56,36 @@ class ScreenForShutdown : public gfx::Screen {
|
| : primary_display_(primary_display) {}
|
|
|
| // gfx::Screen overrides:
|
| - virtual gfx::Point GetCursorScreenPoint() override { return gfx::Point(); }
|
| - virtual gfx::NativeWindow GetWindowUnderCursor() override { return NULL; }
|
| - virtual gfx::NativeWindow GetWindowAtScreenPoint(
|
| + gfx::Point GetCursorScreenPoint() override { return gfx::Point(); }
|
| + gfx::NativeWindow GetWindowUnderCursor() override { return NULL; }
|
| + gfx::NativeWindow GetWindowAtScreenPoint(
|
| const gfx::Point& point) override {
|
| return NULL;
|
| }
|
| - virtual int GetNumDisplays() const override { return 1; }
|
| - virtual std::vector<gfx::Display> GetAllDisplays() const override {
|
| + int GetNumDisplays() const override { return 1; }
|
| + std::vector<gfx::Display> GetAllDisplays() const override {
|
| std::vector<gfx::Display> displays(1, primary_display_);
|
| return displays;
|
| }
|
| - virtual gfx::Display GetDisplayNearestWindow(
|
| + gfx::Display GetDisplayNearestWindow(
|
| gfx::NativeView view) const override {
|
| return primary_display_;
|
| }
|
| - virtual gfx::Display GetDisplayNearestPoint(
|
| + gfx::Display GetDisplayNearestPoint(
|
| const gfx::Point& point) const override {
|
| return primary_display_;
|
| }
|
| - virtual gfx::Display GetDisplayMatching(
|
| + gfx::Display GetDisplayMatching(
|
| const gfx::Rect& match_rect) const override {
|
| return primary_display_;
|
| }
|
| - virtual gfx::Display GetPrimaryDisplay() const override {
|
| + gfx::Display GetPrimaryDisplay() const override {
|
| return primary_display_;
|
| }
|
| - virtual void AddObserver(gfx::DisplayObserver* observer) override {
|
| + void AddObserver(gfx::DisplayObserver* observer) override {
|
| NOTREACHED() << "Observer should not be added during shutdown";
|
| }
|
| - virtual void RemoveObserver(gfx::DisplayObserver* observer) override {}
|
| + void RemoveObserver(gfx::DisplayObserver* observer) override {}
|
|
|
| const gfx::Display primary_display_;
|
|
|
| @@ -98,16 +98,16 @@ class AthenaNativeCursorManager : public wm::NativeCursorManager {
|
| public:
|
| explicit AthenaNativeCursorManager(aura::WindowTreeHost* host)
|
| : host_(host), image_cursors_(new ui::ImageCursors) {}
|
| - virtual ~AthenaNativeCursorManager() {}
|
| + ~AthenaNativeCursorManager() override {}
|
|
|
| // wm::NativeCursorManager overrides.
|
| - virtual void SetDisplay(const gfx::Display& display,
|
| + void SetDisplay(const gfx::Display& display,
|
| wm::NativeCursorManagerDelegate* delegate) override {
|
| if (image_cursors_->SetDisplay(display, display.device_scale_factor()))
|
| SetCursor(delegate->GetCursor(), delegate);
|
| }
|
|
|
| - virtual void SetCursor(gfx::NativeCursor cursor,
|
| + void SetCursor(gfx::NativeCursor cursor,
|
| wm::NativeCursorManagerDelegate* delegate) override {
|
| image_cursors_->SetPlatformCursor(&cursor);
|
| cursor.set_device_scale_factor(image_cursors_->GetScale());
|
| @@ -117,7 +117,7 @@ class AthenaNativeCursorManager : public wm::NativeCursorManager {
|
| ApplyCursor(cursor);
|
| }
|
|
|
| - virtual void SetVisibility(
|
| + void SetVisibility(
|
| bool visible,
|
| wm::NativeCursorManagerDelegate* delegate) override {
|
| delegate->CommitVisibility(visible);
|
| @@ -131,7 +131,7 @@ class AthenaNativeCursorManager : public wm::NativeCursorManager {
|
| }
|
| }
|
|
|
| - virtual void SetCursorSet(
|
| + void SetCursorSet(
|
| ui::CursorSetType cursor_set,
|
| wm::NativeCursorManagerDelegate* delegate) override {
|
| image_cursors_->SetCursorSet(cursor_set);
|
| @@ -140,7 +140,7 @@ class AthenaNativeCursorManager : public wm::NativeCursorManager {
|
| SetCursor(delegate->GetCursor(), delegate);
|
| }
|
|
|
| - virtual void SetMouseEventsEnabled(
|
| + void SetMouseEventsEnabled(
|
| bool enabled,
|
| wm::NativeCursorManagerDelegate* delegate) override {
|
| delegate->CommitMouseEventsEnabled(enabled);
|
| @@ -218,7 +218,7 @@ class AthenaEnvImpl : public AthenaEnv,
|
| instance = this;
|
| }
|
|
|
| - virtual ~AthenaEnvImpl() {
|
| + ~AthenaEnvImpl() override {
|
| instance = NULL;
|
|
|
| host_->RemoveObserver(this);
|
| @@ -256,13 +256,13 @@ class AthenaEnvImpl : public AthenaEnv,
|
| };
|
|
|
| // AthenaEnv:
|
| - virtual aura::WindowTreeHost* GetHost() override { return host_.get(); }
|
| + aura::WindowTreeHost* GetHost() override { return host_.get(); }
|
|
|
| - virtual void SetDisplayWorkAreaInsets(const gfx::Insets& insets) override {
|
| + void SetDisplayWorkAreaInsets(const gfx::Insets& insets) override {
|
| screen_->SetWorkAreaInsets(insets);
|
| }
|
|
|
| - virtual void AddTerminatingCallback(const base::Closure& closure) override {
|
| + void AddTerminatingCallback(const base::Closure& closure) override {
|
| if (closure.is_null())
|
| return;
|
| DCHECK(terminating_callbacks_.end() ==
|
| @@ -272,7 +272,7 @@ class AthenaEnvImpl : public AthenaEnv,
|
| terminating_callbacks_.push_back(closure);
|
| }
|
|
|
| - virtual void RemoveTerminatingCallback(
|
| + void RemoveTerminatingCallback(
|
| const base::Closure& closure) override {
|
| std::vector<base::Closure>::iterator iter =
|
| std::find_if(terminating_callbacks_.begin(),
|
| @@ -282,7 +282,7 @@ class AthenaEnvImpl : public AthenaEnv,
|
| terminating_callbacks_.erase(iter);
|
| }
|
|
|
| - virtual void OnTerminating() override {
|
| + void OnTerminating() override {
|
| for (std::vector<base::Closure>::iterator iter =
|
| terminating_callbacks_.begin();
|
| iter != terminating_callbacks_.end();
|
| @@ -292,7 +292,7 @@ class AthenaEnvImpl : public AthenaEnv,
|
| }
|
|
|
| // ui::DisplayConfigurator::Observer:
|
| - virtual void OnDisplayModeChanged(const std::vector<
|
| + void OnDisplayModeChanged(const std::vector<
|
| ui::DisplayConfigurator::DisplayState>& displays) override {
|
| gfx::Size size = GetPrimaryDisplaySize();
|
| if (!size.IsEmpty())
|
| @@ -300,7 +300,7 @@ class AthenaEnvImpl : public AthenaEnv,
|
| }
|
|
|
| // aura::WindowTreeHostObserver:
|
| - virtual void OnHostCloseRequested(const aura::WindowTreeHost* host) override {
|
| + void OnHostCloseRequested(const aura::WindowTreeHost* host) override {
|
| base::MessageLoopForUI::current()->PostTask(
|
| FROM_HERE, base::MessageLoop::QuitClosure());
|
| }
|
|
|