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

Side by Side Diff: cc/compositor_frame_metadata.h

Issue 11552009: Add support for calculating the position of the top controls in the cc layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Forgot to add the changes to cc_messages.h Created 8 years 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/point_f.h"
9 #include "ui/gfx/size_f.h" 10 #include "ui/gfx/size_f.h"
10 #include "ui/gfx/vector2d_f.h" 11 #include "ui/gfx/vector2d_f.h"
11 12
12 namespace cc { 13 namespace cc {
13 14
14 class CC_EXPORT CompositorFrameMetadata 15 class CC_EXPORT CompositorFrameMetadata
15 { 16 {
16 public: 17 public:
17 CompositorFrameMetadata(); 18 CompositorFrameMetadata();
18 ~CompositorFrameMetadata(); 19 ~CompositorFrameMetadata();
19 20
20 // Scroll offset and scale of the root layer. This can be used for tasks 21 // Scroll offset and scale of the root layer. This can be used for tasks
21 // like positioning windowed plugins. 22 // like positioning windowed plugins.
22 gfx::Vector2dF root_scroll_offset; 23 gfx::Vector2dF root_scroll_offset;
23 float page_scale_factor; 24 float page_scale_factor;
24 25
25 // These limits can be used together with the scroll/scale fields above to 26 // These limits can be used together with the scroll/scale fields above to
26 // determine if scrolling/scaling in a particular direction is possible. 27 // determine if scrolling/scaling in a particular direction is possible.
27 gfx::SizeF viewport_size; 28 gfx::SizeF viewport_size;
28 gfx::SizeF root_layer_size; 29 gfx::SizeF root_layer_size;
29 float min_page_scale_factor; 30 float min_page_scale_factor;
30 float max_page_scale_factor; 31 float max_page_scale_factor;
31 32
32 // Used to position the Android location top bar, whose precise 33 // Used to position the Android location top bar, whose precise
33 // position is computed by the renderer compositor. 34 // position is computed by the renderer compositor.
34 gfx::Vector2dF location_bar_offset; 35 gfx::PointF location_bar_offset;
aelias_OOO_until_Jul13 2012/12/19 08:31:18 We've decided on the convention that offsets shoul
Ted C 2012/12/19 21:34:17 Done.
36 gfx::PointF content_offset;
35 }; 37 };
36 38
37 } // namespace cc 39 } // namespace cc
38 40
39 #endif // CC_COMPOSITOR_FRAME_METADATA_H_ 41 #endif // CC_COMPOSITOR_FRAME_METADATA_H_
OLDNEW
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/layer_tree_host_impl.h » ('j') | cc/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698