Index: athena/env/athena_env_impl.cc |
diff --git a/athena/env/athena_env_impl.cc b/athena/env/athena_env_impl.cc |
index bc9b7c5899aa1c651f1df5e23aa7fb09a9f455dc..f568da0a24f8b8e3f389279beb2f23f94215f01e 100644 |
--- a/athena/env/athena_env_impl.cc |
+++ b/athena/env/athena_env_impl.cc |
@@ -56,37 +56,37 @@ class ScreenForShutdown : public gfx::Screen { |
: primary_display_(primary_display) {} |
// gfx::Screen overrides: |
- virtual bool IsDIPEnabled() OVERRIDE { return true; } |
- virtual gfx::Point GetCursorScreenPoint() OVERRIDE { return gfx::Point(); } |
- virtual gfx::NativeWindow GetWindowUnderCursor() OVERRIDE { return NULL; } |
+ virtual bool IsDIPEnabled() override { return true; } |
+ virtual gfx::Point GetCursorScreenPoint() override { return gfx::Point(); } |
+ virtual gfx::NativeWindow GetWindowUnderCursor() override { return NULL; } |
virtual gfx::NativeWindow GetWindowAtScreenPoint( |
- const gfx::Point& point) OVERRIDE { |
+ const gfx::Point& point) override { |
return NULL; |
} |
- virtual int GetNumDisplays() const OVERRIDE { return 1; } |
- virtual std::vector<gfx::Display> GetAllDisplays() const OVERRIDE { |
+ virtual int GetNumDisplays() const override { return 1; } |
+ virtual std::vector<gfx::Display> GetAllDisplays() const override { |
std::vector<gfx::Display> displays(1, primary_display_); |
return displays; |
} |
virtual gfx::Display GetDisplayNearestWindow( |
- gfx::NativeView view) const OVERRIDE { |
+ gfx::NativeView view) const override { |
return primary_display_; |
} |
virtual gfx::Display GetDisplayNearestPoint( |
- const gfx::Point& point) const OVERRIDE { |
+ const gfx::Point& point) const override { |
return primary_display_; |
} |
virtual gfx::Display GetDisplayMatching( |
- const gfx::Rect& match_rect) const OVERRIDE { |
+ const gfx::Rect& match_rect) const override { |
return primary_display_; |
} |
- virtual gfx::Display GetPrimaryDisplay() const OVERRIDE { |
+ virtual gfx::Display GetPrimaryDisplay() const override { |
return primary_display_; |
} |
- virtual void AddObserver(gfx::DisplayObserver* observer) OVERRIDE { |
+ virtual void AddObserver(gfx::DisplayObserver* observer) override { |
NOTREACHED() << "Observer should not be added during shutdown"; |
} |
- virtual void RemoveObserver(gfx::DisplayObserver* observer) OVERRIDE {} |
+ virtual void RemoveObserver(gfx::DisplayObserver* observer) override {} |
const gfx::Display primary_display_; |
@@ -103,13 +103,13 @@ class AthenaNativeCursorManager : public wm::NativeCursorManager { |
// wm::NativeCursorManager overrides. |
virtual void SetDisplay(const gfx::Display& display, |
- wm::NativeCursorManagerDelegate* delegate) OVERRIDE { |
+ wm::NativeCursorManagerDelegate* delegate) override { |
if (image_cursors_->SetDisplay(display, display.device_scale_factor())) |
SetCursor(delegate->GetCursor(), delegate); |
} |
virtual void SetCursor(gfx::NativeCursor cursor, |
- wm::NativeCursorManagerDelegate* delegate) OVERRIDE { |
+ wm::NativeCursorManagerDelegate* delegate) override { |
image_cursors_->SetPlatformCursor(&cursor); |
cursor.set_device_scale_factor(image_cursors_->GetScale()); |
delegate->CommitCursor(cursor); |
@@ -120,7 +120,7 @@ class AthenaNativeCursorManager : public wm::NativeCursorManager { |
virtual void SetVisibility( |
bool visible, |
- wm::NativeCursorManagerDelegate* delegate) OVERRIDE { |
+ wm::NativeCursorManagerDelegate* delegate) override { |
delegate->CommitVisibility(visible); |
if (visible) { |
@@ -134,7 +134,7 @@ class AthenaNativeCursorManager : public wm::NativeCursorManager { |
virtual void SetCursorSet( |
ui::CursorSetType cursor_set, |
- wm::NativeCursorManagerDelegate* delegate) OVERRIDE { |
+ wm::NativeCursorManagerDelegate* delegate) override { |
image_cursors_->SetCursorSet(cursor_set); |
delegate->CommitCursorSet(cursor_set); |
if (delegate->IsCursorVisible()) |
@@ -143,7 +143,7 @@ class AthenaNativeCursorManager : public wm::NativeCursorManager { |
virtual void SetMouseEventsEnabled( |
bool enabled, |
- wm::NativeCursorManagerDelegate* delegate) OVERRIDE { |
+ wm::NativeCursorManagerDelegate* delegate) override { |
delegate->CommitMouseEventsEnabled(enabled); |
SetVisibility(delegate->IsCursorVisible(), delegate); |
} |
@@ -260,13 +260,13 @@ class AthenaEnvImpl : public AthenaEnv, |
}; |
// AthenaEnv: |
- virtual aura::WindowTreeHost* GetHost() OVERRIDE { return host_.get(); } |
+ virtual aura::WindowTreeHost* GetHost() override { return host_.get(); } |
- virtual void SetDisplayWorkAreaInsets(const gfx::Insets& insets) OVERRIDE { |
+ virtual void SetDisplayWorkAreaInsets(const gfx::Insets& insets) override { |
screen_->SetWorkAreaInsets(insets); |
} |
- virtual void AddTerminatingCallback(const base::Closure& closure) OVERRIDE { |
+ virtual void AddTerminatingCallback(const base::Closure& closure) override { |
if (closure.is_null()) |
return; |
DCHECK(terminating_callbacks_.end() == |
@@ -277,7 +277,7 @@ class AthenaEnvImpl : public AthenaEnv, |
} |
virtual void RemoveTerminatingCallback( |
- const base::Closure& closure) OVERRIDE { |
+ const base::Closure& closure) override { |
std::vector<base::Closure>::iterator iter = |
std::find_if(terminating_callbacks_.begin(), |
terminating_callbacks_.end(), |
@@ -286,7 +286,7 @@ class AthenaEnvImpl : public AthenaEnv, |
terminating_callbacks_.erase(iter); |
} |
- virtual void OnTerminating() OVERRIDE { |
+ virtual void OnTerminating() override { |
for (std::vector<base::Closure>::iterator iter = |
terminating_callbacks_.begin(); |
iter != terminating_callbacks_.end(); |
@@ -297,14 +297,14 @@ class AthenaEnvImpl : public AthenaEnv, |
// ui::DisplayConfigurator::Observer: |
virtual void OnDisplayModeChanged(const std::vector< |
- ui::DisplayConfigurator::DisplayState>& displays) OVERRIDE { |
+ ui::DisplayConfigurator::DisplayState>& displays) override { |
gfx::Size size = GetPrimaryDisplaySize(); |
if (!size.IsEmpty()) |
host_->UpdateRootWindowSize(size); |
} |
// aura::WindowTreeHostObserver: |
- virtual void OnHostCloseRequested(const aura::WindowTreeHost* host) OVERRIDE { |
+ virtual void OnHostCloseRequested(const aura::WindowTreeHost* host) override { |
base::MessageLoopForUI::current()->PostTask( |
FROM_HERE, base::MessageLoop::QuitClosure()); |
} |