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

Unified Diff: ui/views/widget/root_view.cc

Issue 686493002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@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
« no previous file with comments | « ui/views/widget/root_view.h ('k') | ui/views/widget/root_view_targeter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/root_view.cc
diff --git a/ui/views/widget/root_view.cc b/ui/views/widget/root_view.cc
index 38fe05379c9c9ac797307309290f4203f993a946..c4cb51f036d94d881e5a28a954d5aa2f464d951a 100644
--- a/ui/views/widget/root_view.cc
+++ b/ui/views/widget/root_view.cc
@@ -47,7 +47,7 @@ class MouseEnterExitEvent : public ui::MouseEvent {
SetType(type);
}
- virtual ~MouseEnterExitEvent() {}
+ ~MouseEnterExitEvent() override {}
};
} // namespace
@@ -60,11 +60,11 @@ class PreEventDispatchHandler : public ui::EventHandler {
explicit PreEventDispatchHandler(View* owner)
: owner_(owner) {
}
- virtual ~PreEventDispatchHandler() {}
+ ~PreEventDispatchHandler() override {}
private:
// ui::EventHandler:
- virtual void OnKeyEvent(ui::KeyEvent* event) override {
+ void OnKeyEvent(ui::KeyEvent* event) override {
CHECK_EQ(ui::EP_PRETARGET, event->phase());
if (event->handled())
return;
@@ -102,11 +102,11 @@ class PostEventDispatchHandler : public ui::EventHandler {
PostEventDispatchHandler()
: touch_dnd_enabled_(::switches::IsTouchDragDropEnabled()) {
}
- virtual ~PostEventDispatchHandler() {}
+ ~PostEventDispatchHandler() override {}
private:
// Overridden from ui::EventHandler:
- virtual void OnGestureEvent(ui::GestureEvent* event) override {
+ void OnGestureEvent(ui::GestureEvent* event) override {
DCHECK_EQ(ui::EP_POSTTARGET, event->phase());
if (event->handled())
return;
« no previous file with comments | « ui/views/widget/root_view.h ('k') | ui/views/widget/root_view_targeter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698