view_manager: Remove PlatformViewport abstraction.
[chromium-blink-merge.git] / components / view_manager / display_manager_factory.h
blob4152b7dadf733112c423903e1fca571e4b202e7c
1 // Copyright 2015 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.
5 #ifndef COMPONENTS_VIEW_MANAGER_DISPLAY_MANAGER_FACTORY_H_
6 #define COMPONENTS_VIEW_MANAGER_DISPLAY_MANAGER_FACTORY_H_
8 #include "components/view_manager/gles2/gpu_state.h"
9 #include "third_party/mojo/src/mojo/public/cpp/bindings/callback.h"
11 namespace mojo {
12 class ApplicationImpl;
13 } // namespace mojo
15 namespace view_manager {
17 class DisplayManager;
19 // Abstract factory for DisplayManagers. Used by tests to construct test
20 // DisplayManagers.
21 class DisplayManagerFactory {
22 public:
23 virtual DisplayManager* CreateDisplayManager(
24 bool is_headless,
25 mojo::ApplicationImpl* app_impl,
26 const scoped_refptr<gles2::GpuState>& gpu_state) = 0;
29 } // namespace view_manager
31 #endif // COMPONENTS_VIEW_MANAGER_DISPLAY_MANAGER_FACTORY_H_