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

Side by Side Diff: ui/gfx/shadow_value.cc

Issue 1543183002: Switch to standard integer types in ui/gfx/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/gfx/sequential_id_generator_unittest.cc ('k') | ui/gfx/shadow_value_unittest.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/gfx/shadow_value.h" 5 #include "ui/gfx/shadow_value.h"
6 6
7 #include <stddef.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 10
9 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
10 #include "ui/gfx/geometry/insets.h" 12 #include "ui/gfx/geometry/insets.h"
11 #include "ui/gfx/geometry/vector2d_conversions.h" 13 #include "ui/gfx/geometry/vector2d_conversions.h"
12 14
13 namespace gfx { 15 namespace gfx {
14 16
15 ShadowValue::ShadowValue() 17 ShadowValue::ShadowValue()
16 : blur_(0), 18 : blur_(0),
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 left = std::max(left, blur - shadow.x()); 61 left = std::max(left, blur - shadow.x());
60 top = std::max(top, blur - shadow.y()); 62 top = std::max(top, blur - shadow.y());
61 right = std::max(right, blur + shadow.x()); 63 right = std::max(right, blur + shadow.x());
62 bottom = std::max(bottom, blur + shadow.y()); 64 bottom = std::max(bottom, blur + shadow.y());
63 } 65 }
64 66
65 return Insets(-top, -left, -bottom, -right); 67 return Insets(-top, -left, -bottom, -right);
66 } 68 }
67 69
68 } // namespace gfx 70 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/sequential_id_generator_unittest.cc ('k') | ui/gfx/shadow_value_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698