| Index: third_party/WebKit/Source/devtools/front_end/devices/DevicesDialog.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/devices/DevicesDialog.js b/third_party/WebKit/Source/devtools/front_end/devices/DevicesDialog.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..05fdade17b097fcb0982f55e138ae4cdc013047a
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/devtools/front_end/devices/DevicesDialog.js
|
| @@ -0,0 +1,44 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +/**
|
| + * @constructor
|
| + */
|
| +WebInspector.DevicesDialog = function()
|
| +{
|
| +}
|
| +
|
| +/**
|
| + * @constructor
|
| + * @implements {WebInspector.ActionDelegate}
|
| + */
|
| +WebInspector.DevicesDialog.ActionDelegate = function()
|
| +{
|
| + /** @type {?WebInspector.DevicesView} */
|
| + this._view = null;
|
| +}
|
| +
|
| +WebInspector.DevicesDialog.ActionDelegate.prototype = {
|
| + /**
|
| + * @override
|
| + * @param {!WebInspector.Context} context
|
| + * @param {string} actionId
|
| + * @return {boolean}
|
| + */
|
| + handleAction: function(context, actionId)
|
| + {
|
| + if (actionId === "devices.dialog.show") {
|
| + if (!this._view)
|
| + this._view = new WebInspector.DevicesView();
|
| +
|
| + var dialog = new WebInspector.Dialog();
|
| + dialog.addCloseButton();
|
| + this._view.show(dialog.element);
|
| + dialog.setMaxSize(new Size(700, 500));
|
| + dialog.show();
|
| + return true;
|
| + }
|
| + return false;
|
| + }
|
| +}
|
|
|