Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WebSelectionBounds_h | |
| 6 #define WebSelectionBounds_h | |
| 7 | |
| 8 #include "public/platform/WebSelectionBound.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 // The endpoints for an active selection region. | |
| 13 struct WebSelectionBounds { | |
|
aelias_OOO_until_Jul13
2015/03/12 19:29:16
Just WebSelection might be a better name?
jdduke (slow)
2015/03/16 18:15:41
Sure. I hesitated to name it that to prevent confu
jdduke (slow)
2015/03/16 18:19:20
Maybe WebCompositedSelection?
| |
| 14 | |
| 15 WebSelectionBounds(const WebSelectionBound& start, const WebSelectionBound& end) | |
| 16 : start(start) | |
| 17 , end(end) | |
| 18 , isEditable(false) | |
| 19 , isEditableRegionEmpty(false) | |
| 20 { | |
| 21 } | |
| 22 | |
| 23 // If the (empty) selection is an insertion point, |start| and |end| will be | |
| 24 // identical with type |Caret|. | |
| 25 // If the (non-empty) selection has mixed RTL/LTR text, |start| and |end| | |
| 26 // may share the same type, |SelectionLeft| or |SelectionRight|. | |
| 27 WebSelectionBound start; | |
| 28 WebSelectionBound end; | |
| 29 | |
| 30 // Whether the selection region is editable. | |
| 31 bool isEditable; | |
| 32 | |
| 33 // If the selection region is editable, whether it is empty. | |
|
yosin_UTC9
2015/03/13 02:06:37
Q: Do you mean "region" as "range"?
It is confusin
jdduke (slow)
2015/03/16 18:15:41
Right, this isn't ideal. We should have sent the b
| |
| 34 bool isEditableRegionEmpty; | |
| 35 }; | |
| 36 | |
| 37 } // namespace blink | |
| 38 | |
| 39 #endif | |
| OLD | NEW |