Index: mojo/examples/aura_demo/aura_demo.cc |
diff --git a/mojo/examples/aura_demo/aura_demo.cc b/mojo/examples/aura_demo/aura_demo.cc |
index 439ae38b7a9ba3b11f2e42a1f959370ae85764bc..1895761b793257d18eaac04c9f504fa6e067a1af 100644 |
--- a/mojo/examples/aura_demo/aura_demo.cc |
+++ b/mojo/examples/aura_demo/aura_demo.cc |
@@ -6,6 +6,7 @@ |
#include <string> |
#include "base/bind.h" |
+#include "base/macros.h" |
#include "mojo/application/application_runner_chromium.h" |
#include "mojo/aura/context_factory_mojo.h" |
#include "mojo/aura/screen_mojo.h" |
@@ -38,38 +39,38 @@ class DemoWindowDelegate : public aura::WindowDelegate { |
explicit DemoWindowDelegate(SkColor color) : color_(color) {} |
// Overridden from WindowDelegate: |
- virtual gfx::Size GetMinimumSize() const OVERRIDE { |
+ virtual gfx::Size GetMinimumSize() const override { |
return gfx::Size(); |
} |
- virtual gfx::Size GetMaximumSize() const OVERRIDE { |
+ virtual gfx::Size GetMaximumSize() const override { |
return gfx::Size(); |
} |
virtual void OnBoundsChanged(const gfx::Rect& old_bounds, |
- const gfx::Rect& new_bounds) OVERRIDE {} |
- virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE { |
+ const gfx::Rect& new_bounds) override {} |
+ virtual gfx::NativeCursor GetCursor(const gfx::Point& point) override { |
return gfx::kNullCursor; |
} |
- virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE { |
+ virtual int GetNonClientComponent(const gfx::Point& point) const override { |
return HTCAPTION; |
} |
virtual bool ShouldDescendIntoChildForEventHandling( |
aura::Window* child, |
- const gfx::Point& location) OVERRIDE { |
+ const gfx::Point& location) override { |
return true; |
} |
- virtual bool CanFocus() OVERRIDE { return true; } |
- virtual void OnCaptureLost() OVERRIDE {} |
- virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE { |
+ virtual bool CanFocus() override { return true; } |
+ virtual void OnCaptureLost() override {} |
+ virtual void OnPaint(gfx::Canvas* canvas) override { |
canvas->DrawColor(color_, SkXfermode::kSrc_Mode); |
} |
- virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE {} |
- virtual void OnWindowDestroying(aura::Window* window) OVERRIDE {} |
- virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE {} |
- virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE {} |
- virtual bool HasHitTestMask() const OVERRIDE { return false; } |
- virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE {} |
+ virtual void OnDeviceScaleFactorChanged(float device_scale_factor) override {} |
+ virtual void OnWindowDestroying(aura::Window* window) override {} |
+ virtual void OnWindowDestroyed(aura::Window* window) override {} |
+ virtual void OnWindowTargetVisibilityChanged(bool visible) override {} |
+ virtual bool HasHitTestMask() const override { return false; } |
+ virtual void GetHitTestMask(gfx::Path* mask) const override {} |
private: |
const SkColor color_; |
@@ -90,7 +91,7 @@ class DemoWindowTreeClient : public aura::client::WindowTreeClient { |
// Overridden from aura::client::WindowTreeClient: |
virtual aura::Window* GetDefaultParent(aura::Window* context, |
aura::Window* window, |
- const gfx::Rect& bounds) OVERRIDE { |
+ const gfx::Rect& bounds) override { |
if (!capture_client_) { |
capture_client_.reset( |
new aura::client::DefaultCaptureClient(window_->GetRootWindow())); |
@@ -118,7 +119,7 @@ class AuraDemo : public mojo::ApplicationDelegate, |
mojo::ViewManager* view_manager, |
mojo::View* root, |
mojo::ServiceProviderImpl* exported_services, |
- scoped_ptr<mojo::ServiceProvider> imported_services) OVERRIDE { |
+ scoped_ptr<mojo::ServiceProvider> imported_services) override { |
// TODO(beng): this function could be called multiple times! |
root_ = root; |
@@ -152,12 +153,12 @@ class AuraDemo : public mojo::ApplicationDelegate, |
window_tree_host_->Show(); |
} |
virtual void OnViewManagerDisconnected( |
- mojo::ViewManager* view_manager) OVERRIDE { |
+ mojo::ViewManager* view_manager) override { |
base::MessageLoop::current()->Quit(); |
} |
// WindowTreeHostMojoDelegate: |
- virtual void CompositorContentsChanged(const SkBitmap& bitmap) OVERRIDE { |
+ virtual void CompositorContentsChanged(const SkBitmap& bitmap) override { |
root_->SetContents(bitmap); |
} |