| 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
|
|
|