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

Side by Side Diff: mash/quick_launch/quick_launch_application.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
« no previous file with comments | « mash/login/login.cc ('k') | mash/quick_launch/quick_launch_application.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_QUICK_LAUNCH_QUICK_LAUNCH_APPLICATION_H_ 5 #ifndef MASH_QUICK_LAUNCH_QUICK_LAUNCH_APPLICATION_H_
6 #define MASH_QUICK_LAUNCH_QUICK_LAUNCH_APPLICATION_H_ 6 #define MASH_QUICK_LAUNCH_QUICK_LAUNCH_APPLICATION_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 16 matching lines...) Expand all
27 public mojom::Launchable, 27 public mojom::Launchable,
28 public shell::InterfaceFactory<mojom::Launchable> { 28 public shell::InterfaceFactory<mojom::Launchable> {
29 public: 29 public:
30 QuickLaunchApplication(); 30 QuickLaunchApplication();
31 ~QuickLaunchApplication() override; 31 ~QuickLaunchApplication() override;
32 32
33 void RemoveWindow(views::Widget* window); 33 void RemoveWindow(views::Widget* window);
34 34
35 private: 35 private:
36 // shell::Service: 36 // shell::Service:
37 void OnStart(shell::Connector* connector, 37 void OnStart(const shell::Identity& identity) override;
38 const shell::Identity& identity,
39 uint32_t id) override;
40 bool OnConnect(shell::Connection* connection) override; 38 bool OnConnect(shell::Connection* connection) override;
41 39
42 // mojom::Launchable: 40 // mojom::Launchable:
43 void Launch(uint32_t what, mojom::LaunchMode how) override; 41 void Launch(uint32_t what, mojom::LaunchMode how) override;
44 42
45 // shell::InterfaceFactory<mojom::Launchable>: 43 // shell::InterfaceFactory<mojom::Launchable>:
46 void Create(const shell::Identity& remote_identity, 44 void Create(const shell::Identity& remote_identity,
47 mojom::LaunchableRequest request) override; 45 mojom::LaunchableRequest request) override;
48 46
49 shell::Connector* connector_ = nullptr;
50 mojo::BindingSet<mojom::Launchable> bindings_; 47 mojo::BindingSet<mojom::Launchable> bindings_;
51 std::vector<views::Widget*> windows_; 48 std::vector<views::Widget*> windows_;
52 49
53 mojo::TracingImpl tracing_; 50 mojo::TracingImpl tracing_;
54 std::unique_ptr<views::AuraInit> aura_init_; 51 std::unique_ptr<views::AuraInit> aura_init_;
55 std::unique_ptr<views::WindowManagerConnection> window_manager_connection_; 52 std::unique_ptr<views::WindowManagerConnection> window_manager_connection_;
56 53
57 DISALLOW_COPY_AND_ASSIGN(QuickLaunchApplication); 54 DISALLOW_COPY_AND_ASSIGN(QuickLaunchApplication);
58 }; 55 };
59 56
60 } // namespace quick_launch 57 } // namespace quick_launch
61 } // namespace mash 58 } // namespace mash
62 59
63 #endif // MASH_QUICK_LAUNCH_QUICK_LAUNCH_APPLICATION_H_ 60 #endif // MASH_QUICK_LAUNCH_QUICK_LAUNCH_APPLICATION_H_
OLDNEW
« no previous file with comments | « mash/login/login.cc ('k') | mash/quick_launch/quick_launch_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698