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

Unified Diff: ui/gfx/screen_android.cc

Issue 14876034: Enable Clang warnings for implementation files on all platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gypi style tweak Created 7 years, 7 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 | « content/app/android/child_process_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/screen_android.cc
diff --git a/ui/gfx/screen_android.cc b/ui/gfx/screen_android.cc
index 81d3bcf285dc63d49aa9cfef88c61662daebf1eb..99b5beee39ce071dea6f676b3bc3096104bd2c17 100644
--- a/ui/gfx/screen_android.cc
+++ b/ui/gfx/screen_android.cc
@@ -15,20 +15,16 @@ class ScreenAndroid : public Screen {
public:
ScreenAndroid() {}
- bool IsDIPEnabled() OVERRIDE {
- return true;
- }
+ virtual bool IsDIPEnabled() OVERRIDE { return true; }
- gfx::Point GetCursorScreenPoint() OVERRIDE {
- return gfx::Point();
- }
+ virtual gfx::Point GetCursorScreenPoint() OVERRIDE { return gfx::Point(); }
- gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE {
+ virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE {
NOTIMPLEMENTED();
return NULL;
}
- gfx::Display GetPrimaryDisplay() const OVERRIDE {
+ virtual gfx::Display GetPrimaryDisplay() const OVERRIDE {
gfx::DeviceDisplayInfo device_info;
const float device_scale_factor = device_info.GetDIPScale();
const gfx::Rect bounds_in_pixels =
@@ -43,17 +39,17 @@ class ScreenAndroid : public Screen {
return display;
}
- gfx::Display GetDisplayNearestWindow(gfx::NativeView view) const OVERRIDE {
+ virtual gfx::Display GetDisplayNearestWindow(
+ gfx::NativeView view) const OVERRIDE {
return GetPrimaryDisplay();
}
- gfx::Display GetDisplayNearestPoint(const gfx::Point& point) const OVERRIDE {
+ virtual gfx::Display GetDisplayNearestPoint(
+ const gfx::Point& point) const OVERRIDE {
return GetPrimaryDisplay();
}
- int GetNumDisplays() OVERRIDE {
- return 1;
- }
+ virtual int GetNumDisplays() OVERRIDE { return 1; }
virtual gfx::Display GetDisplayMatching(
const gfx::Rect& match_rect) const OVERRIDE {
« no previous file with comments | « content/app/android/child_process_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698