OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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. |
| 4 |
| 5 #ifndef UI_PLATFORM_WINDOW_PLATFORM_WINDOW_FACTORY_H_ |
| 6 #define UI_PLATFORM_WINDOW_PLATFORM_WINDOW_FACTORY_H_ |
| 7 |
| 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/sequenced_task_runner_helpers.h" |
| 10 #include "ui/platform_window/platform_window_export.h" |
| 11 |
| 12 namespace gfx { |
| 13 class Rect; |
| 14 } |
| 15 |
| 16 namespace ui { |
| 17 |
| 18 class PlatformWindow; |
| 19 class PlatformWindowDelegate; |
| 20 |
| 21 class PLATFORM_WINDOW_EXPORT PlatformWindowFactory { |
| 22 public: |
| 23 PlatformWindowFactory(); |
| 24 virtual ~PlatformWindowFactory(); |
| 25 |
| 26 static PlatformWindowFactory* GetInstance(); |
| 27 |
| 28 virtual scoped_ptr<PlatformWindow> CreatePlatformWindow( |
| 29 PlatformWindowDelegate* delegate, |
| 30 const gfx::Rect& bounds) = 0; |
| 31 }; |
| 32 |
| 33 } // namespace ui |
| 34 |
| 35 #endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_FACTORY_H_ |
OLD | NEW |