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

Side by Side Diff: mash/task_viewer/task_viewer_application_delegate.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
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_TASK_VIEWER_TASK_VIEWER_APPLICATION_DELEGATE_H_ 5 #ifndef MASH_TASK_VIEWER_TASK_VIEWER_APPLICATION_DELEGATE_H_
6 #define MASH_TASK_VIEWER_TASK_VIEWER_APPLICATION_DELEGATE_H_ 6 #define MASH_TASK_VIEWER_TASK_VIEWER_APPLICATION_DELEGATE_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 13 matching lines...) Expand all
24 namespace mash { 24 namespace mash {
25 namespace task_viewer { 25 namespace task_viewer {
26 26
27 class TaskViewerApplicationDelegate : public mojo::ApplicationDelegate { 27 class TaskViewerApplicationDelegate : public mojo::ApplicationDelegate {
28 public: 28 public:
29 TaskViewerApplicationDelegate(); 29 TaskViewerApplicationDelegate();
30 ~TaskViewerApplicationDelegate() override; 30 ~TaskViewerApplicationDelegate() override;
31 31
32 private: 32 private:
33 // mojo::ApplicationDelegate: 33 // mojo::ApplicationDelegate:
34 void Initialize(mojo::ApplicationImpl* app) override; 34 void Initialize(mojo::Shell* shell, const std::string& url,
35 uint32_t id) override;
35 36
36 mojo::TracingImpl tracing_; 37 mojo::TracingImpl tracing_;
37 scoped_ptr<views::AuraInit> aura_init_; 38 scoped_ptr<views::AuraInit> aura_init_;
38 39
39 DISALLOW_COPY_AND_ASSIGN(TaskViewerApplicationDelegate); 40 DISALLOW_COPY_AND_ASSIGN(TaskViewerApplicationDelegate);
40 }; 41 };
41 42
42 } // namespace task_viewer 43 } // namespace task_viewer
43 } // namespace mash 44 } // namespace mash
44 45
45 #endif // MASH_TASK_VIEWER_TASK_VIEWER_APPLICATION_DELEGATE_H_ 46 #endif // MASH_TASK_VIEWER_TASK_VIEWER_APPLICATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « mash/shell/shell_application_delegate.cc ('k') | mash/task_viewer/task_viewer_application_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698