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

Side by Side Diff: examples/spinning_cube/spinning_cube_app.cc

Issue 1058163002: Replaces |shell_handle| with |application_request| as the name of the parameter to MojoMain(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 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
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 <stdio.h> 5 #include <stdio.h>
6 #include <string> 6 #include <string>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "examples/spinning_cube/gles2_client_impl.h" 10 #include "examples/spinning_cube/gles2_client_impl.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 scoped_ptr<GLES2ClientImpl> gles2_client_; 80 scoped_ptr<GLES2ClientImpl> gles2_client_;
81 mojo::NativeViewportPtr viewport_; 81 mojo::NativeViewportPtr viewport_;
82 mojo::ContextProviderPtr onscreen_context_provider_; 82 mojo::ContextProviderPtr onscreen_context_provider_;
83 mojo::Binding<NativeViewportEventDispatcher> dispatcher_binding_; 83 mojo::Binding<NativeViewportEventDispatcher> dispatcher_binding_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(SpinningCubeApp); 85 DISALLOW_COPY_AND_ASSIGN(SpinningCubeApp);
86 }; 86 };
87 87
88 } // namespace examples 88 } // namespace examples
89 89
90 MojoResult MojoMain(MojoHandle shell_handle) { 90 MojoResult MojoMain(MojoHandle application_request) {
91 mojo::ApplicationRunner runner(new examples::SpinningCubeApp); 91 mojo::ApplicationRunner runner(new examples::SpinningCubeApp);
92 return runner.Run(shell_handle); 92 return runner.Run(application_request);
93 } 93 }
OLDNEW
« no previous file with comments | « examples/recursive_content_handler/recursive_content_handler.cc ('k') | examples/surfaces_app/child_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698