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

Unified Diff: third_party/WebKit/Source/web/InspectorEmulationAgent.cpp

Issue 2877363002: Move more classes over to use WebLocalFrameBase instead of WebLocalFrameImpl. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/InspectorEmulationAgent.cpp
diff --git a/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp b/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp
index 56971836e2b96f25bea33a156076482f6521d506..585c65edb971f6a5a0fdeff8197073c2e57186d8 100644
--- a/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp
+++ b/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp
@@ -7,6 +7,7 @@
#include "core/exported/WebViewBase.h"
#include "core/frame/FrameView.h"
#include "core/frame/Settings.h"
+#include "core/frame/WebLocalFrameBase.h"
#include "core/inspector/protocol/DOM.h"
#include "core/page/Page.h"
#include "platform/geometry/DoubleRect.h"
@@ -16,7 +17,6 @@
#include "public/platform/WebFloatPoint.h"
#include "public/platform/WebThread.h"
#include "web/DevToolsEmulator.h"
-#include "web/WebLocalFrameImpl.h"
namespace blink {
@@ -36,20 +36,20 @@ static const char kDefaultBackgroundColorOverrideRGBA[] =
}
InspectorEmulationAgent* InspectorEmulationAgent::Create(
- WebLocalFrameImpl* web_local_frame_impl,
+ WebLocalFrameBase* web_local_frame_impl,
Client* client) {
return new InspectorEmulationAgent(web_local_frame_impl, client);
}
InspectorEmulationAgent::InspectorEmulationAgent(
- WebLocalFrameImpl* web_local_frame_impl,
+ WebLocalFrameBase* web_local_frame_impl,
Client* client)
- : web_local_frame_impl_(web_local_frame_impl), client_(client) {}
+ : web_local_frame_(web_local_frame_impl), client_(client) {}
InspectorEmulationAgent::~InspectorEmulationAgent() {}
WebViewBase* InspectorEmulationAgent::GetWebViewBase() {
- return web_local_frame_impl_->ViewImpl();
+ return web_local_frame_->ViewImpl();
}
void InspectorEmulationAgent::Restore() {
@@ -156,22 +156,22 @@ Response InspectorEmulationAgent::setCPUThrottlingRate(double throttling_rate) {
Response InspectorEmulationAgent::setVirtualTimePolicy(const String& policy,
Maybe<int> budget) {
if (protocol::Emulation::VirtualTimePolicyEnum::Advance == policy) {
- web_local_frame_impl_->View()->Scheduler()->SetVirtualTimePolicy(
+ web_local_frame_->View()->Scheduler()->SetVirtualTimePolicy(
WebViewScheduler::VirtualTimePolicy::ADVANCE);
} else if (protocol::Emulation::VirtualTimePolicyEnum::Pause == policy) {
- web_local_frame_impl_->View()->Scheduler()->SetVirtualTimePolicy(
+ web_local_frame_->View()->Scheduler()->SetVirtualTimePolicy(
WebViewScheduler::VirtualTimePolicy::PAUSE);
} else if (protocol::Emulation::VirtualTimePolicyEnum::
PauseIfNetworkFetchesPending == policy) {
- web_local_frame_impl_->View()->Scheduler()->SetVirtualTimePolicy(
+ web_local_frame_->View()->Scheduler()->SetVirtualTimePolicy(
WebViewScheduler::VirtualTimePolicy::DETERMINISTIC_LOADING);
}
- web_local_frame_impl_->View()->Scheduler()->EnableVirtualTime();
+ web_local_frame_->View()->Scheduler()->EnableVirtualTime();
if (budget.isJust()) {
base::TimeDelta budget_amount =
base::TimeDelta::FromMilliseconds(budget.fromJust());
- web_local_frame_impl_->View()->Scheduler()->GrantVirtualTimeBudget(
+ web_local_frame_->View()->Scheduler()->GrantVirtualTimeBudget(
budget_amount,
WTF::Bind(&InspectorEmulationAgent::VirtualTimeBudgetExpired,
WrapWeakPersistent(this)));
@@ -180,7 +180,7 @@ Response InspectorEmulationAgent::setVirtualTimePolicy(const String& policy,
}
void InspectorEmulationAgent::VirtualTimeBudgetExpired() {
- web_local_frame_impl_->View()->Scheduler()->SetVirtualTimePolicy(
+ web_local_frame_->View()->Scheduler()->SetVirtualTimePolicy(
WebViewScheduler::VirtualTimePolicy::PAUSE);
GetFrontend()->virtualTimeBudgetExpired();
}
@@ -205,7 +205,7 @@ Response InspectorEmulationAgent::setDefaultBackgroundColorOverride(
}
DEFINE_TRACE(InspectorEmulationAgent) {
- visitor->Trace(web_local_frame_impl_);
+ visitor->Trace(web_local_frame_);
InspectorBaseAgent::Trace(visitor);
}
« no previous file with comments | « third_party/WebKit/Source/web/InspectorEmulationAgent.h ('k') | third_party/WebKit/Source/web/LocalFileSystemClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698