OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef GranularityStrategy_h | 5 #ifndef GranularityStrategy_h |
6 #define GranularityStrategy_h | 6 #define GranularityStrategy_h |
7 | 7 |
8 #include "core/editing/SelectionStrategy.h" | 8 #include "core/editing/SelectionStrategy.h" |
9 #include "core/editing/SelectionTemplate.h" | 9 #include "core/editing/SelectionTemplate.h" |
10 #include "wtf/Allocator.h" | 10 #include "platform/wtf/Allocator.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class GranularityStrategy { | 14 class GranularityStrategy { |
15 USING_FAST_MALLOC(GranularityStrategy); | 15 USING_FAST_MALLOC(GranularityStrategy); |
16 | 16 |
17 public: | 17 public: |
18 virtual ~GranularityStrategy(); | 18 virtual ~GranularityStrategy(); |
19 virtual SelectionStrategy GetType() const = 0; | 19 virtual SelectionStrategy GetType() const = 0; |
20 virtual void Clear() = 0; | 20 virtual void Clear() = 0; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 // This defines location of the offset-adjusted extent point (from the | 115 // This defines location of the offset-adjusted extent point (from the |
116 // latest updateExtent call) relative to the location of extent's | 116 // latest updateExtent call) relative to the location of extent's |
117 // VisiblePosition. It is used to detect sub-position extent movement. | 117 // VisiblePosition. It is used to detect sub-position extent movement. |
118 IntSize diff_extent_point_from_extent_position_; | 118 IntSize diff_extent_point_from_extent_position_; |
119 }; | 119 }; |
120 | 120 |
121 } // namespace blink | 121 } // namespace blink |
122 | 122 |
123 #endif // GranularityStrategy_h | 123 #endif // GranularityStrategy_h |
OLD | NEW |