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

Side by Side Diff: mash/task_viewer/task_viewer_application_delegate.h

Issue 1675083002: Rename ApplicationDelegate to ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
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"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "mojo/services/tracing/public/cpp/tracing_impl.h" 13 #include "mojo/services/tracing/public/cpp/tracing_impl.h"
14 #include "mojo/shell/public/cpp/application_delegate.h" 14 #include "mojo/shell/public/cpp/shell_client.h"
15
16 namespace mojo {
17 class ApplicationConnection;
18 }
19 15
20 namespace views { 16 namespace views {
21 class AuraInit; 17 class AuraInit;
22 } 18 }
23 19
24 namespace mash { 20 namespace mash {
25 namespace task_viewer { 21 namespace task_viewer {
26 22
27 class TaskViewerApplicationDelegate : public mojo::ApplicationDelegate { 23 class TaskViewerApplicationDelegate : public mojo::ShellClient {
28 public: 24 public:
29 TaskViewerApplicationDelegate(); 25 TaskViewerApplicationDelegate();
30 ~TaskViewerApplicationDelegate() override; 26 ~TaskViewerApplicationDelegate() override;
31 27
32 private: 28 private:
33 // mojo::ApplicationDelegate: 29 // mojo::ShellClient:
34 void Initialize(mojo::Shell* shell, const std::string& url, 30 void Initialize(mojo::Shell* shell, const std::string& url,
35 uint32_t id) override; 31 uint32_t id) override;
36 32
37 mojo::TracingImpl tracing_; 33 mojo::TracingImpl tracing_;
38 scoped_ptr<views::AuraInit> aura_init_; 34 scoped_ptr<views::AuraInit> aura_init_;
39 35
40 DISALLOW_COPY_AND_ASSIGN(TaskViewerApplicationDelegate); 36 DISALLOW_COPY_AND_ASSIGN(TaskViewerApplicationDelegate);
41 }; 37 };
42 38
43 } // namespace task_viewer 39 } // namespace task_viewer
44 } // namespace mash 40 } // namespace mash
45 41
46 #endif // MASH_TASK_VIEWER_TASK_VIEWER_APPLICATION_DELEGATE_H_ 42 #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