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

Unified Diff: ui/platform_window/stub/stub_window.cc

Issue 1390883003: aura: Unify WindowTreeHost for some platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missing factories Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: ui/platform_window/stub/stub_window.cc
diff --git a/ui/platform_window/stub/stub_window.cc b/ui/platform_window/stub/stub_window.cc
index a46f89d656dfe7a41f49fe855782c92ee0ea5b8f..78a7fde6663b4abb074621bccadabb2e63ee3f9f 100644
--- a/ui/platform_window/stub/stub_window.cc
+++ b/ui/platform_window/stub/stub_window.cc
@@ -8,6 +8,13 @@
namespace ui {
+// static
+scoped_ptr<PlatformWindow> PlatformWindow::Create(
+ PlatformWindowDelegate* delegate,
+ const gfx::Rect& bounds) {
+ return new StubWindow(delegate);
+}
+
StubWindow::StubWindow(PlatformWindowDelegate* delegate) : delegate_(delegate) {
delegate_->OnAcceleratedWidgetAvailable(gfx::kNullAcceleratedWidget, 1.f);
}

Powered by Google App Engine
This is Rietveld 408576698