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

Side by Side Diff: ui/views/border.cc

Issue 2589163003: Add shadow/corner radius to notifications (toasts and in-center). (Closed)
Patch Set: sky reviews Created 3 years, 11 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
« no previous file with comments | « ui/message_center/views/toast_contents_view.h ('k') | ui/wm/core/shadow.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 #include "ui/views/border.h" 5 #include "ui/views/border.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 std::unique_ptr<Border> CreateSolidSidedBorder(int top, 239 std::unique_ptr<Border> CreateSolidSidedBorder(int top,
240 int left, 240 int left,
241 int bottom, 241 int bottom,
242 int right, 242 int right,
243 SkColor color) { 243 SkColor color) {
244 return base::MakeUnique<SolidSidedBorder>( 244 return base::MakeUnique<SolidSidedBorder>(
245 gfx::Insets(top, left, bottom, right), color); 245 gfx::Insets(top, left, bottom, right), color);
246 } 246 }
247 247
248 // static
249 std::unique_ptr<Border> CreatePaddedBorder(std::unique_ptr<Border> border, 248 std::unique_ptr<Border> CreatePaddedBorder(std::unique_ptr<Border> border,
250 const gfx::Insets& insets) { 249 const gfx::Insets& insets) {
251 return base::MakeUnique<ExtraInsetsBorder>(std::move(border), insets); 250 return base::MakeUnique<ExtraInsetsBorder>(std::move(border), insets);
252 } 251 }
253 252
254 // static
255 std::unique_ptr<Border> CreateBorderPainter(std::unique_ptr<Painter> painter, 253 std::unique_ptr<Border> CreateBorderPainter(std::unique_ptr<Painter> painter,
256 const gfx::Insets& insets) { 254 const gfx::Insets& insets) {
257 return base::WrapUnique(new BorderPainter(std::move(painter), insets)); 255 return base::WrapUnique(new BorderPainter(std::move(painter), insets));
258 } 256 }
259 257
260 } // namespace views 258 } // namespace views
OLDNEW
« no previous file with comments | « ui/message_center/views/toast_contents_view.h ('k') | ui/wm/core/shadow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698