Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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" | |
| 81 #include "platform/PluginScriptForbiddenScope.h" | 82 #include "platform/PluginScriptForbiddenScope.h" |
| 82 #include "platform/RuntimeEnabledFeatures.h" | 83 #include "platform/RuntimeEnabledFeatures.h" |
| 83 #include "platform/ScriptForbiddenScope.h" | 84 #include "platform/ScriptForbiddenScope.h" |
| 84 #include "platform/WebFrameScheduler.h" | 85 #include "platform/WebFrameScheduler.h" |
| 85 #include "platform/graphics/GraphicsContext.h" | 86 #include "platform/graphics/GraphicsContext.h" |
| 86 #include "platform/graphics/StaticBitmapImage.h" | 87 #include "platform/graphics/StaticBitmapImage.h" |
| 87 #include "platform/graphics/paint/ClipRecorder.h" | 88 #include "platform/graphics/paint/ClipRecorder.h" |
| 88 #include "platform/graphics/paint/PaintCanvas.h" | 89 #include "platform/graphics/paint/PaintCanvas.h" |
| 89 #include "platform/graphics/paint/PaintController.h" | 90 #include "platform/graphics/paint/PaintController.h" |
| 90 #include "platform/graphics/paint/PaintRecordBuilder.h" | 91 #include "platform/graphics/paint/PaintRecordBuilder.h" |
| (...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 865 } | 866 } |
| 866 | 867 |
| 867 bool LocalFrame::ShouldThrottleRendering() const { | 868 bool LocalFrame::ShouldThrottleRendering() const { |
| 868 return View() && View()->ShouldThrottleRendering(); | 869 return View() && View()->ShouldThrottleRendering(); |
| 869 } | 870 } |
| 870 | 871 |
| 871 void LocalFrame::RegisterInitializationCallback(FrameInitCallback callback) { | 872 void LocalFrame::RegisterInitializationCallback(FrameInitCallback callback) { |
| 872 GetInitializationVector().push_back(callback); | 873 GetInitializationVector().push_back(callback); |
| 873 } | 874 } |
| 874 | 875 |
| 876 bool LocalFrame::ScheduleAnimation(HostWindow* window) { | |
|
dcheng
2017/04/19 11:26:25
Can we avoid plumbing HostWindow* through here?
joelhockey
2017/04/19 11:33:17
Yes, I've fixed this in https://codereview.chromiu
| |
| 877 if (window) { | |
| 878 window->ScheduleAnimation(this); | |
|
slangley
2017/04/19 07:15:45
seems weird not to have HostWindow::ScheduleAnimat
joelhockey
2017/04/19 07:20:47
Yes, it's kind of hard to know what the bool even
haraken
2017/04/19 09:44:07
Yeah, would you fix it in a follow-up?
joelhockey
2017/04/19 10:27:54
I've looked a little, but I'm not sure that I can
| |
| 879 return true; | |
| 880 } | |
| 881 return false; | |
| 882 } | |
| 883 | |
| 875 inline LocalFrame::LocalFrame(LocalFrameClient* client, | 884 inline LocalFrame::LocalFrame(LocalFrameClient* client, |
| 876 Page& page, | 885 Page& page, |
| 877 FrameOwner* owner, | 886 FrameOwner* owner, |
| 878 InterfaceProvider* interface_provider, | 887 InterfaceProvider* interface_provider, |
| 879 InterfaceRegistry* interface_registry) | 888 InterfaceRegistry* interface_registry) |
| 880 : Frame(client, page, owner, LocalWindowProxyManager::Create(*this)), | 889 : Frame(client, page, owner, LocalWindowProxyManager::Create(*this)), |
| 881 frame_scheduler_(page.GetChromeClient().CreateFrameScheduler( | 890 frame_scheduler_(page.GetChromeClient().CreateFrameScheduler( |
| 882 client->GetFrameBlameContext())), | 891 client->GetFrameBlameContext())), |
| 883 loader_(this), | 892 loader_(this), |
| 884 navigation_scheduler_(NavigationScheduler::Create(this)), | 893 navigation_scheduler_(NavigationScheduler::Create(this)), |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 946 if (frame_ && frame_->Client() && frame_->Client()->GetFrameBlameContext()) | 955 if (frame_ && frame_->Client() && frame_->Client()->GetFrameBlameContext()) |
| 947 frame_->Client()->GetFrameBlameContext()->Enter(); | 956 frame_->Client()->GetFrameBlameContext()->Enter(); |
| 948 } | 957 } |
| 949 | 958 |
| 950 ScopedFrameBlamer::~ScopedFrameBlamer() { | 959 ScopedFrameBlamer::~ScopedFrameBlamer() { |
| 951 if (frame_ && frame_->Client() && frame_->Client()->GetFrameBlameContext()) | 960 if (frame_ && frame_->Client() && frame_->Client()->GetFrameBlameContext()) |
| 952 frame_->Client()->GetFrameBlameContext()->Leave(); | 961 frame_->Client()->GetFrameBlameContext()->Leave(); |
| 953 } | 962 } |
| 954 | 963 |
| 955 } // namespace blink | 964 } // namespace blink |
| OLD | NEW |