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

Side by Side Diff: mash/example/window_type_launcher/window_type_launcher.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_EXAMPLE_WINDOW_TYPE_LAUNCHER_WINDOW_TYPE_LAUNCHER_H_ 5 #ifndef MASH_EXAMPLE_WINDOW_TYPE_LAUNCHER_WINDOW_TYPE_LAUNCHER_H_
6 #define MASH_EXAMPLE_WINDOW_TYPE_LAUNCHER_WINDOW_TYPE_LAUNCHER_H_ 6 #define MASH_EXAMPLE_WINDOW_TYPE_LAUNCHER_WINDOW_TYPE_LAUNCHER_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/shell/public/cpp/application_delegate.h" 10 #include "mojo/shell/public/cpp/shell_client.h"
11 11
12 namespace views { 12 namespace views {
13 class AuraInit; 13 class AuraInit;
14 } 14 }
15 15
16 class WindowTypeLauncher : public mojo::ApplicationDelegate { 16 class WindowTypeLauncher : public mojo::ShellClient {
17 public: 17 public:
18 WindowTypeLauncher(); 18 WindowTypeLauncher();
19 ~WindowTypeLauncher() override; 19 ~WindowTypeLauncher() override;
20 20
21 private: 21 private:
22 // ApplicationDelegate: 22 // mojo::ShellClient:
23 void Initialize(mojo::Shell* shell, const std::string& url, 23 void Initialize(mojo::Shell* shell, const std::string& url,
24 uint32_t id) override; 24 uint32_t id) override;
25 bool AcceptConnection(
26 mojo::ApplicationConnection* connection) override;
27 25
28 scoped_ptr<views::AuraInit> aura_init_; 26 scoped_ptr<views::AuraInit> aura_init_;
29 27
30 DISALLOW_COPY_AND_ASSIGN(WindowTypeLauncher); 28 DISALLOW_COPY_AND_ASSIGN(WindowTypeLauncher);
31 }; 29 };
32 30
33 #endif // MASH_EXAMPLE_WINDOW_TYPE_LAUNCHER_WINDOW_TYPE_LAUNCHER_H_ 31 #endif // MASH_EXAMPLE_WINDOW_TYPE_LAUNCHER_WINDOW_TYPE_LAUNCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698