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

Side by Side Diff: cc/thread_proxy.h

Issue 11967015: Hide location bar on WebKit programmatic scroll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't plumb through WebLayerTreeView 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_THREAD_PROXY_H_ 5 #ifndef CC_THREAD_PROXY_H_
6 #define CC_THREAD_PROXY_H_ 6 #define CC_THREAD_PROXY_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 15 matching lines...) Expand all
26 26
27 class ThreadProxy : public Proxy, LayerTreeHostImplClient, SchedulerClient, Reso urceUpdateControllerClient { 27 class ThreadProxy : public Proxy, LayerTreeHostImplClient, SchedulerClient, Reso urceUpdateControllerClient {
28 public: 28 public:
29 static scoped_ptr<Proxy> create(LayerTreeHost*, scoped_ptr<Thread> implThrea d); 29 static scoped_ptr<Proxy> create(LayerTreeHost*, scoped_ptr<Thread> implThrea d);
30 30
31 virtual ~ThreadProxy(); 31 virtual ~ThreadProxy();
32 32
33 // Proxy implementation 33 // Proxy implementation
34 virtual bool compositeAndReadback(void *pixels, const gfx::Rect&) OVERRIDE; 34 virtual bool compositeAndReadback(void *pixels, const gfx::Rect&) OVERRIDE;
35 virtual void startPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnc hor, float scale, base::TimeDelta duration) OVERRIDE; 35 virtual void startPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnc hor, float scale, base::TimeDelta duration) OVERRIDE;
36 virtual void programmaticScroll(gfx::Vector2d targetOffset) OVERRIDE;
36 virtual void finishAllRendering() OVERRIDE; 37 virtual void finishAllRendering() OVERRIDE;
37 virtual bool isStarted() const OVERRIDE; 38 virtual bool isStarted() const OVERRIDE;
38 virtual bool initializeOutputSurface() OVERRIDE; 39 virtual bool initializeOutputSurface() OVERRIDE;
39 virtual void setSurfaceReady() OVERRIDE; 40 virtual void setSurfaceReady() OVERRIDE;
40 virtual void setVisible(bool) OVERRIDE; 41 virtual void setVisible(bool) OVERRIDE;
41 virtual bool initializeRenderer() OVERRIDE; 42 virtual bool initializeRenderer() OVERRIDE;
42 virtual bool recreateOutputSurface() OVERRIDE; 43 virtual bool recreateOutputSurface() OVERRIDE;
43 virtual void renderingStats(RenderingStats*) OVERRIDE; 44 virtual void renderingStats(RenderingStats*) OVERRIDE;
44 virtual const RendererCapabilities& rendererCapabilities() const OVERRIDE; 45 virtual const RendererCapabilities& rendererCapabilities() const OVERRIDE;
45 virtual void setNeedsAnimate() OVERRIDE; 46 virtual void setNeedsAnimate() OVERRIDE;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 }; 120 };
120 struct CommitPendingRequest { 121 struct CommitPendingRequest {
121 CompletionEvent completion; 122 CompletionEvent completion;
122 bool commitPending; 123 bool commitPending;
123 }; 124 };
124 void forceBeginFrameOnImplThread(CompletionEvent*); 125 void forceBeginFrameOnImplThread(CompletionEvent*);
125 void beginFrameCompleteOnImplThread(CompletionEvent*, ResourceUpdateQueue*); 126 void beginFrameCompleteOnImplThread(CompletionEvent*, ResourceUpdateQueue*);
126 void beginFrameAbortedOnImplThread(); 127 void beginFrameAbortedOnImplThread();
127 void requestReadbackOnImplThread(ReadbackRequest*); 128 void requestReadbackOnImplThread(ReadbackRequest*);
128 void requestStartPageScaleAnimationOnImplThread(gfx::Vector2d targetOffset, bool useAnchor, float scale, base::TimeDelta duration); 129 void requestStartPageScaleAnimationOnImplThread(gfx::Vector2d targetOffset, bool useAnchor, float scale, base::TimeDelta duration);
130 void requestProgrammaticScroll(gfx::Vector2d targetOffset);
131
129 void finishAllRenderingOnImplThread(CompletionEvent*); 132 void finishAllRenderingOnImplThread(CompletionEvent*);
130 void initializeImplOnImplThread(CompletionEvent*, InputHandler*); 133 void initializeImplOnImplThread(CompletionEvent*, InputHandler*);
131 void setSurfaceReadyOnImplThread(); 134 void setSurfaceReadyOnImplThread();
132 void setVisibleOnImplThread(CompletionEvent*, bool); 135 void setVisibleOnImplThread(CompletionEvent*, bool);
133 void initializeOutputSurfaceOnImplThread(scoped_ptr<OutputSurface>); 136 void initializeOutputSurfaceOnImplThread(scoped_ptr<OutputSurface>);
134 void initializeRendererOnImplThread(CompletionEvent*, bool* initializeSuccee ded, RendererCapabilities*); 137 void initializeRendererOnImplThread(CompletionEvent*, bool* initializeSuccee ded, RendererCapabilities*);
135 void layerTreeHostClosedOnImplThread(CompletionEvent*); 138 void layerTreeHostClosedOnImplThread(CompletionEvent*);
136 void manageTilesOnImplThread(); 139 void manageTilesOnImplThread();
137 void setFullRootLayerDamageOnImplThread(); 140 void setFullRootLayerDamageOnImplThread();
138 void acquireLayerTexturesForMainThreadOnImplThread(CompletionEvent*); 141 void acquireLayerTexturesForMainThreadOnImplThread(CompletionEvent*);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 bool m_deferCommits; 209 bool m_deferCommits;
207 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; 210 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit;
208 211
209 base::TimeTicks m_smoothnessTakesPriorityExpirationTime; 212 base::TimeTicks m_smoothnessTakesPriorityExpirationTime;
210 bool m_renewTreePriorityOnImplThreadPending; 213 bool m_renewTreePriorityOnImplThreadPending;
211 }; 214 };
212 215
213 } // namespace cc 216 } // namespace cc
214 217
215 #endif // CC_THREAD_PROXY_H_ 218 #endif // CC_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/single_thread_proxy.cc ('k') | cc/thread_proxy.cc » ('j') | cc/top_controls_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698