summaryrefslogtreecommitdiffstats
path: root/ash/wm/mru_window_tracker.h
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2014-10-27 18:26:19 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-28 01:26:59 +0000
commit28401c280ebf802265ef7f387a0ecfe784551e16 (patch)
tree0ddebc66a830257aa8432737410ffd4a3f5f2baf /ash/wm/mru_window_tracker.h
parent07d12f74065fb3d107bb2abbab6432d492b62c1d (diff)
downloadchromium_src-28401c280ebf802265ef7f387a0ecfe784551e16.zip
chromium_src-28401c280ebf802265ef7f387a0ecfe784551e16.tar.gz
chromium_src-28401c280ebf802265ef7f387a0ecfe784551e16.tar.bz2
Standardize usage of virtual/override/final specifiers.
The Google C++ style guide states: Explicitly annotate overrides of virtual functions or virtual destructors with an override or (less frequently) final specifier. Older (pre-C++11) code will use the virtual keyword as an inferior alternative annotation. For clarity, use exactly one of override, final, or virtual when declaring an override. To better conform to these guidelines, the following constructs have been rewritten: - if a base class has a virtual destructor, then: virtual ~Foo(); -> ~Foo() override; - virtual void Foo() override; -> void Foo() override; - virtual void Foo() override final; -> void Foo() final; This patch was automatically generated. The clang plugin can generate fixit hints, which are suggested edits when it is 100% sure it knows how to fix a problem. The hints from the clang plugin were applied to the source tree using the tool in https://codereview.chromium.org/598073004. BUG=417463 R=flackr@chromium.org Review URL: https://codereview.chromium.org/645513008 Cr-Commit-Position: refs/heads/master@{#301541}
Diffstat (limited to 'ash/wm/mru_window_tracker.h')
-rw-r--r--ash/wm/mru_window_tracker.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ash/wm/mru_window_tracker.h b/ash/wm/mru_window_tracker.h
index ff70166..6f6dd5f 100644
--- a/ash/wm/mru_window_tracker.h
+++ b/ash/wm/mru_window_tracker.h
@@ -34,7 +34,7 @@ class ASH_EXPORT MruWindowTracker
explicit MruWindowTracker(
aura::client::ActivationClient* activation_client);
- virtual ~MruWindowTracker();
+ ~MruWindowTracker() override;
// Returns the set of windows which can be cycled through. This method creates
// the vector based on the current set of windows across all valid root
@@ -61,11 +61,11 @@ class ASH_EXPORT MruWindowTracker
void SetActiveWindow(aura::Window* active_window);
// Overridden from aura::client::ActivationChangeObserver:
- virtual void OnWindowActivated(aura::Window* gained_active,
- aura::Window* lost_active) override;
+ void OnWindowActivated(aura::Window* gained_active,
+ aura::Window* lost_active) override;
// Overridden from WindowObserver:
- virtual void OnWindowDestroyed(aura::Window* window) override;
+ void OnWindowDestroyed(aura::Window* window) override;
// List of windows that have been activated in containers that we cycle
// through, sorted by most recently used.