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

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

Issue 2873213002: Add PlatformFrameView class. (Closed)
Patch Set: #include PlatformFrameView inside platform.dll Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 2765 matching lines...) Expand 10 before | Expand all | Expand 10 after
2776 if (!frame_->IsMainFrame()) 2776 if (!frame_->IsMainFrame())
2777 return; 2777 return;
2778 AdjustScrollbarOpacity(); 2778 AdjustScrollbarOpacity();
2779 ContentsResized(); 2779 ContentsResized();
2780 UpdateScrollbars(); 2780 UpdateScrollbars();
2781 PositionScrollbarLayers(); 2781 PositionScrollbarLayers();
2782 } 2782 }
2783 2783
2784 bool FrameView::ScheduleAnimation() { 2784 bool FrameView::ScheduleAnimation() {
2785 if (PlatformChromeClient* client = GetChromeClient()) { 2785 if (PlatformChromeClient* client = GetChromeClient()) {
2786 client->ScheduleAnimation(frame_); 2786 client->ScheduleAnimation(this);
2787 return true; 2787 return true;
2788 } 2788 }
2789 return false; 2789 return false;
2790 } 2790 }
2791 2791
2792 void FrameView::NotifyPageThatContentAreaWillPaint() const { 2792 void FrameView::NotifyPageThatContentAreaWillPaint() const {
2793 Page* page = frame_->GetPage(); 2793 Page* page = frame_->GetPage();
2794 if (!page) 2794 if (!page)
2795 return; 2795 return;
2796 2796
(...skipping 2591 matching lines...) Expand 10 before | Expand all | Expand 10 after
5388 void FrameView::SetAnimationHost( 5388 void FrameView::SetAnimationHost(
5389 std::unique_ptr<CompositorAnimationHost> host) { 5389 std::unique_ptr<CompositorAnimationHost> host) {
5390 animation_host_ = std::move(host); 5390 animation_host_ = std::move(host);
5391 } 5391 }
5392 5392
5393 LayoutUnit FrameView::CaretWidth() const { 5393 LayoutUnit FrameView::CaretWidth() const {
5394 return LayoutUnit(GetChromeClient()->WindowToViewportScalar(1)); 5394 return LayoutUnit(GetChromeClient()->WindowToViewportScalar(1));
5395 } 5395 }
5396 5396
5397 } // namespace blink 5397 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.h ('k') | third_party/WebKit/Source/core/frame/FrameViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698