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

Side by Side Diff: ui/views/bubble/bubble_border.h

Issue 2555373004: Apply new MD shadows to CrOS tray bubbles. (Closed)
Patch Set: fix test for mac Created 4 years 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
« no previous file with comments | « ash/common/system/tray/tray_background_view.cc ('k') | ui/views/bubble/bubble_border.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ash/common/system/tray/tray_background_view.cc ('k') | ui/views/bubble/bubble_border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698