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

Unified Diff: third_party/WebKit/Source/core/editing/commands/EditorCommand.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/editing/commands/EditorCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
index e564b7c0d884b6ea903d2627b38ece6a15b724e2..a5f0d1c7c6b251ef38aedb98602ddb7b8eae1e57 100644
--- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
@@ -519,8 +519,9 @@ static bool canWriteClipboard(LocalFrame& frame, EditCommandSource source) {
if (source == EditCommandSource::kMenuOrKeyBinding)
return true;
Settings* settings = frame.settings();
- bool defaultValue = (settings && settings->javaScriptCanAccessClipboard()) ||
- UserGestureIndicator::utilizeUserGesture();
+ bool defaultValue =
+ (settings && settings->getJavaScriptCanAccessClipboard()) ||
+ UserGestureIndicator::utilizeUserGesture();
return frame.editor().client().canCopyCut(&frame, defaultValue);
}
@@ -1490,8 +1491,8 @@ static bool canReadClipboard(LocalFrame& frame, EditCommandSource source) {
if (source == EditCommandSource::kMenuOrKeyBinding)
return true;
Settings* settings = frame.settings();
- bool defaultValue = settings && settings->javaScriptCanAccessClipboard() &&
- settings->DOMPasteAllowed();
+ bool defaultValue = settings && settings->getJavaScriptCanAccessClipboard() &&
+ settings->getDOMPasteAllowed();
return frame.editor().client().canPaste(&frame, defaultValue);
}

Powered by Google App Engine
This is Rietveld 408576698