Index: ui/aura/demo/demo_main.cc |
diff --git a/ui/aura/demo/demo_main.cc b/ui/aura/demo/demo_main.cc |
index ec5ea52417e6567b7441b0f7715617680122c5da..53b87f68693d73fe55c51205ce24b03d5ec64f62 100644 |
--- a/ui/aura/demo/demo_main.cc |
+++ b/ui/aura/demo/demo_main.cc |
@@ -39,38 +39,34 @@ class DemoWindowDelegate : public aura::WindowDelegate { |
explicit DemoWindowDelegate(SkColor color) : color_(color) {} |
// Overridden from WindowDelegate: |
- virtual gfx::Size GetMinimumSize() const override { |
- return gfx::Size(); |
- } |
+ gfx::Size GetMinimumSize() const override { return gfx::Size(); } |
- virtual gfx::Size GetMaximumSize() const override { |
- return gfx::Size(); |
- } |
+ 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 { |
+ void OnBoundsChanged(const gfx::Rect& old_bounds, |
+ const gfx::Rect& new_bounds) override {} |
+ gfx::NativeCursor GetCursor(const gfx::Point& point) override { |
return gfx::kNullCursor; |
} |
- virtual int GetNonClientComponent(const gfx::Point& point) const override { |
+ int GetNonClientComponent(const gfx::Point& point) const override { |
return HTCAPTION; |
} |
- virtual bool ShouldDescendIntoChildForEventHandling( |
+ bool ShouldDescendIntoChildForEventHandling( |
aura::Window* child, |
const gfx::Point& location) override { |
return true; |
} |
- virtual bool CanFocus() override { return true; } |
- virtual void OnCaptureLost() override {} |
- virtual void OnPaint(gfx::Canvas* canvas) override { |
+ bool CanFocus() override { return true; } |
+ void OnCaptureLost() override {} |
+ 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 {} |
+ void OnDeviceScaleFactorChanged(float device_scale_factor) override {} |
+ void OnWindowDestroying(aura::Window* window) override {} |
+ void OnWindowDestroyed(aura::Window* window) override {} |
+ void OnWindowTargetVisibilityChanged(bool visible) override {} |
+ bool HasHitTestMask() const override { return false; } |
+ void GetHitTestMask(gfx::Path* mask) const override {} |
private: |
SkColor color_; |
@@ -84,14 +80,14 @@ class DemoWindowTreeClient : public aura::client::WindowTreeClient { |
aura::client::SetWindowTreeClient(window_, this); |
} |
- virtual ~DemoWindowTreeClient() { |
+ ~DemoWindowTreeClient() override { |
aura::client::SetWindowTreeClient(window_, NULL); |
} |
// Overridden from aura::client::WindowTreeClient: |
- virtual aura::Window* GetDefaultParent(aura::Window* context, |
- aura::Window* window, |
- const gfx::Rect& bounds) override { |
+ aura::Window* GetDefaultParent(aura::Window* context, |
+ aura::Window* window, |
+ const gfx::Rect& bounds) override { |
if (!capture_client_) { |
capture_client_.reset( |
new aura::client::DefaultCaptureClient(window_->GetRootWindow())); |