Index: tools/chrome_remote_control/chrome_remote_control/page.py |
diff --git a/tools/chrome_remote_control/chrome_remote_control/page.py b/tools/chrome_remote_control/chrome_remote_control/page.py |
deleted file mode 100644 |
index 122e62b29a8ad7884bbf4801e5fd1e394bae5d24..0000000000000000000000000000000000000000 |
--- a/tools/chrome_remote_control/chrome_remote_control/page.py |
+++ /dev/null |
@@ -1,28 +0,0 @@ |
-# Copyright (c) 2012 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. |
-import os |
-import urlparse |
- |
-class Page(object): |
- def __init__(self, url, attributes=None, base_dir=None): |
- parsed_url = urlparse.urlparse(url) |
- if not parsed_url.scheme: |
- abspath = os.path.abspath(os.path.join(base_dir, parsed_url.path)) |
- if os.path.exists(abspath): |
- url = 'file://%s' % os.path.abspath(os.path.join(base_dir, url)) |
- else: |
- raise Exception('URLs must be fully qualified: %s' % url) |
- self.url = url |
- self.interactions = 'scroll' |
- self.credentials = None |
- self.wait_time_after_navigate = 2 |
- self.scroll_is_infinite = False |
- self.wait_for_javascript_expression = None |
- |
- if attributes: |
- for k, v in attributes.iteritems(): |
- setattr(self, k, v) |
- |
- def __str__(self): |
- return self.url |