Index: ui/platform_window/win/win_window_factory.cc |
diff --git a/ui/platform_window/win/win_window_factory.cc b/ui/platform_window/win/win_window_factory.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..13a3b1f46836f2dd57775bf4115190fd3085198c |
--- /dev/null |
+++ b/ui/platform_window/win/win_window_factory.cc |
@@ -0,0 +1,33 @@ |
+// 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. |
+ |
+#include "ui/platform_window/win/win_window_factory.h" |
+ |
+#include "ui/platform_window/win/win_window.h" |
+ |
+namespace ui { |
+ |
+WinWindowFactory::WinWindowFactory() { |
+} |
+ |
+WinWindowFactory::~WinWindowFactory() { |
+} |
+ |
+// static |
+PlatformWindowFactory* WinWindowFactory::CreateIfNecessary() { |
+ PlatformWindowFactory* instance = GetInstance(); |
+ if (!instance) |
+ new WinWindowFactory(); |
+ instance = GetInstance(); |
+ CHECK(instance); |
+ return instance; |
+} |
+ |
+scoped_ptr<PlatformWindow> WinWindowFactory::CreatePlatformWindow( |
+ PlatformWindowDelegate* delegate, |
+ const gfx::Rect& bounds) { |
+ return scoped_ptr<PlatformWindow>(new WinWindow(delegate, bounds)); |
+} |
+ |
+} // namespace ui |