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

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

Issue 823703003: Cleanup: Update the path to insets and point headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: point.h Created 5 years, 12 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/views/rect_based_targeting_utils.cc ('k') | ui/views/touchui/touch_editing_menu.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/shadow_border.h" 5 #include "ui/views/shadow_border.h"
6 6
7 #include "ui/gfx/canvas.h" 7 #include "ui/gfx/canvas.h"
8 #include "ui/gfx/insets.h" 8 #include "ui/gfx/geometry/insets.h"
9 #include "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
10 #include "ui/gfx/shadow_value.h" 10 #include "ui/gfx/shadow_value.h"
11 #include "ui/gfx/skia_util.h" 11 #include "ui/gfx/skia_util.h"
12 #include "ui/views/view.h" 12 #include "ui/views/view.h"
13 13
14 namespace views { 14 namespace views {
15 15
16 ShadowBorder::ShadowBorder(int blur, 16 ShadowBorder::ShadowBorder(int blur,
17 SkColor color, 17 SkColor color,
18 int vertical_offset, 18 int vertical_offset,
(...skipping 28 matching lines...) Expand all
47 blur_ / 2 - horizontal_offset_, 47 blur_ / 2 - horizontal_offset_,
48 blur_ / 2 + vertical_offset_, 48 blur_ / 2 + vertical_offset_,
49 blur_ / 2 + horizontal_offset_); 49 blur_ / 2 + horizontal_offset_);
50 } 50 }
51 51
52 gfx::Size ShadowBorder::GetMinimumSize() const { 52 gfx::Size ShadowBorder::GetMinimumSize() const {
53 return gfx::Size(blur_, blur_); 53 return gfx::Size(blur_, blur_);
54 } 54 }
55 55
56 } // namespace views 56 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/rect_based_targeting_utils.cc ('k') | ui/views/touchui/touch_editing_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698