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

Unified Diff: ui/base/ozone/surface_factory_ozone.cc

Issue 13886018: Add a factory and defines for native Linux surfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: additional proofreading Created 7 years, 7 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/base/ozone/surface_factory_ozone.cc
diff --git a/ui/base/ozone/surface_factory_ozone.cc b/ui/base/ozone/surface_factory_ozone.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7dc7ab36606af98c0f00330d7d959dd478e7a9a7
--- /dev/null
+++ b/ui/base/ozone/surface_factory_ozone.cc
@@ -0,0 +1,32 @@
+// Copyright (c) 2013 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/base/ozone/surface_factory_ozone.h"
+
+#include "base/memory/scoped_ptr.h"
+
+namespace ui {
+
+// Implementation.
+scoped_ptr<SurfaceFactoryOzone> impl_;
+
+SurfaceFactoryOzone::SurfaceFactoryOzone() {
+}
+
+SurfaceFactoryOzone::~SurfaceFactoryOzone() {
+}
+
+SurfaceFactoryOzone* SurfaceFactoryOzone::GetInstance() {
+ return impl_.get();
+ }
+
+void SurfaceFactoryOzone::SetDelegate(SurfaceFactoryOzone* impl) {
+ impl_.reset(impl);
+}
+
+const char* SurfaceFactoryOzone::DefaultDisplaySpec() {
+ return getenv("ASH_DISPLAY_SPEC") ?: "720x1280*2";
+}
+
+} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698