| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 WebSelectionBound_h | 5 #ifndef SKY_ENGINE_PUBLIC_PLATFORM_WEBSELECTIONBOUND_H_ |
| 6 #define WebSelectionBound_h | 6 #define SKY_ENGINE_PUBLIC_PLATFORM_WEBSELECTIONBOUND_H_ |
| 7 | 7 |
| 8 #include "sky/engine/public/platform/WebPoint.h" | 8 #include "sky/engine/public/platform/WebPoint.h" |
| 9 #include "sky/engine/public/platform/WebRect.h" | 9 #include "sky/engine/public/platform/WebRect.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 // An endpoint for an active selection region. | 13 // An endpoint for an active selection region. |
| 14 struct WebSelectionBound { | 14 struct WebSelectionBound { |
| 15 enum Type { | 15 enum Type { |
| 16 Caret, | 16 Caret, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 38 WebRect edgeRectInLayer; | 38 WebRect edgeRectInLayer; |
| 39 | 39 |
| 40 // The bottom and top coordinates of the edge (caret), in layer coordinates, | 40 // The bottom and top coordinates of the edge (caret), in layer coordinates, |
| 41 // that define the selection bound. | 41 // that define the selection bound. |
| 42 WebPoint edgeTopInLayer; | 42 WebPoint edgeTopInLayer; |
| 43 WebPoint edgeBottomInLayer; | 43 WebPoint edgeBottomInLayer; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace blink | 46 } // namespace blink |
| 47 | 47 |
| 48 #endif | 48 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBSELECTIONBOUND_H_ |
| OLD | NEW |