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

Side by Side Diff: cc/layer_impl.h

Issue 11975007: Implement one-page-at-a-time mousewheel scrolling in the impl thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_LAYER_IMPL_H_ 5 #ifndef CC_LAYER_IMPL_H_
6 #define CC_LAYER_IMPL_H_ 6 #define CC_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 virtual void calculateContentsScale( 203 virtual void calculateContentsScale(
204 float idealContentsScale, 204 float idealContentsScale,
205 float* contentsScaleX, 205 float* contentsScaleX,
206 float* contentsScaleY, 206 float* contentsScaleY,
207 gfx::Size* contentBounds); 207 gfx::Size* contentBounds);
208 208
209 gfx::Vector2d scrollOffset() const { return m_scrollOffset; } 209 gfx::Vector2d scrollOffset() const { return m_scrollOffset; }
210 void setScrollOffset(gfx::Vector2d); 210 void setScrollOffset(gfx::Vector2d);
211 211
212 gfx::Vector2d maxScrollOffset() const {return m_maxScrollOffset; } 212 gfx::Vector2d maxScrollOffset() const { return m_maxScrollOffset; }
213 void setMaxScrollOffset(gfx::Vector2d); 213 void setMaxScrollOffset(gfx::Vector2d);
214 214
215 gfx::Size visibleScrollArea() const { return m_visibleScrollArea; }
216 void setVisibleScrollArea(gfx::Size);
217
215 const gfx::Vector2dF& scrollDelta() const { return m_scrollDelta; } 218 const gfx::Vector2dF& scrollDelta() const { return m_scrollDelta; }
216 void setScrollDelta(const gfx::Vector2dF&); 219 void setScrollDelta(const gfx::Vector2dF&);
217 220
218 const gfx::Transform& implTransform() const { return m_implTransform; } 221 const gfx::Transform& implTransform() const { return m_implTransform; }
219 void setImplTransform(const gfx::Transform& transform); 222 void setImplTransform(const gfx::Transform& transform);
220 223
221 const gfx::Vector2d& sentScrollDelta() const { return m_sentScrollDelta; } 224 const gfx::Vector2d& sentScrollDelta() const { return m_sentScrollDelta; }
222 void setSentScrollDelta(const gfx::Vector2d& sentScrollDelta); 225 void setSentScrollDelta(const gfx::Vector2d& sentScrollDelta);
223 226
224 // Returns the delta of the scroll that was outside of the bounds of the ini tial scroll 227 // Returns the delta of the scroll that was outside of the bounds of the ini tial scroll
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 bool m_forceRenderSurface; 378 bool m_forceRenderSurface;
376 379
377 // Set for the layer that other layers are fixed to. 380 // Set for the layer that other layers are fixed to.
378 bool m_isContainerForFixedPositionLayers; 381 bool m_isContainerForFixedPositionLayers;
379 // This is true if the layer should be fixed to the closest ancestor contain er. 382 // This is true if the layer should be fixed to the closest ancestor contain er.
380 bool m_fixedToContainerLayer; 383 bool m_fixedToContainerLayer;
381 384
382 gfx::Vector2dF m_scrollDelta; 385 gfx::Vector2dF m_scrollDelta;
383 gfx::Vector2d m_sentScrollDelta; 386 gfx::Vector2d m_sentScrollDelta;
384 gfx::Vector2d m_maxScrollOffset; 387 gfx::Vector2d m_maxScrollOffset;
388 gfx::Size m_visibleScrollArea;
385 gfx::Transform m_implTransform; 389 gfx::Transform m_implTransform;
386 390
387 // The global depth value of the center of the layer. This value is used 391 // The global depth value of the center of the layer. This value is used
388 // to sort layers from back to front. 392 // to sort layers from back to front.
389 float m_drawDepth; 393 float m_drawDepth;
390 394
391 // Debug layer name. 395 // Debug layer name.
392 std::string m_debugName; 396 std::string m_debugName;
393 397
394 WebKit::WebFilterOperations m_filters; 398 WebKit::WebFilterOperations m_filters;
(...skipping 18 matching lines...) Expand all
413 // Group of properties that need to be computed based on the layer tree 417 // Group of properties that need to be computed based on the layer tree
414 // hierarchy before layers can be drawn. 418 // hierarchy before layers can be drawn.
415 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; 419 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties;
416 420
417 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 421 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
418 }; 422 };
419 423
420 } 424 }
421 425
422 #endif // CC_LAYER_IMPL_H_ 426 #endif // CC_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layer.cc ('k') | cc/layer_impl.cc » ('j') | cc/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698