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

Unified Diff: chrome/browser/ui/ash/chrome_new_window_client.h

Issue 2434463004: mash: Move directly linked NewWindowDelegate to mojom::NewWindowClient. (Closed)
Patch Set: Rebase to ToT Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/ash/chrome_new_window_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/chrome_new_window_client.h
diff --git a/chrome/browser/ui/ash/chrome_new_window_delegate.h b/chrome/browser/ui/ash/chrome_new_window_client.h
similarity index 56%
rename from chrome/browser/ui/ash/chrome_new_window_delegate.h
rename to chrome/browser/ui/ash/chrome_new_window_client.h
index 16701249310b9cebcb0c7f17f101bc58cdd743da..3684d4a26d48940a01f1bd1d9161ca8cfd6fd219 100644
--- a/chrome/browser/ui/ash/chrome_new_window_delegate.h
+++ b/chrome/browser/ui/ash/chrome_new_window_client.h
@@ -2,23 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_ASH_CHROME_NEW_WINDOW_DELEGATE_H_
-#define CHROME_BROWSER_UI_ASH_CHROME_NEW_WINDOW_DELEGATE_H_
+#ifndef CHROME_BROWSER_UI_ASH_CHROME_NEW_WINDOW_CLIENT_H_
+#define CHROME_BROWSER_UI_ASH_CHROME_NEW_WINDOW_CLIENT_H_
#include <memory>
-#include "ash/common/new_window_delegate.h"
-#include "base/compiler_specific.h"
+#include "ash/public/interfaces/new_window.mojom.h"
#include "base/macros.h"
class Browser;
-class ChromeNewWindowDelegate : public ash::NewWindowDelegate {
+class ChromeNewWindowClient : public ash::mojom::NewWindowClient {
public:
- ChromeNewWindowDelegate();
- ~ChromeNewWindowDelegate() override;
+ ChromeNewWindowClient();
+ ~ChromeNewWindowClient() override;
- // Overridden from ash::NewWindowDelegate:
+ // Overridden from ash::mojom::NewWindowClient:
void NewTab() override;
void NewWindow(bool incognito) override;
void OpenFileManager() override;
@@ -34,7 +33,7 @@ class ChromeNewWindowDelegate : public ash::NewWindowDelegate {
std::unique_ptr<TabRestoreHelper> tab_restore_helper_;
- DISALLOW_COPY_AND_ASSIGN(ChromeNewWindowDelegate);
+ DISALLOW_COPY_AND_ASSIGN(ChromeNewWindowClient);
};
-#endif // CHROME_BROWSER_UI_ASH_CHROME_NEW_WINDOW_DELEGATE_H_
+#endif // CHROME_BROWSER_UI_ASH_CHROME_NEW_WINDOW_CLIENT_H_
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('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