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

Side by Side Diff: examples/browser/browser.cc

Issue 1391243003: Move //mojo/services/X/public/... to //mojo/services/X/... (part 4). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_3-x-no_public_2-x-no_public_1
Patch Set: copyright header Created 5 years, 2 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
« no previous file with comments | « examples/browser/BUILD.gn ('k') | examples/embedded_app/BUILD.gn » ('j') | 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 "base/macros.h" 5 #include "base/macros.h"
6 #include "base/strings/string_util.h" 6 #include "base/strings/string_util.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "examples/browser/browser_host.mojom.h" 8 #include "examples/browser/browser_host.mojom.h"
9 #include "examples/window_manager/window_manager.mojom.h" 9 #include "examples/window_manager/window_manager.mojom.h"
10 #include "mojo/application/application_runner_chromium.h" 10 #include "mojo/application/application_runner_chromium.h"
11 #include "mojo/converters/geometry/geometry_type_converters.h" 11 #include "mojo/converters/geometry/geometry_type_converters.h"
12 #include "mojo/public/c/system/main.h" 12 #include "mojo/public/c/system/main.h"
13 #include "mojo/public/cpp/application/application_connection.h" 13 #include "mojo/public/cpp/application/application_connection.h"
14 #include "mojo/public/cpp/application/application_delegate.h" 14 #include "mojo/public/cpp/application/application_delegate.h"
15 #include "mojo/public/cpp/application/application_impl.h" 15 #include "mojo/public/cpp/application/application_impl.h"
16 #include "mojo/public/cpp/application/connect.h" 16 #include "mojo/public/cpp/application/connect.h"
17 #include "mojo/public/cpp/application/service_provider_impl.h" 17 #include "mojo/public/cpp/application/service_provider_impl.h"
18 #include "mojo/services/navigation/interfaces/navigation.mojom.h" 18 #include "mojo/services/navigation/interfaces/navigation.mojom.h"
19 #include "mojo/services/view_manager/public/cpp/view.h" 19 #include "mojo/services/view_manager/cpp/view.h"
20 #include "mojo/services/view_manager/public/cpp/view_manager.h" 20 #include "mojo/services/view_manager/cpp/view_manager.h"
21 #include "mojo/services/view_manager/public/cpp/view_manager_client_factory.h" 21 #include "mojo/services/view_manager/cpp/view_manager_client_factory.h"
22 #include "mojo/services/view_manager/public/cpp/view_manager_delegate.h" 22 #include "mojo/services/view_manager/cpp/view_manager_delegate.h"
23 #include "mojo/services/view_manager/public/cpp/view_observer.h" 23 #include "mojo/services/view_manager/cpp/view_observer.h"
24 #include "url/gurl.h" 24 #include "url/gurl.h"
25 25
26 namespace mojo { 26 namespace mojo {
27 namespace examples { 27 namespace examples {
28 28
29 // This is the basics of creating a views widget with a textfield. 29 // This is the basics of creating a views widget with a textfield.
30 // TODO: cleanup! 30 // TODO: cleanup!
31 class Browser : public ApplicationDelegate, 31 class Browser : public ApplicationDelegate,
32 public ViewManagerDelegate, 32 public ViewManagerDelegate,
33 public ViewObserver, 33 public ViewObserver,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 DISALLOW_COPY_AND_ASSIGN(Browser); 129 DISALLOW_COPY_AND_ASSIGN(Browser);
130 }; 130 };
131 131
132 } // namespace examples 132 } // namespace examples
133 } // namespace mojo 133 } // namespace mojo
134 134
135 MojoResult MojoMain(MojoHandle application_request) { 135 MojoResult MojoMain(MojoHandle application_request) {
136 mojo::ApplicationRunnerChromium runner(new mojo::examples::Browser); 136 mojo::ApplicationRunnerChromium runner(new mojo::examples::Browser);
137 return runner.Run(application_request); 137 return runner.Run(application_request);
138 } 138 }
OLDNEW
« no previous file with comments | « examples/browser/BUILD.gn ('k') | examples/embedded_app/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698