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

Side by Side Diff: content/browser/compositor/delegated_frame_host.h

Issue 284413002: Fix virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review nits Created 6 years, 7 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
« no previous file with comments | « no previous file | content/browser/compositor/delegated_frame_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
6 #define CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
7 7
8 #include "cc/layers/delegated_frame_provider.h" 8 #include "cc/layers/delegated_frame_provider.h"
9 #include "cc/layers/delegated_frame_resource_collection.h" 9 #include "cc/layers/delegated_frame_resource_collection.h"
10 #include "cc/output/copy_output_result.h" 10 #include "cc/output/copy_output_result.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 bool CanCopyToVideoFrame() const; 102 bool CanCopyToVideoFrame() const;
103 bool CanSubscribeFrame() const; 103 bool CanSubscribeFrame() const;
104 void BeginFrameSubscription( 104 void BeginFrameSubscription(
105 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); 105 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber);
106 void EndFrameSubscription(); 106 void EndFrameSubscription();
107 107
108 // Exposed for tests. 108 // Exposed for tests.
109 cc::DelegatedFrameProvider* FrameProviderForTesting() const { 109 cc::DelegatedFrameProvider* FrameProviderForTesting() const {
110 return frame_provider_.get(); 110 return frame_provider_.get();
111 } 111 }
112 gfx::Size CurrentFrameSizeInDIPForTesting() const {
113 return current_frame_size_in_dip_;
114 }
115 void OnCompositingDidCommitForTesting(ui::Compositor* compositor) { 112 void OnCompositingDidCommitForTesting(ui::Compositor* compositor) {
116 OnCompositingDidCommit(compositor); 113 OnCompositingDidCommit(compositor);
117 } 114 }
115 bool ShouldCreateResizeLockForTesting() { return ShouldCreateResizeLock(); }
118 116
119 private: 117 private:
120 friend class DelegatedFrameHostClient; 118 friend class DelegatedFrameHostClient;
121 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 119 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
122 SkippedDelegatedFrames); 120 SkippedDelegatedFrames);
123 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 121 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
124 DiscardDelegatedFramesWithLocking); 122 DiscardDelegatedFramesWithLocking);
125 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraCopyRequestTest, 123 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraCopyRequestTest,
126 DestroyedAfterCopyRequest); 124 DestroyedAfterCopyRequest);
127 125
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // YUV readback pipeline. 275 // YUV readback pipeline.
278 scoped_ptr<content::ReadbackYUVInterface> 276 scoped_ptr<content::ReadbackYUVInterface>
279 yuv_readback_pipeline_; 277 yuv_readback_pipeline_;
280 278
281 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 279 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
282 }; 280 };
283 281
284 } // namespace content 282 } // namespace content
285 283
286 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 284 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/compositor/delegated_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698