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

Side by Side Diff: cc/compositor_frame_metadata.h

Issue 12077046: Plumb an overscroll callback form the compositor to the Android UI thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
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 #ifndef CC_COMPOSITOR_FRAME_METADATA_H_ 5 #ifndef CC_COMPOSITOR_FRAME_METADATA_H_
6 #define CC_COMPOSITOR_FRAME_METADATA_H_ 6 #define CC_COMPOSITOR_FRAME_METADATA_H_
7 7
8 #include "cc/cc_export.h" 8 #include "cc/cc_export.h"
9 #include "ui/gfx/size_f.h" 9 #include "ui/gfx/size_f.h"
10 #include "ui/gfx/vector2d_f.h" 10 #include "ui/gfx/vector2d_f.h"
(...skipping 15 matching lines...) Expand all
26 // determine if scrolling/scaling in a particular direction is possible. 26 // determine if scrolling/scaling in a particular direction is possible.
27 gfx::SizeF viewport_size; 27 gfx::SizeF viewport_size;
28 gfx::SizeF root_layer_size; 28 gfx::SizeF root_layer_size;
29 float min_page_scale_factor; 29 float min_page_scale_factor;
30 float max_page_scale_factor; 30 float max_page_scale_factor;
31 31
32 // Used to position the Android location top bar and page content, whose 32 // Used to position the Android location top bar and page content, whose
33 // precise position is computed by the renderer compositor. 33 // precise position is computed by the renderer compositor.
34 gfx::Vector2dF location_bar_offset; 34 gfx::Vector2dF location_bar_offset;
35 gfx::Vector2dF location_bar_content_translation; 35 gfx::Vector2dF location_bar_content_translation;
36
37 // The amount scroll delta that was unused.
aelias_OOO_until_Jul13 2013/01/30 18:02:48 Mention this is for Android overscroll.
38 gfx::Vector2dF unused_scroll_delta;
36 }; 39 };
37 40
38 } // namespace cc 41 } // namespace cc
39 42
40 #endif // CC_COMPOSITOR_FRAME_METADATA_H_ 43 #endif // CC_COMPOSITOR_FRAME_METADATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698