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

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

Issue 617503003: Mojo: MOJO_OVERRIDE -> override in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased 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
« no previous file with comments | « mojo/examples/wm_flow/wm/frame_controller.h ('k') | mojo/public/c/system/tests/core_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/wm_flow/wm/wm.cc
diff --git a/mojo/examples/wm_flow/wm/wm.cc b/mojo/examples/wm_flow/wm/wm.cc
index f1f23e648e1561e14e8f618f39206df8085925a3..f2787fcbe4042e08611abc138f79c4bf12d812d3 100644
--- a/mojo/examples/wm_flow/wm/wm.cc
+++ b/mojo/examples/wm_flow/wm/wm.cc
@@ -35,19 +35,18 @@ class WMFocusRules : public wm::FocusRules {
private:
// Overridden from wm::FocusRules:
- virtual bool IsToplevelWindow(aura::Window* window) const MOJO_OVERRIDE {
+ virtual bool IsToplevelWindow(aura::Window* window) const override {
return mojo::WindowManagerApp::GetViewForWindow(window)->parent() ==
window_container_;
}
- virtual bool CanActivateWindow(aura::Window* window) const MOJO_OVERRIDE {
+ virtual bool CanActivateWindow(aura::Window* window) const override {
return mojo::WindowManagerApp::GetViewForWindow(window)->parent() ==
window_container_;
}
- virtual bool CanFocusWindow(aura::Window* window) const MOJO_OVERRIDE {
+ virtual bool CanFocusWindow(aura::Window* window) const override {
return true;
}
- virtual aura::Window* GetToplevelWindow(
- aura::Window* window) const MOJO_OVERRIDE {
+ virtual aura::Window* GetToplevelWindow(aura::Window* window) const override {
mojo::View* view = mojo::WindowManagerApp::GetViewForWindow(window);
while (view->parent() != window_container_) {
view = view->parent();
@@ -59,15 +58,15 @@ class WMFocusRules : public wm::FocusRules {
return window_manager_app_->GetWindowForViewId(view->id());
}
virtual aura::Window* GetActivatableWindow(
- aura::Window* window) const MOJO_OVERRIDE {
+ aura::Window* window) const override {
return GetToplevelWindow(window);
}
virtual aura::Window* GetFocusableWindow(
- aura::Window* window) const MOJO_OVERRIDE {
+ aura::Window* window) const override {
return window;
}
virtual aura::Window* GetNextActivatableWindow(
- aura::Window* ignore) const MOJO_OVERRIDE {
+ aura::Window* ignore) const override {
aura::Window* activatable = GetActivatableWindow(ignore);
const aura::Window::Windows& children = activatable->parent()->children();
for (aura::Window::Windows::const_reverse_iterator it = children.rbegin();
@@ -101,11 +100,11 @@ class SimpleWM : public mojo::ApplicationDelegate,
private:
// Overridden from mojo::ApplicationDelegate:
- virtual void Initialize(mojo::ApplicationImpl* impl) MOJO_OVERRIDE {
+ virtual void Initialize(mojo::ApplicationImpl* impl) override {
window_manager_app_->Initialize(impl);
}
virtual bool ConfigureIncomingConnection(
- mojo::ApplicationConnection* connection) MOJO_OVERRIDE {
+ mojo::ApplicationConnection* connection) override {
window_manager_app_->ConfigureIncomingConnection(connection);
return true;
}
@@ -115,7 +114,7 @@ class SimpleWM : public mojo::ApplicationDelegate,
mojo::ViewManager* view_manager,
mojo::View* root,
mojo::ServiceProviderImpl* exported_services,
- scoped_ptr<mojo::ServiceProvider> remote_service_provider) MOJO_OVERRIDE {
+ scoped_ptr<mojo::ServiceProvider> remote_service_provider) override {
view_manager_ = view_manager;
root_ = root;
@@ -127,7 +126,7 @@ class SimpleWM : public mojo::ApplicationDelegate,
window_container_));
}
virtual void OnViewManagerDisconnected(
- mojo::ViewManager* view_manager) MOJO_OVERRIDE {
+ mojo::ViewManager* view_manager) override {
view_manager_ = NULL;
root_ = NULL;
}
@@ -135,8 +134,7 @@ class SimpleWM : public mojo::ApplicationDelegate,
// Overridden from mojo::WindowManagerDelegate:
virtual void Embed(
const mojo::String& url,
- mojo::InterfaceRequest<mojo::ServiceProvider> service_provider)
- MOJO_OVERRIDE {
+ mojo::InterfaceRequest<mojo::ServiceProvider> service_provider) override {
mojo::View* app_view = NULL;
mojo::View* frame_view = CreateTopLevelWindow(&app_view);
window_container_->AddChild(frame_view);
@@ -148,18 +146,18 @@ class SimpleWM : public mojo::ApplicationDelegate,
app_view->Embed(url, scoped_ptr<mojo::ServiceProviderImpl>(
new mojo::ServiceProviderImpl).Pass());
}
- virtual void DispatchEvent(mojo::EventPtr event) MOJO_OVERRIDE {}
+ virtual void DispatchEvent(mojo::EventPtr event) override {}
// Overridden from mojo::ViewObserver:
virtual void OnViewInputEvent(mojo::View* view,
- const mojo::EventPtr& event) MOJO_OVERRIDE {
+ const mojo::EventPtr& event) override {
if (event->action == mojo::EVENT_TYPE_MOUSE_RELEASED &&
event->flags & mojo::EVENT_FLAGS_RIGHT_MOUSE_BUTTON &&
view->parent() == window_container_) {
CloseWindow(view);
}
}
- virtual void OnViewDestroyed(mojo::View* view) MOJO_OVERRIDE {
+ virtual void OnViewDestroyed(mojo::View* view) override {
view->RemoveObserver(this);
}
« no previous file with comments | « mojo/examples/wm_flow/wm/frame_controller.h ('k') | mojo/public/c/system/tests/core_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698