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

Unified Diff: ash/display/screen_ash.cc

Issue 685543003: 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 | « ash/display/screen_ash.h ('k') | ash/display/screen_position_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/screen_ash.cc
diff --git a/ash/display/screen_ash.cc b/ash/display/screen_ash.cc
index 8c72e1dceb37d4ca820e5ec333a7c9bed5157dca..c1e559ffff0c1570036d8512bdb0602326aa1d37 100644
--- a/ash/display/screen_ash.cc
+++ b/ash/display/screen_ash.cc
@@ -71,45 +71,32 @@ class ScreenForShutdown : public gfx::Screen {
}
// gfx::Screen overrides:
- virtual gfx::Point GetCursorScreenPoint() override {
- return gfx::Point();
- }
- virtual gfx::NativeWindow GetWindowUnderCursor() override {
- return NULL;
- }
- virtual gfx::NativeWindow GetWindowAtScreenPoint(
- const gfx::Point& point) override {
+ gfx::Point GetCursorScreenPoint() override { return gfx::Point(); }
+ gfx::NativeWindow GetWindowUnderCursor() override { return NULL; }
+ gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override {
return NULL;
}
- virtual int GetNumDisplays() const override {
- return display_list_.size();
- }
- virtual std::vector<gfx::Display> GetAllDisplays() const override {
+ int GetNumDisplays() const override { return display_list_.size(); }
+ std::vector<gfx::Display> GetAllDisplays() const override {
return display_list_;
}
- virtual gfx::Display GetDisplayNearestWindow(gfx::NativeView view)
- const override {
+ gfx::Display GetDisplayNearestWindow(gfx::NativeView view) const override {
return primary_display_;
}
- virtual gfx::Display GetDisplayNearestPoint(
- const gfx::Point& point) const override {
+ gfx::Display GetDisplayNearestPoint(const gfx::Point& point) const override {
return FindDisplayNearestPoint(display_list_, point);
}
- virtual gfx::Display GetDisplayMatching(const gfx::Rect& match_rect)
- const override {
+ gfx::Display GetDisplayMatching(const gfx::Rect& match_rect) const override {
const gfx::Display* matching =
FindDisplayMatching(display_list_, match_rect);
// Fallback to the primary display if there is no matching display.
return matching ? *matching : GetPrimaryDisplay();
}
- virtual gfx::Display GetPrimaryDisplay() const override {
- return primary_display_;
- }
- virtual void AddObserver(gfx::DisplayObserver* observer) override {
+ gfx::Display GetPrimaryDisplay() const override { return primary_display_; }
+ void AddObserver(gfx::DisplayObserver* observer) override {
NOTREACHED() << "Observer should not be added during shutdown";
}
- virtual void RemoveObserver(gfx::DisplayObserver* observer) override {
- }
+ void RemoveObserver(gfx::DisplayObserver* observer) override {}
private:
const std::vector<gfx::Display> display_list_;
« no previous file with comments | « ash/display/screen_ash.h ('k') | ash/display/screen_position_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698