Index: public/platform/WebSelectionBounds.h |
diff --git a/public/platform/WebSelectionBounds.h b/public/platform/WebSelectionBounds.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8ab016f3a85fb8a64d3ed9f48f883ae7cc547138 |
--- /dev/null |
+++ b/public/platform/WebSelectionBounds.h |
@@ -0,0 +1,39 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef WebSelectionBounds_h |
+#define WebSelectionBounds_h |
+ |
+#include "public/platform/WebSelectionBound.h" |
+ |
+namespace blink { |
+ |
+// The endpoints for an active selection region. |
+struct WebSelectionBounds { |
+ |
+ WebSelectionBounds(const WebSelectionBound& start, const WebSelectionBound& end) |
+ : start(start) |
+ , end(end) |
+ , length(0) |
+ , isEditable(false) |
+ , isUserTriggered(false) |
+ { |
+ } |
+ |
+ WebSelectionBound start; |
+ WebSelectionBound end; |
+ |
+ // The length, in characters, of the selection. |
+ size_t length; |
+ |
+ // Whether the selection region is editable. |
+ bool isEditable; |
+ |
+ // Whether the selection was triggered by a user. |
+ bool isUserTriggered; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif |