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

Side by Side Diff: ui/android/overscroll_glow.cc

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_base.h ('k') | ui/android/resources/resource_manager_impl.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/android/overscroll_glow.h" 5 #include "ui/android/overscroll_glow.h"
6 6
7 #include <stddef.h>
8
7 #include "cc/layers/layer.h" 9 #include "cc/layers/layer.h"
8 #include "ui/android/edge_effect_base.h" 10 #include "ui/android/edge_effect_base.h"
9 #include "ui/android/window_android_compositor.h" 11 #include "ui/android/window_android_compositor.h"
10 12
11 using std::max; 13 using std::max;
12 using std::min; 14 using std::min;
13 15
14 namespace ui { 16 namespace ui {
15 17
16 namespace { 18 namespace {
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 for (size_t i = 0; i < EDGE_COUNT; ++i) 272 for (size_t i = 0; i < EDGE_COUNT; ++i)
271 edge_effects_[i]->Release(current_time); 273 edge_effects_[i]->Release(current_time);
272 } 274 }
273 275
274 EdgeEffectBase* OverscrollGlow::GetOppositeEdge(int edge_index) { 276 EdgeEffectBase* OverscrollGlow::GetOppositeEdge(int edge_index) {
275 DCHECK(initialized_); 277 DCHECK(initialized_);
276 return edge_effects_[(edge_index + 2) % EDGE_COUNT].get(); 278 return edge_effects_[(edge_index + 2) % EDGE_COUNT].get();
277 } 279 }
278 280
279 } // namespace ui 281 } // namespace ui
OLDNEW
« no previous file with comments | « ui/android/edge_effect_base.h ('k') | ui/android/resources/resource_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698