| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 |
| 5 |
| 4 class PossibleBrowser(object): | 6 class PossibleBrowser(object): |
| 5 """A browser that can be controlled. | 7 """A browser that can be controlled. |
| 6 | 8 |
| 7 Call Create() to launch the browser and begin manipulating it.. | 9 Call Create() to launch the browser and begin manipulating it.. |
| 8 """ | 10 """ |
| 9 | 11 |
| 10 def __init__(self, browser_type, options): | 12 def __init__(self, browser_type, options): |
| 11 self.browser_type = browser_type | 13 self.browser_type = browser_type |
| 12 self._options = options | 14 self._options = options |
| 13 | 15 |
| 14 def __repr__(self): | 16 def __repr__(self): |
| 15 return 'PossibleBrowser(browser_type=%s)' % self.browser_type | 17 return 'PossibleBrowser(browser_type=%s)' % self.browser_type |
| 16 | 18 |
| 17 @property | 19 @property |
| 18 def options(self): | 20 def options(self): |
| 19 return self._options | 21 return self._options |
| 20 | 22 |
| 21 def Create(self): | 23 def Create(self): |
| 22 raise NotImplementedError() | 24 raise NotImplementedError() |
| OLD | NEW |