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

Side by Side Diff: ui/ozone/ozone_platform.cc

Issue 132543002: Not for review. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "ui/ozone/ozone_platform.h" 7 #include "ui/ozone/ozone_platform.h"
8 #include "ui/ozone/ozone_platform_list.h" 8 #include "ui/ozone/ozone_platform_list.h"
9 #include "ui/ozone/ozone_switches.h" 9 #include "ui/ozone/ozone_switches.h"
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 if (instance_) 49 if (instance_)
50 return; 50 return;
51 51
52 instance_ = CreatePlatform(GetRequestedPlatform()); 52 instance_ = CreatePlatform(GetRequestedPlatform());
53 53
54 // Inject ozone interfaces. 54 // Inject ozone interfaces.
55 gfx::SurfaceFactoryOzone::SetInstance(instance_->GetSurfaceFactoryOzone()); 55 gfx::SurfaceFactoryOzone::SetInstance(instance_->GetSurfaceFactoryOzone());
56 ui::EventFactoryOzone::SetInstance(instance_->GetEventFactoryOzone()); 56 ui::EventFactoryOzone::SetInstance(instance_->GetEventFactoryOzone());
57 ui::InputMethodContextFactoryOzone::SetInstance( 57 ui::InputMethodContextFactoryOzone::SetInstance(
58 instance_->GetInputMethodContextFactoryOzone()); 58 instance_->GetInputMethodContextFactoryOzone());
59 gfx::OverlayHALOzone::SetInstance(instance_->GetOverlayHALOzone());
59 } 60 }
60 61
61 // static 62 // static
62 OzonePlatform* OzonePlatform::instance_; 63 OzonePlatform* OzonePlatform::instance_;
63 64
64 } // namespace ui 65 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698