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

Unified Diff: ui/gfx/display.cc

Issue 789363004: WindowManagerApp should recognize gestures (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: build fix Created 5 years, 11 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: ui/gfx/display.cc
diff --git a/ui/gfx/display.cc b/ui/gfx/display.cc
index d9c837e02b36fb8250edde77141c320676bcaae2..914a09e69f356fd303172736582d4218b7a780a6 100644
--- a/ui/gfx/display.cc
+++ b/ui/gfx/display.cc
@@ -19,22 +19,6 @@
namespace gfx {
namespace {
-bool HasForceDeviceScaleFactorImpl() {
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kForceDeviceScaleFactor);
-}
-
-float GetForcedDeviceScaleFactorImpl() {
- double scale_in_double = 1.0;
- if (HasForceDeviceScaleFactorImpl()) {
- std::string value = base::CommandLine::ForCurrentProcess()->
- GetSwitchValueASCII(switches::kForceDeviceScaleFactor);
- if (!base::StringToDouble(value, &scale_in_double))
- LOG(ERROR) << "Failed to parse the default device scale factor:" << value;
- }
- return static_cast<float>(scale_in_double);
-}
-
int64 internal_display_id_ = -1;
} // namespace
@@ -43,16 +27,12 @@ const int64 Display::kInvalidDisplayID = -1;
// static
float Display::GetForcedDeviceScaleFactor() {
- static const float kForcedDeviceScaleFactor =
- GetForcedDeviceScaleFactorImpl();
- return kForcedDeviceScaleFactor;
+ return 1.0f;
}
//static
bool Display::HasForceDeviceScaleFactor() {
- static const bool kHasForceDeviceScaleFactor =
- HasForceDeviceScaleFactorImpl();
- return kHasForceDeviceScaleFactor;
+ return false;
}
Display::Display()
« ui/events/BUILD.gn ('K') | « ui/events/gesture_detection/gesture_config_helper_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698