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_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_ |
OLD | NEW |