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

Side by Side Diff: third_party/WebKit/Source/core/frame/RootFrameViewport.cpp

Issue 2824753005: Rename HostWindow to PlatformChromeClient (Closed)
Patch Set: mac Created 3 years, 8 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "core/frame/RootFrameViewport.h" 5 #include "core/frame/RootFrameViewport.h"
6 6
7 #include "core/frame/FrameView.h" 7 #include "core/frame/FrameView.h"
8 #include "core/layout/ScrollAlignment.h" 8 #include "core/layout/ScrollAlignment.h"
9 #include "core/layout/ScrollAnchor.h" 9 #include "core/layout/ScrollAnchor.h"
10 #include "platform/geometry/DoubleRect.h" 10 #include "platform/geometry/DoubleRect.h"
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 visual_result.did_scroll_x || layout_result.did_scroll_x, 420 visual_result.did_scroll_x || layout_result.did_scroll_x,
421 visual_result.did_scroll_y || layout_result.did_scroll_y, 421 visual_result.did_scroll_y || layout_result.did_scroll_y,
422 layout_result.unused_scroll_delta_x + unscrollable_axis_delta.Width(), 422 layout_result.unused_scroll_delta_x + unscrollable_axis_delta.Width(),
423 layout_result.unused_scroll_delta_y + unscrollable_axis_delta.Height()); 423 layout_result.unused_scroll_delta_y + unscrollable_axis_delta.Height());
424 } 424 }
425 425
426 bool RootFrameViewport::ScrollAnimatorEnabled() const { 426 bool RootFrameViewport::ScrollAnimatorEnabled() const {
427 return LayoutViewport().ScrollAnimatorEnabled(); 427 return LayoutViewport().ScrollAnimatorEnabled();
428 } 428 }
429 429
430 HostWindow* RootFrameViewport::GetHostWindow() const { 430 PlatformChromeClient* RootFrameViewport::GetChromeClient() const {
431 return LayoutViewport().GetHostWindow(); 431 return LayoutViewport().GetChromeClient();
432 } 432 }
433 433
434 void RootFrameViewport::ServiceScrollAnimations(double monotonic_time) { 434 void RootFrameViewport::ServiceScrollAnimations(double monotonic_time) {
435 ScrollableArea::ServiceScrollAnimations(monotonic_time); 435 ScrollableArea::ServiceScrollAnimations(monotonic_time);
436 LayoutViewport().ServiceScrollAnimations(monotonic_time); 436 LayoutViewport().ServiceScrollAnimations(monotonic_time);
437 VisualViewport().ServiceScrollAnimations(monotonic_time); 437 VisualViewport().ServiceScrollAnimations(monotonic_time);
438 } 438 }
439 439
440 void RootFrameViewport::UpdateCompositorScrollAnimations() { 440 void RootFrameViewport::UpdateCompositorScrollAnimations() {
441 ScrollableArea::UpdateCompositorScrollAnimations(); 441 ScrollableArea::UpdateCompositorScrollAnimations();
(...skipping 13 matching lines...) Expand all
455 VisualViewport().ClearScrollableArea(); 455 VisualViewport().ClearScrollableArea();
456 } 456 }
457 457
458 DEFINE_TRACE(RootFrameViewport) { 458 DEFINE_TRACE(RootFrameViewport) {
459 visitor->Trace(visual_viewport_); 459 visitor->Trace(visual_viewport_);
460 visitor->Trace(layout_viewport_); 460 visitor->Trace(layout_viewport_);
461 ScrollableArea::Trace(visitor); 461 ScrollableArea::Trace(visitor);
462 } 462 }
463 463
464 } // namespace blink 464 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/RootFrameViewport.h ('k') | third_party/WebKit/Source/core/frame/VisualViewport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698