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

Side by Side Diff: cc/trees/remote_channel_impl.cc

Issue 2443613002: Rename classes related to top controls (Closed)
Patch Set: fix test Created 4 years, 1 month 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
« no previous file with comments | « cc/trees/remote_channel_impl.h ('k') | cc/trees/remote_channel_main.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "cc/trees/remote_channel_impl.h" 5 #include "cc/trees/remote_channel_impl.h"
6 6
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "cc/animation/animation_events.h" 10 #include "cc/animation/animation_events.h"
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 } 268 }
269 269
270 void RemoteChannelImpl::SetMutator(std::unique_ptr<LayerTreeMutator> mutator) { 270 void RemoteChannelImpl::SetMutator(std::unique_ptr<LayerTreeMutator> mutator) {
271 // TODO(vollick): add support for compositor worker. 271 // TODO(vollick): add support for compositor worker.
272 } 272 }
273 273
274 bool RemoteChannelImpl::SupportsImplScrolling() const { 274 bool RemoteChannelImpl::SupportsImplScrolling() const {
275 return true; 275 return true;
276 } 276 }
277 277
278 void RemoteChannelImpl::UpdateTopControlsState(TopControlsState constraints, 278 void RemoteChannelImpl::UpdateBrowserControlsState(
279 TopControlsState current, 279 BrowserControlsState constraints,
280 bool animate) { 280 BrowserControlsState current,
281 bool animate) {
281 NOTREACHED() << "Should not be called on the remote client LayerTreeHost"; 282 NOTREACHED() << "Should not be called on the remote client LayerTreeHost";
282 } 283 }
283 284
284 bool RemoteChannelImpl::MainFrameWillHappenForTesting() { 285 bool RemoteChannelImpl::MainFrameWillHappenForTesting() {
285 DCHECK(task_runner_provider_->IsMainThread()); 286 DCHECK(task_runner_provider_->IsMainThread());
286 bool main_frame_will_happen; 287 bool main_frame_will_happen;
287 { 288 {
288 CompletionEvent completion; 289 CompletionEvent completion;
289 DebugScopedSetMainThreadBlocked main_thread_blocked(task_runner_provider_); 290 DebugScopedSetMainThreadBlocked main_thread_blocked(task_runner_provider_);
290 ImplThreadTaskRunner()->PostTask( 291 ImplThreadTaskRunner()->PostTask(
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 511
511 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly( 512 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly(
512 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr) 513 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr)
513 : proxy_impl(nullptr), 514 : proxy_impl(nullptr),
514 proxy_impl_weak_factory(nullptr), 515 proxy_impl_weak_factory(nullptr),
515 remote_channel_weak_ptr(remote_channel_weak_ptr) {} 516 remote_channel_weak_ptr(remote_channel_weak_ptr) {}
516 517
517 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {} 518 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {}
518 519
519 } // namespace cc 520 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/remote_channel_impl.h ('k') | cc/trees/remote_channel_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698