| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 RIGHT_CENTER = CENTER | VERTICAL | RIGHT, | 93 RIGHT_CENTER = CENTER | VERTICAL | RIGHT, |
| 94 NONE = 16, // No arrow. Positioned under the supplied rect. | 94 NONE = 16, // No arrow. Positioned under the supplied rect. |
| 95 FLOAT = 17, // No arrow. Centered over the supplied rect. | 95 FLOAT = 17, // No arrow. Centered over the supplied rect. |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 enum Shadow { | 98 enum Shadow { |
| 99 NO_SHADOW = 0, | 99 NO_SHADOW = 0, |
| 100 NO_SHADOW_OPAQUE_BORDER, | 100 NO_SHADOW_OPAQUE_BORDER, |
| 101 BIG_SHADOW, | 101 BIG_SHADOW, |
| 102 SMALL_SHADOW, | 102 SMALL_SHADOW, |
| 103 // NO_ASSETS borders don't draw a stroke or a shadow. This is used for |
| 104 // platforms that provide their own shadows. |
| 103 NO_ASSETS, | 105 NO_ASSETS, |
| 104 SHADOW_COUNT, | 106 SHADOW_COUNT, |
| 105 }; | 107 }; |
| 106 | 108 |
| 107 // The position of the bubble in relation to the anchor. | 109 // The position of the bubble in relation to the anchor. |
| 108 enum BubbleAlignment { | 110 enum BubbleAlignment { |
| 109 // The tip of the arrow points to the middle of the anchor. | 111 // The tip of the arrow points to the middle of the anchor. |
| 110 ALIGN_ARROW_TO_MID_ANCHOR, | 112 ALIGN_ARROW_TO_MID_ANCHOR, |
| 111 // The edge nearest to the arrow is lined up with the edge of the anchor. | 113 // The edge nearest to the arrow is lined up with the edge of the anchor. |
| 112 ALIGN_EDGE_TO_ANCHOR_EDGE, | 114 ALIGN_EDGE_TO_ANCHOR_EDGE, |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 | 270 |
| 269 private: | 271 private: |
| 270 BubbleBorder* border_; | 272 BubbleBorder* border_; |
| 271 | 273 |
| 272 DISALLOW_COPY_AND_ASSIGN(BubbleBackground); | 274 DISALLOW_COPY_AND_ASSIGN(BubbleBackground); |
| 273 }; | 275 }; |
| 274 | 276 |
| 275 } // namespace views | 277 } // namespace views |
| 276 | 278 |
| 277 #endif // UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ | 279 #endif // UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ |
| OLD | NEW |