1 # Copyright 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6 class PossibleApp(object):
7 """A factory class that can be used to create a running instance of app.
9 Call Create() to launch the app and begin manipulating it.
12 def __init__(self, app_type, target_os):
13 self._app_type = app_type
14 self._target_os = target_os
16 self._platform_backend = None
19 return 'PossibleApp(app_type=%s)' % self.app_type
27 """Target OS, the app will run on."""
28 return self._target_os
32 self._InitPlatformIfNeeded()
35 def _InitPlatformIfNeeded(self):
36 raise NotImplementedError()
38 def Create(self, finder_options):
39 raise NotImplementedError()
41 def SupportsOptions(self, finder_options):
42 """Tests for extension support."""
43 raise NotImplementedError()