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

Side by Side Diff: mash/example/views_examples/views_examples_application_delegate.h

Issue 2179023004: Make Service own ServiceContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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 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 #ifndef MASH_EXAMPLE_VIEWS_EXAMPLES_APPLICATION_DELEGATE_H_ 5 #ifndef MASH_EXAMPLE_VIEWS_EXAMPLES_APPLICATION_DELEGATE_H_
6 #define MASH_EXAMPLE_VIEWS_EXAMPLES_APPLICATION_DELEGATE_H_ 6 #define MASH_EXAMPLE_VIEWS_EXAMPLES_APPLICATION_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 10 matching lines...) Expand all
21 class ViewsExamplesApplicationDelegate 21 class ViewsExamplesApplicationDelegate
22 : public shell::Service, 22 : public shell::Service,
23 public mash::mojom::Launchable, 23 public mash::mojom::Launchable,
24 public shell::InterfaceFactory<mash::mojom::Launchable> { 24 public shell::InterfaceFactory<mash::mojom::Launchable> {
25 public: 25 public:
26 ViewsExamplesApplicationDelegate(); 26 ViewsExamplesApplicationDelegate();
27 ~ViewsExamplesApplicationDelegate() override; 27 ~ViewsExamplesApplicationDelegate() override;
28 28
29 private: 29 private:
30 // shell::Service: 30 // shell::Service:
31 void OnStart(shell::Connector* connector, 31 void OnStart(const shell::Identity& identity) override;
32 const shell::Identity& identity,
33 uint32_t id) override;
34 bool OnConnect(shell::Connection* connection) override; 32 bool OnConnect(shell::Connection* connection) override;
35 33
36 // mash::mojom::Launchable: 34 // mash::mojom::Launchable:
37 void Launch(uint32_t what, mash::mojom::LaunchMode how) override; 35 void Launch(uint32_t what, mash::mojom::LaunchMode how) override;
38 36
39 // shell::InterfaceFactory<mash::mojom::Launchable>: 37 // shell::InterfaceFactory<mash::mojom::Launchable>:
40 void Create(const shell::Identity& remote_identity, 38 void Create(const shell::Identity& remote_identity,
41 mash::mojom::LaunchableRequest request) override; 39 mash::mojom::LaunchableRequest request) override;
42 40
43 mojo::BindingSet<mash::mojom::Launchable> bindings_; 41 mojo::BindingSet<mash::mojom::Launchable> bindings_;
44 42
45 mojo::TracingImpl tracing_; 43 mojo::TracingImpl tracing_;
46 std::unique_ptr<views::AuraInit> aura_init_; 44 std::unique_ptr<views::AuraInit> aura_init_;
47 std::unique_ptr<views::WindowManagerConnection> window_manager_connection_; 45 std::unique_ptr<views::WindowManagerConnection> window_manager_connection_;
48 46
49 DISALLOW_COPY_AND_ASSIGN(ViewsExamplesApplicationDelegate); 47 DISALLOW_COPY_AND_ASSIGN(ViewsExamplesApplicationDelegate);
50 }; 48 };
51 49
52 #endif // MASH_EXAMPLE_VIEWS_EXAMPLES_APPLICATION_DELEGATE_H_ 50 #endif // MASH_EXAMPLE_VIEWS_EXAMPLES_APPLICATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « mash/catalog_viewer/catalog_viewer.cc ('k') | mash/example/views_examples/views_examples_application_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698