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

Unified Diff: chrome/browser/devtools/device/cloud/js/web_client.js

Issue 746663002: Stub for WebRTCDeviceProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webclient
Patch Set: Switching to chrome:// schema, moving to chrome/browser/devtools/device/cloud/ Created 6 years, 1 month 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: chrome/browser/devtools/device/cloud/js/web_client.js
diff --git a/chrome/browser/devtools/device/cloud/js/web_client.js b/chrome/browser/devtools/device/cloud/js/web_client.js
new file mode 100644
index 0000000000000000000000000000000000000000..48673467c6e4fcaf65ecbaddded8c432fe515433
--- /dev/null
+++ b/chrome/browser/devtools/device/cloud/js/web_client.js
@@ -0,0 +1,19 @@
+// Copyright 2014 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
+ */
+function WebClient() {
+}
+
+WebClient.prototype.startSession = function(deviceId) {
+ // TODO(serya): implement
+ chrome.send('sendCommand', [0, {}]);
+};
+
+window.addEventListener('load', function() {
+ window.WebClient.instance = new WebClient();
+ chrome.send('loaded');
+});

Powered by Google App Engine
This is Rietveld 408576698