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

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

Issue 1394303004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 3). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_2-x-no_public_1
Patch Set: 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/notification_generator/BUILD.gn ('k') | examples/surfaces_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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/bind.h" 5 #include "base/bind.h"
6 #include "base/macros.h" 6 #include "base/macros.h"
7 #include "mojo/application/application_runner_chromium.h" 7 #include "mojo/application/application_runner_chromium.h"
8 #include "mojo/common/binding_set.h" 8 #include "mojo/common/binding_set.h"
9 #include "mojo/public/c/system/main.h" 9 #include "mojo/public/c/system/main.h"
10 #include "mojo/public/cpp/application/application_delegate.h" 10 #include "mojo/public/cpp/application/application_delegate.h"
11 #include "mojo/public/cpp/application/application_impl.h" 11 #include "mojo/public/cpp/application/application_impl.h"
12 #include "mojo/services/notifications/public/interfaces/notifications.mojom.h" 12 #include "mojo/services/notifications/interfaces/notifications.mojom.h"
13 13
14 namespace examples { 14 namespace examples {
15 15
16 static const base::TimeDelta kDefaultMessageDelay = 16 static const base::TimeDelta kDefaultMessageDelay =
17 base::TimeDelta::FromMilliseconds(3000); 17 base::TimeDelta::FromMilliseconds(3000);
18 18
19 class NotificationGeneratorDelegate : public mojo::ApplicationDelegate, 19 class NotificationGeneratorDelegate : public mojo::ApplicationDelegate,
20 public notifications::NotificationClient { 20 public notifications::NotificationClient {
21 public: 21 public:
22 NotificationGeneratorDelegate() {} 22 NotificationGeneratorDelegate() {}
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 DISALLOW_COPY_AND_ASSIGN(NotificationGeneratorDelegate); 115 DISALLOW_COPY_AND_ASSIGN(NotificationGeneratorDelegate);
116 }; 116 };
117 117
118 } // namespace examples 118 } // namespace examples
119 119
120 MojoResult MojoMain(MojoHandle application_request) { 120 MojoResult MojoMain(MojoHandle application_request) {
121 mojo::ApplicationRunnerChromium runner( 121 mojo::ApplicationRunnerChromium runner(
122 new examples::NotificationGeneratorDelegate); 122 new examples::NotificationGeneratorDelegate);
123 return runner.Run(application_request); 123 return runner.Run(application_request);
124 } 124 }
OLDNEW
« no previous file with comments | « examples/notification_generator/BUILD.gn ('k') | examples/surfaces_app/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698