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

Side by Side Diff: cc/layer_tree_host_impl.h

Issue 12090014: Add a bit to not bubble scrolls to parent scrolling layers (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_TREE_HOST_IMPL_H_ 5 #ifndef CC_LAYER_TREE_HOST_IMPL_H_
6 #define CC_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 public OutputSurfaceClient, 69 public OutputSurfaceClient,
70 public TopControlsManagerClient { 70 public TopControlsManagerClient {
71 typedef std::vector<LayerImpl*> LayerList; 71 typedef std::vector<LayerImpl*> LayerList;
72 72
73 public: 73 public:
74 static scoped_ptr<LayerTreeHostImpl> create(const LayerTreeSettings&, LayerT reeHostImplClient*, Proxy*); 74 static scoped_ptr<LayerTreeHostImpl> create(const LayerTreeSettings&, LayerT reeHostImplClient*, Proxy*);
75 virtual ~LayerTreeHostImpl(); 75 virtual ~LayerTreeHostImpl();
76 76
77 // InputHandlerClient implementation 77 // InputHandlerClient implementation
78 virtual InputHandlerClient::ScrollStatus scrollBegin(gfx::Point, InputHandle rClient::ScrollInputType) OVERRIDE; 78 virtual InputHandlerClient::ScrollStatus scrollBegin(gfx::Point, InputHandle rClient::ScrollInputType) OVERRIDE;
79 virtual bool scrollBy(const gfx::Point&, const gfx::Vector2d&) OVERRIDE; 79 virtual bool scrollBy(const gfx::Point&, const gfx::Vector2d&, bool shouldBu bble) OVERRIDE;
80 virtual void scrollEnd() OVERRIDE; 80 virtual void scrollEnd() OVERRIDE;
81 virtual void pinchGestureBegin() OVERRIDE; 81 virtual void pinchGestureBegin() OVERRIDE;
82 virtual void pinchGestureUpdate(float, gfx::Point) OVERRIDE; 82 virtual void pinchGestureUpdate(float, gfx::Point) OVERRIDE;
83 virtual void pinchGestureEnd() OVERRIDE; 83 virtual void pinchGestureEnd() OVERRIDE;
84 virtual void startPageScaleAnimation(gfx::Vector2d targetOffset, bool anchor Point, float pageScale, base::TimeTicks startTime, base::TimeDelta duration) OVE RRIDE; 84 virtual void startPageScaleAnimation(gfx::Vector2d targetOffset, bool anchor Point, float pageScale, base::TimeTicks startTime, base::TimeDelta duration) OVE RRIDE;
85 virtual void scheduleAnimation() OVERRIDE; 85 virtual void scheduleAnimation() OVERRIDE;
86 virtual bool haveTouchEventHandlersAt(const gfx::Point&) OVERRIDE; 86 virtual bool haveTouchEventHandlersAt(const gfx::Point&) OVERRIDE;
87 87
88 // TopControlsManagerClient implementation. 88 // TopControlsManagerClient implementation.
89 virtual void setActiveTreeNeedsUpdateDrawProperties() OVERRIDE; 89 virtual void setActiveTreeNeedsUpdateDrawProperties() OVERRIDE;
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 scoped_ptr<LayerTreeImpl> m_activeTree; 319 scoped_ptr<LayerTreeImpl> m_activeTree;
320 320
321 // In impl-side painting mode, tree with possibly incomplete rasterized 321 // In impl-side painting mode, tree with possibly incomplete rasterized
322 // content. May be promoted to active by activatePendingTreeIfNeeded(). 322 // content. May be promoted to active by activatePendingTreeIfNeeded().
323 scoped_ptr<LayerTreeImpl> m_pendingTree; 323 scoped_ptr<LayerTreeImpl> m_pendingTree;
324 324
325 // In impl-side painting mode, inert tree with layers that can be recycled 325 // In impl-side painting mode, inert tree with layers that can be recycled
326 // by the next sync from the main thread. 326 // by the next sync from the main thread.
327 scoped_ptr<LayerTreeImpl> m_recycleTree; 327 scoped_ptr<LayerTreeImpl> m_recycleTree;
328 328
329 bool m_didScrollOnce;
329 bool m_scrollDeltaIsInViewportSpace; 330 bool m_scrollDeltaIsInViewportSpace;
330 LayerTreeSettings m_settings; 331 LayerTreeSettings m_settings;
331 LayerTreeDebugState m_debugState; 332 LayerTreeDebugState m_debugState;
332 gfx::Size m_layoutViewportSize; 333 gfx::Size m_layoutViewportSize;
333 gfx::Size m_deviceViewportSize; 334 gfx::Size m_deviceViewportSize;
334 float m_deviceScaleFactor; 335 float m_deviceScaleFactor;
335 bool m_visible; 336 bool m_visible;
336 ManagedMemoryPolicy m_managedMemoryPolicy; 337 ManagedMemoryPolicy m_managedMemoryPolicy;
337 338
338 bool m_pinchGestureActive; 339 bool m_pinchGestureActive;
(...skipping 24 matching lines...) Expand all
363 size_t m_lastSentMemoryUseBytes; 364 size_t m_lastSentMemoryUseBytes;
364 365
365 scoped_ptr<AnimationRegistrar> m_animationRegistrar; 366 scoped_ptr<AnimationRegistrar> m_animationRegistrar;
366 367
367 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 368 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
368 }; 369 };
369 370
370 } // namespace cc 371 } // namespace cc
371 372
372 #endif // CC_LAYER_TREE_HOST_IMPL_H_ 373 #endif // CC_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698