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

Side by Side Diff: chrome/browser/ui/ash/chrome_new_window_client.h

Issue 2549903002: mash: Reverse the responsibilities of the NewWindowClient. (Closed)
Patch Set: jamescook comments Created 4 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_UI_ASH_CHROME_NEW_WINDOW_CLIENT_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_CHROME_NEW_WINDOW_CLIENT_H_
6 #define CHROME_BROWSER_UI_ASH_CHROME_NEW_WINDOW_CLIENT_H_ 6 #define CHROME_BROWSER_UI_ASH_CHROME_NEW_WINDOW_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/public/interfaces/new_window.mojom.h" 10 #include "ash/public/interfaces/new_window.mojom.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "mojo/public/cpp/bindings/associated_binding.h"
12 13
13 class ChromeNewWindowClient : public ash::mojom::NewWindowClient { 14 class ChromeNewWindowClient : public ash::mojom::NewWindowClient {
14 public: 15 public:
15 ChromeNewWindowClient(); 16 ChromeNewWindowClient();
16 ~ChromeNewWindowClient() override; 17 ~ChromeNewWindowClient() override;
17 18
18 // Overridden from ash::mojom::NewWindowClient: 19 // Overridden from ash::mojom::NewWindowClient:
19 void NewTab() override; 20 void NewTab() override;
20 void NewWindow(bool incognito) override; 21 void NewWindow(bool incognito) override;
21 void OpenFileManager() override; 22 void OpenFileManager() override;
22 void OpenCrosh() override; 23 void OpenCrosh() override;
23 void OpenGetHelp() override; 24 void OpenGetHelp() override;
24 void RestoreTab() override; 25 void RestoreTab() override;
25 void ShowKeyboardOverlay() override; 26 void ShowKeyboardOverlay() override;
26 void ShowTaskManager() override; 27 void ShowTaskManager() override;
27 void OpenFeedbackPage() override; 28 void OpenFeedbackPage() override;
28 29
29 private: 30 private:
30 class TabRestoreHelper; 31 class TabRestoreHelper;
31 32
32 std::unique_ptr<TabRestoreHelper> tab_restore_helper_; 33 std::unique_ptr<TabRestoreHelper> tab_restore_helper_;
33 34
35 ash::mojom::NewWindowControllerPtr new_window_controller_;
36
37 // Binds this object to the client interface.
38 mojo::AssociatedBinding<ash::mojom::NewWindowClient> binding_;
39
34 DISALLOW_COPY_AND_ASSIGN(ChromeNewWindowClient); 40 DISALLOW_COPY_AND_ASSIGN(ChromeNewWindowClient);
35 }; 41 };
36 42
37 #endif // CHROME_BROWSER_UI_ASH_CHROME_NEW_WINDOW_CLIENT_H_ 43 #endif // CHROME_BROWSER_UI_ASH_CHROME_NEW_WINDOW_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/chrome_interface_factory.cc ('k') | chrome/browser/ui/ash/chrome_new_window_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698