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

Unified Diff: Source/core/editing/SelectionStrategy.h

Issue 988023005: Implementing directional selection strategy in Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Missing file. Created 5 years, 8 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: Source/core/editing/SelectionStrategy.h
diff --git a/public/platform/WebHTTPHeaderVisitor.h b/Source/core/editing/SelectionStrategy.h
similarity index 81%
copy from public/platform/WebHTTPHeaderVisitor.h
copy to Source/core/editing/SelectionStrategy.h
index ff60384e14f03ec7a1a80e4388ccd14d46fd5c4d..49d63165bf8b79cd01965a4a837e14e09fdaad32 100644
--- a/public/platform/WebHTTPHeaderVisitor.h
+++ b/Source/core/editing/SelectionStrategy.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright 2014, Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -28,21 +28,19 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebHTTPHeaderVisitor_h
-#define WebHTTPHeaderVisitor_h
+#ifndef SelectionStrategy_h
+#define SelectionStrategy_h
namespace blink {
-class WebString;
-
-class WebHTTPHeaderVisitor {
-public:
- virtual void visitHeader(const WebString& name, const WebString& value) = 0;
-
-protected:
- ~WebHTTPHeaderVisitor() { }
+enum SelectionStrategy {
+ // Always using CharacterGranularity
+ StrategyCharacter,
+ // Switches between WordGranularity and CharacterGranularity
+ // Depending on whether the selection or growing or shrinking
+ StrategyDirection,
};
-} // namespace blink
+}
#endif

Powered by Google App Engine
This is Rietveld 408576698