• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2014 The Chromium OS 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.
4
5from autotest_lib.client.cros.multimedia import display_facade_adapter
6
7
8class LocalFacadeFactory(object):
9    """A factory to generate local multimedia facades.
10
11    The facade objects are wrapped by adapters to accept non-native-type,
12    like DisplayFacadeLocalAdapter. These adapted facades are returned.
13    """
14    def __init__(self, chrome):
15        """Initializes the local facade adapter objects."""
16        self._facades = {
17            'display': display_facade_adapter.DisplayFacadeLocalAdapter(chrome)
18        }
19
20
21    def create_display_facade(self):
22        """Creates a display facade object."""
23        return self._facades['display']
24