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

Unified Diff: Source/core/testing/InternalSettings.cpp

Issue 870933002: Make it possible to set the display mode from the WebView API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Using enum now 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
« no previous file with comments | « Source/core/testing/InternalSettings.h ('k') | Source/web/WebViewImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/InternalSettings.cpp
diff --git a/Source/core/testing/InternalSettings.cpp b/Source/core/testing/InternalSettings.cpp
index 937f05b1325d59ac95befc65439265fbe36cedac..efacef8296b25082f8beaa493b72341ba837fb04 100644
--- a/Source/core/testing/InternalSettings.cpp
+++ b/Source/core/testing/InternalSettings.cpp
@@ -378,15 +378,15 @@ void InternalSettings::setDisplayModeOverride(const String& displayMode, Excepti
InternalSettingsGuardForSettings();
String token = displayMode.stripWhiteSpace();
- DisplayMode mode = DisplayModeBrowser;
+ WebDisplayMode mode = WebDisplayModeBrowser;
if (token == "browser")
- mode = DisplayModeBrowser;
+ mode = WebDisplayModeBrowser;
else if (token == "minimal-ui")
- mode = DisplayModeMinimalUi;
+ mode = WebDisplayModeMinimalUi;
else if (token == "standalone")
- mode = DisplayModeStandalone;
+ mode = WebDisplayModeStandalone;
else if (token == "fullscreen")
- mode = DisplayModeFullscreen;
+ mode = WebDisplayModeFullscreen;
else
exceptionState.throwDOMException(SyntaxError, "The display-mode token ('" + token + ")' is invalid.");
« no previous file with comments | « Source/core/testing/InternalSettings.h ('k') | Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698