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

Side by Side Diff: mojo/services/surfaces/surfaces_service_application.cc

Issue 413353002: Remove extraneous namespaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review nits and merge Created 6 years, 5 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 | « mojo/services/surfaces/surfaces_service_application.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/services/surfaces/surfaces_service_application.h" 5 #include "mojo/services/surfaces/surfaces_service_application.h"
6 6
7 #include "cc/surfaces/display.h" 7 #include "cc/surfaces/display.h"
8 8
9 namespace mojo { 9 namespace mojo {
10 namespace surfaces {
11 10
12 SurfacesServiceApplication::SurfacesServiceApplication() 11 SurfacesServiceApplication::SurfacesServiceApplication()
13 : next_id_namespace_(1u), display_(NULL) { 12 : next_id_namespace_(1u), display_(NULL) {
14 } 13 }
15 14
16 SurfacesServiceApplication::~SurfacesServiceApplication() { 15 SurfacesServiceApplication::~SurfacesServiceApplication() {
17 } 16 }
18 17
19 bool SurfacesServiceApplication::ConfigureIncomingConnection( 18 bool SurfacesServiceApplication::ConfigureIncomingConnection(
20 ApplicationConnection* connection) { 19 ApplicationConnection* connection) {
21 connection->AddService(this); 20 connection->AddService(this);
22 return true; 21 return true;
23 } 22 }
24 23
25 void SurfacesServiceApplication::Create(ApplicationConnection* connection, 24 void SurfacesServiceApplication::Create(ApplicationConnection* connection,
26 InterfaceRequest<Surface> request) { 25 InterfaceRequest<Surface> request) {
27 BindToRequest(new SurfacesImpl(&manager_, next_id_namespace_++, this), 26 BindToRequest(new SurfacesImpl(&manager_, next_id_namespace_++, this),
28 &request); 27 &request);
29 } 28 }
30 29
31 void SurfacesServiceApplication::FrameSubmitted() { 30 void SurfacesServiceApplication::FrameSubmitted() {
32 if (display_) 31 if (display_)
33 display_->Draw(); 32 display_->Draw();
34 } 33 }
35 34
36 void SurfacesServiceApplication::SetDisplay(cc::Display* display) { 35 void SurfacesServiceApplication::SetDisplay(cc::Display* display) {
37 display_ = display; 36 display_ = display;
38 } 37 }
39 38
40 } // namespace surfaces
41
42 // static 39 // static
43 ApplicationDelegate* ApplicationDelegate::Create() { 40 ApplicationDelegate* ApplicationDelegate::Create() {
44 return new surfaces::SurfacesServiceApplication; 41 return new SurfacesServiceApplication;
45 } 42 }
46 43
47 } // namespace mojo 44 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/surfaces/surfaces_service_application.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698