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

Side by Side Diff: cc/output/selection_handle.h

Issue 300323005: Route selection bounds updates through the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Proper visibility Created 6 years, 6 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 (c) 2012 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 CC_OUTPUT_SELECTION_HANDLE_H_
6 #define CC_OUTPUT_SELECTION_HANDLE_H_
7
8 #include "cc/base/cc_export.h"
9 #include "ui/gfx/geometry/rect_f.h"
10
11 namespace cc {
12
13 struct CC_EXPORT SelectionHandle {
14 enum Type { LEFT, RIGHT, CENTER, NONE, IGNORED, TYPE_LAST = IGNORED };
15
16 SelectionHandle();
17 ~SelectionHandle();
18
19 Type type;
20 gfx::RectF bounds;
21 bool visible;
aelias_OOO_until_Jul13 2014/06/03 05:30:27 This boolean feels a bit out of place here, since
jdduke (slow) 2014/06/03 15:12:50 I considered that. The trouble is the way we hand
22 };
23
24 inline bool operator==(const SelectionHandle& lhs, const SelectionHandle& rhs) {
25 return lhs.type == rhs.type && lhs.visible == rhs.visible &&
26 lhs.bounds == rhs.bounds;
27 }
28
29 inline bool operator!=(const SelectionHandle& lhs, const SelectionHandle& rhs) {
30 return !(lhs == rhs);
31 }
32
33 } // namespace cc
34
35 #endif // CC_OUTPUT_SELECTION_HANDLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698