Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(955)

Unified Diff: mojo/examples/wm_flow/wm/frame_controller.cc

Issue 623573002: Mojo: Convert the remaining OVERRIDEs to override in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/examples/wm_flow/wm/frame_controller.cc
diff --git a/mojo/examples/wm_flow/wm/frame_controller.cc b/mojo/examples/wm_flow/wm/frame_controller.cc
index f8d8b495a6cc78d31f7fa807b9a3039175bf00d9..7ed1dac887d8a244bb657eb201032ac222305911 100644
--- a/mojo/examples/wm_flow/wm/frame_controller.cc
+++ b/mojo/examples/wm_flow/wm/frame_controller.cc
@@ -4,6 +4,7 @@
#include "mojo/examples/wm_flow/wm/frame_controller.h"
+#include "base/macros.h"
#include "base/strings/utf_string_conversions.h"
#include "mojo/services/public/cpp/view_manager/view.h"
#include "mojo/services/window_manager/window_manager_app.h"
@@ -31,11 +32,11 @@ class FrameController::LayoutManager : public views::LayoutManager,
static const int kFrameSize = 10;
// Overridden from views::LayoutManager:
- virtual void Installed(views::View* host) OVERRIDE {
+ virtual void Installed(views::View* host) override {
host->AddChildView(close_button_);
host->AddChildView(maximize_button_);
}
- virtual void Layout(views::View* host) OVERRIDE {
+ virtual void Layout(views::View* host) override {
gfx::Size ps = close_button_->GetPreferredSize();
gfx::Rect bounds = host->GetLocalBounds();
close_button_->SetBounds(bounds.right() - kButtonFrameMargin - ps.width(),
@@ -51,13 +52,13 @@ class FrameController::LayoutManager : public views::LayoutManager,
kFrameSize, kFrameSize);
controller_->app_view_->SetBounds(bounds);
}
- virtual gfx::Size GetPreferredSize(const views::View* host) const OVERRIDE {
+ virtual gfx::Size GetPreferredSize(const views::View* host) const override {
return gfx::Size();
}
// Overridden from views::ButtonListener:
virtual void ButtonPressed(views::Button* sender,
- const ui::Event& event) OVERRIDE {
+ const ui::Event& event) override {
if (sender == close_button_)
controller_->CloseWindow();
else if (sender == maximize_button_)
@@ -80,7 +81,7 @@ class FrameController::FrameEventHandler : public ui::EventHandler {
private:
// Overriden from ui::EventHandler:
- virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE {
+ virtual void OnMouseEvent(ui::MouseEvent* event) override {
if (event->type() == ui::ET_MOUSE_PRESSED)
frame_controller_->ActivateWindow();
}
« no previous file with comments | « mojo/examples/wm_flow/embedded/embedded.cc ('k') | mojo/services/clipboard/clipboard_standalone_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698