OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ | 5 #ifndef UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ |
6 #define UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ | 6 #define UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "ui/views/background.h" | 10 #include "ui/views/background.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 RIGHT_BOTTOM = VERTICAL | BOTTOM | RIGHT, | 47 RIGHT_BOTTOM = VERTICAL | BOTTOM | RIGHT, |
48 TOP_CENTER = CENTER, | 48 TOP_CENTER = CENTER, |
49 BOTTOM_CENTER = CENTER | BOTTOM, | 49 BOTTOM_CENTER = CENTER | BOTTOM, |
50 LEFT_CENTER = CENTER | VERTICAL, | 50 LEFT_CENTER = CENTER | VERTICAL, |
51 RIGHT_CENTER = CENTER | VERTICAL | RIGHT, | 51 RIGHT_CENTER = CENTER | VERTICAL | RIGHT, |
52 NONE = 16, // No arrow. Positioned under the supplied rect. | 52 NONE = 16, // No arrow. Positioned under the supplied rect. |
53 FLOAT = 17, // No arrow. Centered over the supplied rect. | 53 FLOAT = 17, // No arrow. Centered over the supplied rect. |
54 }; | 54 }; |
55 | 55 |
56 enum Shadow { | 56 enum Shadow { |
57 SHADOW = 0, | 57 NO_SHADOW = 0, |
58 NO_SHADOW, | |
59 NO_SHADOW_OPAQUE_BORDER, | 58 NO_SHADOW_OPAQUE_BORDER, |
60 BIG_SHADOW, | 59 BIG_SHADOW, |
61 SMALL_SHADOW, | 60 SMALL_SHADOW, |
62 SHADOW_COUNT, | 61 SHADOW_COUNT, |
63 }; | 62 }; |
64 | 63 |
65 // The position of the bubble in relation to the anchor. | 64 // The position of the bubble in relation to the anchor. |
66 enum BubbleAlignment { | 65 enum BubbleAlignment { |
67 // The tip of the arrow points to the middle of the anchor. | 66 // The tip of the arrow points to the middle of the anchor. |
68 ALIGN_ARROW_TO_MID_ANCHOR, | 67 ALIGN_ARROW_TO_MID_ANCHOR, |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 | 198 |
200 private: | 199 private: |
201 BubbleBorder* border_; | 200 BubbleBorder* border_; |
202 | 201 |
203 DISALLOW_COPY_AND_ASSIGN(BubbleBackground); | 202 DISALLOW_COPY_AND_ASSIGN(BubbleBackground); |
204 }; | 203 }; |
205 | 204 |
206 } // namespace views | 205 } // namespace views |
207 | 206 |
208 #endif // UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ | 207 #endif // UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ |
OLD | NEW |