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

Side by Side Diff: ui/platform_window/x11/x11_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_X11_X11_WINDOW_FACTORY_H_
6 #define UI_PLATFORM_WINDOW_X11_X11_WINDOW_FACTORY_H_
7
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "ui/platform_window/platform_window_factory.h"
11 #include "ui/platform_window/x11/x11_window_export.h"
12
13 namespace ui {
14
15 class PlatformEventSource;
16
17 class X11_WINDOW_EXPORT X11WindowFactory : public PlatformWindowFactory {
18 public:
19 static PlatformWindowFactory* CreateIfNecessary();
20
21 private:
22 X11WindowFactory();
23 virtual ~X11WindowFactory();
24
25 // PlatformWindowFactory:
26 virtual scoped_ptr<PlatformWindow> CreatePlatformWindow(
27 PlatformWindowDelegate* delegate,
28 const gfx::Rect& bounds) OVERRIDE;
29
30 scoped_ptr<PlatformEventSource> event_source_;
31
32 DISALLOW_COPY_AND_ASSIGN(X11WindowFactory);
33 };
34
35 } // namespace ui
36
37 #endif // UI_PLATFORM_WINDOW_X11_X11_WINDOW_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698