| Index: ui/platform_window/platform_window_factory.h
|
| diff --git a/ui/platform_window/platform_window_factory.h b/ui/platform_window/platform_window_factory.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0776ae4696eeea6772ee72c621e909e4c0fcfd7f
|
| --- /dev/null
|
| +++ b/ui/platform_window/platform_window_factory.h
|
| @@ -0,0 +1,35 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef UI_PLATFORM_WINDOW_PLATFORM_WINDOW_FACTORY_H_
|
| +#define UI_PLATFORM_WINDOW_PLATFORM_WINDOW_FACTORY_H_
|
| +
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "base/sequenced_task_runner_helpers.h"
|
| +#include "ui/platform_window/platform_window_export.h"
|
| +
|
| +namespace gfx {
|
| +class Rect;
|
| +}
|
| +
|
| +namespace ui {
|
| +
|
| +class PlatformWindow;
|
| +class PlatformWindowDelegate;
|
| +
|
| +class PLATFORM_WINDOW_EXPORT PlatformWindowFactory {
|
| + public:
|
| + PlatformWindowFactory();
|
| + virtual ~PlatformWindowFactory();
|
| +
|
| + static PlatformWindowFactory* GetInstance();
|
| +
|
| + virtual scoped_ptr<PlatformWindow> CreatePlatformWindow(
|
| + PlatformWindowDelegate* delegate,
|
| + const gfx::Rect& bounds) = 0;
|
| +};
|
| +
|
| +} // namespace ui
|
| +
|
| +#endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_FACTORY_H_
|
|
|