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

Side by Side Diff: mojo/services/native_viewport/native_viewport_service.cc

Issue 293033003: Hook up platform events in Mojo shell on Linux desktop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: whitespace Created 6 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
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 "mojo/services/native_viewport/native_viewport_service.h" 5 #include "mojo/services/native_viewport/native_viewport_service.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "mojo/public/cpp/bindings/allocation_scope.h" 10 #include "mojo/public/cpp/bindings/allocation_scope.h"
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 } // namespace mojo 185 } // namespace mojo
186 186
187 187
188 MOJO_NATIVE_VIEWPORT_EXPORT mojo::Application* 188 MOJO_NATIVE_VIEWPORT_EXPORT mojo::Application*
189 CreateNativeViewportService(mojo::shell::Context* context, 189 CreateNativeViewportService(mojo::shell::Context* context,
190 mojo::ScopedMessagePipeHandle shell_handle) { 190 mojo::ScopedMessagePipeHandle shell_handle) {
191 mojo::Application* app = new mojo::Application(shell_handle.Pass()); 191 mojo::Application* app = new mojo::Application(shell_handle.Pass());
192 app->AddService<mojo::services::NativeViewportImpl>(context); 192 app->AddService<mojo::services::NativeViewportImpl>(context);
193 return app; 193 return app;
194 } 194 }
195
OLDNEW
« no previous file with comments | « mojo/service_manager/background_service_loader.cc ('k') | mojo/services/native_viewport/native_viewport_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698