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

Unified Diff: third_party/WebKit/Source/devtools/front_end/emulation/TouchModel.js

Issue 2137773002: [DevTools] Replace the target type with capabilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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/devtools/front_end/emulation/TouchModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/TouchModel.js b/third_party/WebKit/Source/devtools/front_end/emulation/TouchModel.js
index d0a39d7f48e980823373d06a019c4020fdecf49c..b39ce97468595307fba47b88d3f923b0452cbce2 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/TouchModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/TouchModel.js
@@ -12,7 +12,7 @@ WebInspector.MultitargetTouchModel = function()
this._touchMobile = false;
this._customTouchEnabled = false;
- WebInspector.targetManager.observeTargets(this, WebInspector.Target.Type.Page);
+ WebInspector.targetManager.observeTargets(this, WebInspector.Target.Capability.Browser);
}
WebInspector.MultitargetTouchModel._symbol = Symbol("MultitargetTouchModel.symbol");
@@ -40,7 +40,7 @@ WebInspector.MultitargetTouchModel.prototype = {
_updateAllTargets: function()
{
- for (var target of WebInspector.targetManager.targets(WebInspector.Target.Type.Page))
+ for (var target of WebInspector.targetManager.targets(WebInspector.Target.Capability.Browser))
this._applyToTarget(target);
},

Powered by Google App Engine
This is Rietveld 408576698