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

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

Issue 2829613002: Remove ScheduleAnimation proxy methods, call HostWindow directly (Closed)
Patch Set: 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 /* 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 Simon Hausmann <hausmann@kde.org> 5 * 2000 Simon Hausmann <hausmann@kde.org>
6 * 2000 Stefan Schimanski <1Stein@gmx.de> 6 * 2000 Stefan Schimanski <1Stein@gmx.de>
7 * 2001 George Staikos <staikos@kde.org> 7 * 2001 George Staikos <staikos@kde.org>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
9 * rights reserved. 9 * rights reserved.
10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> 10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 #include "core/page/scrolling/ScrollingCoordinator.h" 71 #include "core/page/scrolling/ScrollingCoordinator.h"
72 #include "core/paint/ObjectPainter.h" 72 #include "core/paint/ObjectPainter.h"
73 #include "core/paint/PaintInfo.h" 73 #include "core/paint/PaintInfo.h"
74 #include "core/paint/PaintLayer.h" 74 #include "core/paint/PaintLayer.h"
75 #include "core/paint/PaintLayerPainter.h" 75 #include "core/paint/PaintLayerPainter.h"
76 #include "core/paint/TransformRecorder.h" 76 #include "core/paint/TransformRecorder.h"
77 #include "core/probe/CoreProbes.h" 77 #include "core/probe/CoreProbes.h"
78 #include "core/svg/SVGDocumentExtensions.h" 78 #include "core/svg/SVGDocumentExtensions.h"
79 #include "core/timing/Performance.h" 79 #include "core/timing/Performance.h"
80 #include "platform/DragImage.h" 80 #include "platform/DragImage.h"
81 #include "platform/HostWindow.h"
82 #include "platform/PluginScriptForbiddenScope.h" 81 #include "platform/PluginScriptForbiddenScope.h"
83 #include "platform/RuntimeEnabledFeatures.h" 82 #include "platform/RuntimeEnabledFeatures.h"
84 #include "platform/ScriptForbiddenScope.h" 83 #include "platform/ScriptForbiddenScope.h"
85 #include "platform/WebFrameScheduler.h" 84 #include "platform/WebFrameScheduler.h"
86 #include "platform/graphics/GraphicsContext.h" 85 #include "platform/graphics/GraphicsContext.h"
87 #include "platform/graphics/StaticBitmapImage.h" 86 #include "platform/graphics/StaticBitmapImage.h"
88 #include "platform/graphics/paint/ClipRecorder.h" 87 #include "platform/graphics/paint/ClipRecorder.h"
89 #include "platform/graphics/paint/PaintCanvas.h" 88 #include "platform/graphics/paint/PaintCanvas.h"
90 #include "platform/graphics/paint/PaintController.h" 89 #include "platform/graphics/paint/PaintController.h"
91 #include "platform/graphics/paint/PaintRecordBuilder.h" 90 #include "platform/graphics/paint/PaintRecordBuilder.h"
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 } 865 }
867 866
868 bool LocalFrame::ShouldThrottleRendering() const { 867 bool LocalFrame::ShouldThrottleRendering() const {
869 return View() && View()->ShouldThrottleRendering(); 868 return View() && View()->ShouldThrottleRendering();
870 } 869 }
871 870
872 void LocalFrame::RegisterInitializationCallback(FrameInitCallback callback) { 871 void LocalFrame::RegisterInitializationCallback(FrameInitCallback callback) {
873 GetInitializationVector().push_back(callback); 872 GetInitializationVector().push_back(callback);
874 } 873 }
875 874
876 bool LocalFrame::ScheduleAnimation(HostWindow* window) {
877 if (window) {
878 window->ScheduleAnimation(this);
879 return true;
880 }
881 return false;
882 }
883
884 inline LocalFrame::LocalFrame(LocalFrameClient* client, 875 inline LocalFrame::LocalFrame(LocalFrameClient* client,
885 Page& page, 876 Page& page,
886 FrameOwner* owner, 877 FrameOwner* owner,
887 InterfaceProvider* interface_provider, 878 InterfaceProvider* interface_provider,
888 InterfaceRegistry* interface_registry) 879 InterfaceRegistry* interface_registry)
889 : Frame(client, page, owner, LocalWindowProxyManager::Create(*this)), 880 : Frame(client, page, owner, LocalWindowProxyManager::Create(*this)),
890 frame_scheduler_(page.GetChromeClient().CreateFrameScheduler( 881 frame_scheduler_(page.GetChromeClient().CreateFrameScheduler(
891 client->GetFrameBlameContext())), 882 client->GetFrameBlameContext())),
892 loader_(this), 883 loader_(this),
893 navigation_scheduler_(NavigationScheduler::Create(this)), 884 navigation_scheduler_(NavigationScheduler::Create(this)),
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 if (frame_ && frame_->Client() && frame_->Client()->GetFrameBlameContext()) 946 if (frame_ && frame_->Client() && frame_->Client()->GetFrameBlameContext())
956 frame_->Client()->GetFrameBlameContext()->Enter(); 947 frame_->Client()->GetFrameBlameContext()->Enter();
957 } 948 }
958 949
959 ScopedFrameBlamer::~ScopedFrameBlamer() { 950 ScopedFrameBlamer::~ScopedFrameBlamer() {
960 if (frame_ && frame_->Client() && frame_->Client()->GetFrameBlameContext()) 951 if (frame_ && frame_->Client() && frame_->Client()->GetFrameBlameContext())
961 frame_->Client()->GetFrameBlameContext()->Leave(); 952 frame_->Client()->GetFrameBlameContext()->Leave();
962 } 953 }
963 954
964 } // namespace blink 955 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.h ('k') | third_party/WebKit/Source/core/frame/VisualViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698