OLD | NEW |
---|---|
(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_ | |
OLD | NEW |