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

Unified Diff: tools/chrome_remote_control/chrome_remote_control/browser.py

Issue 10916227: More polish in prep for CrOS support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for landing Created 8 years, 3 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: tools/chrome_remote_control/chrome_remote_control/browser.py
diff --git a/tools/chrome_remote_control/chrome_remote_control/browser.py b/tools/chrome_remote_control/chrome_remote_control/browser.py
index eb033edc462f3da3324adee97660ff6a71694587..cacf4b81e185a13663bd373371aa37131d0c4bb7 100644
--- a/tools/chrome_remote_control/chrome_remote_control/browser.py
+++ b/tools/chrome_remote_control/chrome_remote_control/browser.py
@@ -9,6 +9,7 @@ import json
import tab
import browser_finder
+import temporary_http_server
class Browser(object):
"""A running browser instance that can be controled in a limited way.
@@ -31,6 +32,11 @@ class Browser(object):
self.Close()
@property
+ def is_content_shell(self):
+ """Returns whether this browser is a content shell, only."""
+ return self._backend.is_content_shell
+
+ @property
def num_tabs(self):
return self._backend.num_tabs
@@ -42,3 +48,6 @@ class Browser(object):
def Close(self):
self._backend.Close()
+
+ def CreateTemporaryHTTPServer(self, path):
+ return temporary_http_server.TemporaryHTTPServer(self._backend, path)

Powered by Google App Engine
This is Rietveld 408576698