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

Side by Side Diff: mash/shelf/shelf_application.h

Issue 1674903003: Extract shell methods from ApplicationImpl into a base class, and pass this to Initialize() instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojom
Patch Set: . Created 4 years, 10 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/screenlock/screenlock.cc ('k') | mash/shelf/shelf_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 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_SHELF_SHELF_APPLICATION_H_ 5 #ifndef MASH_SHELF_SHELF_APPLICATION_H_
6 #define MASH_SHELF_SHELF_APPLICATION_H_ 6 #define MASH_SHELF_SHELF_APPLICATION_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "mojo/services/tracing/public/cpp/tracing_impl.h" 10 #include "mojo/services/tracing/public/cpp/tracing_impl.h"
11 #include "mojo/shell/public/cpp/application_delegate.h" 11 #include "mojo/shell/public/cpp/application_delegate.h"
12 12
13 namespace views { 13 namespace views {
14 class AuraInit; 14 class AuraInit;
15 } 15 }
16 16
17 namespace mash { 17 namespace mash {
18 namespace shelf { 18 namespace shelf {
19 19
20 class ShelfApplication : public mojo::ApplicationDelegate { 20 class ShelfApplication : public mojo::ApplicationDelegate {
21 public: 21 public:
22 ShelfApplication(); 22 ShelfApplication();
23 ~ShelfApplication() override; 23 ~ShelfApplication() override;
24 24
25 private: 25 private:
26 // mojo::ApplicationDelegate: 26 // mojo::ApplicationDelegate:
27 void Initialize(mojo::ApplicationImpl* app) override; 27 void Initialize(mojo::Shell* shell, const std::string& url,
28 bool AcceptConnection( 28 uint32_t id) override;
29 mojo::ApplicationConnection* connection) override;
30 29
31 mojo::TracingImpl tracing_; 30 mojo::TracingImpl tracing_;
32 31
33 scoped_ptr<views::AuraInit> aura_init_; 32 scoped_ptr<views::AuraInit> aura_init_;
34 33
35 DISALLOW_COPY_AND_ASSIGN(ShelfApplication); 34 DISALLOW_COPY_AND_ASSIGN(ShelfApplication);
36 }; 35 };
37 36
38 } // namespace shelf 37 } // namespace shelf
39 } // namespace mash 38 } // namespace mash
40 39
41 #endif // MASH_SHELF_SHELF_APPLICATION_H_ 40 #endif // MASH_SHELF_SHELF_APPLICATION_H_
OLDNEW
« no previous file with comments | « mash/screenlock/screenlock.cc ('k') | mash/shelf/shelf_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698