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

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

Issue 2174643002: [ash-md] Updates ash shelf tooltips to MD (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months 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
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 #include "ui/views/bubble/bubble_border.h" 5 #include "ui/views/bubble/bubble_border.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "third_party/skia/include/core/SkPaint.h" 10 #include "third_party/skia/include/core/SkPaint.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 break; 118 break;
119 case BubbleBorder::BIG_SHADOW: 119 case BubbleBorder::BIG_SHADOW:
120 set = new BorderImages(kBigShadowImages, kBigShadowArrows, 23, 9, 2); 120 set = new BorderImages(kBigShadowImages, kBigShadowArrows, 23, 9, 2);
121 break; 121 break;
122 case BubbleBorder::SMALL_SHADOW: 122 case BubbleBorder::SMALL_SHADOW:
123 set = new BorderImages(kSmallShadowImages, kSmallShadowArrows, 5, 6, 2); 123 set = new BorderImages(kSmallShadowImages, kSmallShadowArrows, 5, 6, 2);
124 break; 124 break;
125 case BubbleBorder::NO_ASSETS: 125 case BubbleBorder::NO_ASSETS:
126 set = new BorderImages(nullptr, nullptr, 17, 8, 2); 126 set = new BorderImages(nullptr, nullptr, 17, 8, 2);
127 break; 127 break;
128 case BubbleBorder::NO_ASSETS_TOOLTIP:
129 set = new BorderImages(nullptr, nullptr, 5, 6, 2);
130 break;
128 case BubbleBorder::SHADOW_COUNT: 131 case BubbleBorder::SHADOW_COUNT:
129 NOTREACHED(); 132 NOTREACHED();
130 break; 133 break;
131 } 134 }
132 135
133 return set; 136 return set;
134 } 137 }
135 138
136 } // namespace 139 } // namespace
137 140
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 paint.setStyle(SkPaint::kFill_Style); 407 paint.setStyle(SkPaint::kFill_Style);
405 paint.setColor(border_->background_color()); 408 paint.setColor(border_->background_color());
406 SkPath path; 409 SkPath path;
407 gfx::Rect bounds(view->GetLocalBounds()); 410 gfx::Rect bounds(view->GetLocalBounds());
408 bounds.Inset(border_->GetInsets()); 411 bounds.Inset(border_->GetInsets());
409 412
410 canvas->DrawRoundRect(bounds, border_->GetBorderCornerRadius(), paint); 413 canvas->DrawRoundRect(bounds, border_->GetBorderCornerRadius(), paint);
411 } 414 }
412 415
413 } // namespace views 416 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698