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

Unified Diff: third_party/WebKit/Source/core/frame/Screen.cpp

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)
Patch Set: Only get prefix and no capitalization. Created 3 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: third_party/WebKit/Source/core/frame/Screen.cpp
diff --git a/third_party/WebKit/Source/core/frame/Screen.cpp b/third_party/WebKit/Source/core/frame/Screen.cpp
index 5e750f4a8fde09a7ed878d57307ac514aea96f97..c945d6ce98681e74edc6dc8b6721acebc0e3fd6a 100644
--- a/third_party/WebKit/Source/core/frame/Screen.cpp
+++ b/third_party/WebKit/Source/core/frame/Screen.cpp
@@ -46,7 +46,7 @@ int Screen::height() const {
FrameHost* host = frame()->host();
if (!host)
return 0;
- if (host->settings().reportScreenSizeInPhysicalPixelsQuirk()) {
+ if (host->settings().getReportScreenSizeInPhysicalPixelsQuirk()) {
WebScreenInfo screenInfo = host->chromeClient().screenInfo();
return lroundf(screenInfo.rect.height * screenInfo.deviceScaleFactor);
}
@@ -59,7 +59,7 @@ int Screen::width() const {
FrameHost* host = frame()->host();
if (!host)
return 0;
- if (host->settings().reportScreenSizeInPhysicalPixelsQuirk()) {
+ if (host->settings().getReportScreenSizeInPhysicalPixelsQuirk()) {
WebScreenInfo screenInfo = host->chromeClient().screenInfo();
return lroundf(screenInfo.rect.width * screenInfo.deviceScaleFactor);
}
@@ -86,7 +86,7 @@ int Screen::availLeft() const {
FrameHost* host = frame()->host();
if (!host)
return 0;
- if (host->settings().reportScreenSizeInPhysicalPixelsQuirk()) {
+ if (host->settings().getReportScreenSizeInPhysicalPixelsQuirk()) {
WebScreenInfo screenInfo = host->chromeClient().screenInfo();
return lroundf(screenInfo.availableRect.x * screenInfo.deviceScaleFactor);
}
@@ -99,7 +99,7 @@ int Screen::availTop() const {
FrameHost* host = frame()->host();
if (!host)
return 0;
- if (host->settings().reportScreenSizeInPhysicalPixelsQuirk()) {
+ if (host->settings().getReportScreenSizeInPhysicalPixelsQuirk()) {
WebScreenInfo screenInfo = host->chromeClient().screenInfo();
return lroundf(screenInfo.availableRect.y * screenInfo.deviceScaleFactor);
}
@@ -112,7 +112,7 @@ int Screen::availHeight() const {
FrameHost* host = frame()->host();
if (!host)
return 0;
- if (host->settings().reportScreenSizeInPhysicalPixelsQuirk()) {
+ if (host->settings().getReportScreenSizeInPhysicalPixelsQuirk()) {
WebScreenInfo screenInfo = host->chromeClient().screenInfo();
return lroundf(screenInfo.availableRect.height *
screenInfo.deviceScaleFactor);
@@ -126,7 +126,7 @@ int Screen::availWidth() const {
FrameHost* host = frame()->host();
if (!host)
return 0;
- if (host->settings().reportScreenSizeInPhysicalPixelsQuirk()) {
+ if (host->settings().getReportScreenSizeInPhysicalPixelsQuirk()) {
WebScreenInfo screenInfo = host->chromeClient().screenInfo();
return lroundf(screenInfo.availableRect.width *
screenInfo.deviceScaleFactor);
« no previous file with comments | « third_party/WebKit/Source/core/frame/Navigator.cpp ('k') | third_party/WebKit/Source/core/frame/VisualViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698