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

Unified Diff: third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)
Patch Set: Capitalize the prefix. Created 4 years 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..b8b9d48e76f7f2826b642424de02ef7f22006912 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();
Łukasz Anforowicz 2016/12/21 21:07:36 AFAICT, upper_first_letter would still work here (
nasko 2017/01/04 18:18:51 Acknowledged.
return frame.editor().client().canPaste(&frame, defaultValue);
}

Powered by Google App Engine
This is Rietveld 408576698