OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 { |
| 14 |
| 15 WebSelectionBounds(const WebSelectionBound& start, const WebSelectionBound&
end) |
| 16 : start(start) |
| 17 , end(end) |
| 18 , length(0) |
| 19 , isEditable(false) |
| 20 , isUserTriggered(false) |
| 21 { |
| 22 } |
| 23 |
| 24 WebSelectionBound start; |
| 25 WebSelectionBound end; |
| 26 |
| 27 // The length, in characters, of the selection. |
| 28 size_t length; |
| 29 |
| 30 // Whether the selection region is editable. |
| 31 bool isEditable; |
| 32 |
| 33 // Whether the selection was triggered by a user. |
| 34 bool isUserTriggered; |
| 35 }; |
| 36 |
| 37 } // namespace blink |
| 38 |
| 39 #endif |
OLD | NEW |