| 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 NONE = 16, // No arrow. Positioned under the supplied rect. | 93 NONE = 16, // No arrow. Positioned under the supplied rect. |
| 94 FLOAT = 17, // No arrow. Centered over the supplied rect. | 94 FLOAT = 17, // No arrow. Centered over the supplied rect. |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 enum Shadow { | 97 enum Shadow { |
| 98 NO_SHADOW = 0, | 98 NO_SHADOW = 0, |
| 99 NO_SHADOW_OPAQUE_BORDER, | 99 NO_SHADOW_OPAQUE_BORDER, |
| 100 BIG_SHADOW, | 100 BIG_SHADOW, |
| 101 SMALL_SHADOW, | 101 SMALL_SHADOW, |
| 102 NO_ASSETS, | 102 NO_ASSETS, |
| 103 NO_ASSETS_TOOLTIP, // Matches the look of a tooltip. |
| 103 SHADOW_COUNT, | 104 SHADOW_COUNT, |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 // The position of the bubble in relation to the anchor. | 107 // The position of the bubble in relation to the anchor. |
| 107 enum BubbleAlignment { | 108 enum BubbleAlignment { |
| 108 // The tip of the arrow points to the middle of the anchor. | 109 // The tip of the arrow points to the middle of the anchor. |
| 109 ALIGN_ARROW_TO_MID_ANCHOR, | 110 ALIGN_ARROW_TO_MID_ANCHOR, |
| 110 // The edge nearest to the arrow is lined up with the edge of the anchor. | 111 // The edge nearest to the arrow is lined up with the edge of the anchor. |
| 111 ALIGN_EDGE_TO_ANCHOR_EDGE, | 112 ALIGN_EDGE_TO_ANCHOR_EDGE, |
| 112 }; | 113 }; |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 | 251 |
| 251 private: | 252 private: |
| 252 BubbleBorder* border_; | 253 BubbleBorder* border_; |
| 253 | 254 |
| 254 DISALLOW_COPY_AND_ASSIGN(BubbleBackground); | 255 DISALLOW_COPY_AND_ASSIGN(BubbleBackground); |
| 255 }; | 256 }; |
| 256 | 257 |
| 257 } // namespace views | 258 } // namespace views |
| 258 | 259 |
| 259 #endif // UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ | 260 #endif // UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ |
| OLD | NEW |