Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Side by Side Diff: public/platform/WebSelectionBounds.h

Issue 929213004: Plumb selection bounds as a single unit (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« Source/web/ChromeClientImpl.cpp ('K') | « public/platform/WebLayerTreeView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698