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

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: . Created 6 years, 4 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 "ui/platform_window/platform_window_export.h"
10
11 namespace gfx {
12 class Rect;
13 }
14
15 namespace ui {
16
17 class PlatformWindow;
18 class PlatformWindowDelegate;
19
20 class PLATFORM_WINDOW_EXPORT PlatformWindowFactory {
21 public:
22 PlatformWindowFactory();
23 virtual ~PlatformWindowFactory();
24
25 // Returns the singleton instance of the PlatformWindowFactory. If a factory
26 // hadn't already been created, this would create a default factory and return
27 // that. The caller does not own the factory, and should not destroy it.
28 static PlatformWindowFactory* GetInstance();
29
30 virtual scoped_ptr<PlatformWindow> CreatePlatformWindow(
31 PlatformWindowDelegate* delegate,
32 const gfx::Rect& bounds) = 0;
33 };
34
35 } // namespace ui
36
37 #endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/platform_window/platform_window_delegate.h ('k') | ui/platform_window/platform_window_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698