Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: ui/platform_window/platform_window_factory.h

Issue 403263002: platform-window: Add a PlatformWindowFactory for creating windows. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win32 Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698