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

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

Issue 352173002: Expose public interface for composited selection bounds (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Comments Created 6 years, 5 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
« no previous file with comments | « public/platform/WebLayerTreeView.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 WebSelectionBound_h
6 #define WebSelectionBound_h
7
8 #include "public/platform/WebRect.h"
9
10 namespace blink {
11
12 // An endpoint for an active selection region.
13 struct WebSelectionBound {
14 enum Type {
15 Caret,
16 SelectionLeft,
17 SelectionRight
18 };
19
20 explicit WebSelectionBound(Type type)
21 : type(type)
22 , layerId(0)
23 {
24 }
25
26 // The logical type of the endpoint. Note that this is dependent not only on
27 // the bound's relative location, but also the underlying text direction.
28 Type type;
29
30 // The id of the platform layer to which the bound should be anchored.
31 int layerId;
32
33 // The one-dimensional rect of the bound's edge in layer coordinates, not to
34 // be confused with the selection region.
35 WebRect edgeRectInLayer;
36 };
37
38 } // namespace blink
39
40 #endif
OLDNEW
« no previous file with comments | « public/platform/WebLayerTreeView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698