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

Unified Diff: athena/wm/window_overview_mode.cc

Issue 641683003: C++11 override style change for athena (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 6 years, 2 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: athena/wm/window_overview_mode.cc
diff --git a/athena/wm/window_overview_mode.cc b/athena/wm/window_overview_mode.cc
index 70deb30d6df7a93ac3c08cbbebd41bc5d587f046..edb343b493e96dc128c387775d85cb37c4d33ca9 100644
--- a/athena/wm/window_overview_mode.cc
+++ b/athena/wm/window_overview_mode.cc
@@ -261,16 +261,16 @@ void AnimateWindowTo(aura::Window* animate_window,
class StaticWindowTargeter : public aura::WindowTargeter {
public:
explicit StaticWindowTargeter(aura::Window* target) : target_(target) {}
- virtual ~StaticWindowTargeter() {}
+ ~StaticWindowTargeter() override {}
private:
// aura::WindowTargeter:
- virtual ui::EventTarget* FindTargetForEvent(ui::EventTarget* root,
+ ui::EventTarget* FindTargetForEvent(ui::EventTarget* root,
ui::Event* event) override {
return target_;
}
- virtual ui::EventTarget* FindTargetForLocatedEvent(
+ ui::EventTarget* FindTargetForLocatedEvent(
ui::EventTarget* root,
ui::LocatedEvent* event) override {
return target_;
@@ -309,7 +309,7 @@ class WindowOverviewModeImpl : public WindowOverviewMode,
window_list_provider_->AddObserver(this);
}
- virtual ~WindowOverviewModeImpl() {
+ ~WindowOverviewModeImpl() override {
window_list_provider_->RemoveObserver(this);
container_->set_target_handler(container_->delegate());
RemoveAnimationObserver();
@@ -697,7 +697,7 @@ class WindowOverviewModeImpl : public WindowOverviewMode,
}
// ui::EventHandler:
- virtual void OnMouseEvent(ui::MouseEvent* mouse) override {
+ void OnMouseEvent(ui::MouseEvent* mouse) override {
if (mouse->type() == ui::ET_MOUSE_PRESSED) {
aura::Window* select = SelectWindowAt(mouse);
if (select) {
@@ -709,12 +709,12 @@ class WindowOverviewModeImpl : public WindowOverviewMode,
}
}
- virtual void OnScrollEvent(ui::ScrollEvent* scroll) override {
+ void OnScrollEvent(ui::ScrollEvent* scroll) override {
if (scroll->type() == ui::ET_SCROLL)
DoScroll(scroll->y_offset());
}
- virtual void OnGestureEvent(ui::GestureEvent* gesture) override {
+ void OnGestureEvent(ui::GestureEvent* gesture) override {
if (gesture->type() == ui::ET_GESTURE_TAP) {
aura::Window* select = SelectWindowAt(gesture);
if (select) {
@@ -776,7 +776,7 @@ class WindowOverviewModeImpl : public WindowOverviewMode,
}
// ui::CompositorAnimationObserver:
- virtual void OnAnimationStep(base::TimeTicks timestamp) override {
+ void OnAnimationStep(base::TimeTicks timestamp) override {
CHECK(fling_);
gfx::Vector2dF delta;
bool fling_active = fling_->ComputeScrollDeltaAtTime(timestamp, &delta);
@@ -791,14 +791,14 @@ class WindowOverviewModeImpl : public WindowOverviewMode,
}
// WindowListProviderObserver:
- virtual void OnWindowStackingChanged() override {
+ void OnWindowStackingChanged() override {
// Recompute the states of all windows. There isn't enough information at
// this point to do anything more clever.
ComputeTerminalStatesForAllWindows();
SetInitialWindowStates();
}
- virtual void OnWindowRemoved(aura::Window* removed_window,
+ void OnWindowRemoved(aura::Window* removed_window,
int index) override {
const aura::Window::Windows& windows =
window_list_provider_->GetWindowList();

Powered by Google App Engine
This is Rietveld 408576698