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

Side by Side 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: fixed clang build issue 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/base/ozone/surface_factory_ozone.h ('k') | ui/gfx/native_widget_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 #include "ui/base/ozone/surface_factory_ozone.h"
6
7 #include "base/memory/scoped_ptr.h"
8
9 namespace ui {
10
11 // Implementation.
12 scoped_ptr<SurfaceFactoryOzone> impl_;
sky 2013/05/23 21:21:32 style guide says no static initializers.
rjkroege 2013/05/23 23:34:09 Done: now Lazy.
13
14 SurfaceFactoryOzone::SurfaceFactoryOzone() {
15 }
16
17 SurfaceFactoryOzone::~SurfaceFactoryOzone() {
18 }
19
20 SurfaceFactoryOzone* SurfaceFactoryOzone::GetInstance() {
21 return impl_.get();
22 }
23
24 void SurfaceFactoryOzone::SetInstance(SurfaceFactoryOzone* impl) {
25 impl_.reset(impl);
26 }
27
28 const char* SurfaceFactoryOzone::DefaultDisplaySpec() {
29 return getenv("ASH_DISPLAY_SPEC") ?: "720x1280*2";
sky 2013/05/23 21:21:32 Does this do what you want? And the spacing is off
rjkroege 2013/05/23 23:34:09 Done.
30 }
31
32 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/ozone/surface_factory_ozone.h ('k') | ui/gfx/native_widget_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698