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

Side by Side Diff: ui/android/edge_effect_base.h

Issue 1550483002: Switch to standard integer types in ui/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-ui-events
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/android/edge_effect.cc ('k') | ui/android/overscroll_glow.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_ANDROID_EDGE_EFFECT_BASE_H_ 5 #ifndef UI_ANDROID_EDGE_EFFECT_BASE_H_
6 #define UI_ANDROID_EDGE_EFFECT_BASE_H_ 6 #define UI_ANDROID_EDGE_EFFECT_BASE_H_
7 7
8 #include "base/basictypes.h"
9 #include "base/time/time.h" 8 #include "base/time/time.h"
10 #include "ui/gfx/geometry/size_f.h" 9 #include "ui/gfx/geometry/size_f.h"
11 #include "ui/gfx/transform.h" 10 #include "ui/gfx/transform.h"
12 11
13 namespace cc { 12 namespace cc {
14 class Layer; 13 class Layer;
15 } 14 }
16 15
17 namespace ui { 16 namespace ui {
18 17
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // Computes the maximum effect size relative to the screen |edge|. For 57 // Computes the maximum effect size relative to the screen |edge|. For
59 // top/bottom edges, thsi is simply |viewport_size|, while for left/right 58 // top/bottom edges, thsi is simply |viewport_size|, while for left/right
60 // edges this is |viewport_size| with coordinates swapped. 59 // edges this is |viewport_size| with coordinates swapped.
61 static gfx::SizeF ComputeOrientedSize(Edge edge, 60 static gfx::SizeF ComputeOrientedSize(Edge edge,
62 const gfx::SizeF& viewport_size); 61 const gfx::SizeF& viewport_size);
63 }; 62 };
64 63
65 } // namespace ui 64 } // namespace ui
66 65
67 #endif // UI_ANDROID_EDGE_EFFECT_BASE_H_ 66 #endif // UI_ANDROID_EDGE_EFFECT_BASE_H_
OLDNEW
« no previous file with comments | « ui/android/edge_effect.cc ('k') | ui/android/overscroll_glow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698