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

Unified Diff: Source/devtools/front_end/ui/TextUtils.js

Issue 357483007: DevTools: [CodeMirror] add support for camel case movements. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: use nice naming for shift-movement Created 6 years, 6 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/devtools/front_end/source_frame/CodeMirrorTextEditor.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/TextUtils.js
diff --git a/Source/devtools/front_end/ui/TextUtils.js b/Source/devtools/front_end/ui/TextUtils.js
index 872733203130e3eacec743035fcd3f210928a5d7..18e878594fcf53c7ac60536e4f7b87db81dc2e79 100644
--- a/Source/devtools/front_end/ui/TextUtils.js
+++ b/Source/devtools/front_end/ui/TextUtils.js
@@ -153,6 +153,24 @@ WebInspector.TextUtils = {
}
}
return -1;
+ },
+
+ /**
+ * @param {string} text
+ * @return {boolean}
+ */
+ isUpperCase: function(text)
+ {
+ return text === text.toUpperCase();
+ },
+
+ /**
+ * @param {string} text
+ * @return {boolean}
+ */
+ isLowerCase: function(text)
+ {
+ return text === text.toLowerCase();
}
}
« no previous file with comments | « Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698