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

Unified Diff: components/sad_tab/cocoa/sad_tab_controller.mm

Issue 543663002: Componentize sad_tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix url_constants.cc Created 6 years, 3 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
Index: components/sad_tab/cocoa/sad_tab_controller.mm
diff --git a/chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.mm b/components/sad_tab/cocoa/sad_tab_controller.mm
similarity index 85%
rename from chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.mm
rename to components/sad_tab/cocoa/sad_tab_controller.mm
index 70732b05f84bd06fac0299436f0552857e792739..2a123664536489859c2f645c2f979141368e6839 100644
--- a/chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.mm
+++ b/components/sad_tab/cocoa/sad_tab_controller.mm
@@ -2,16 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h"
+#include "components/sad_tab/cocoa/sad_tab_controller.h"
#include "base/mac/bundle_locations.h"
#include "base/mac/mac_util.h"
-#import "chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h"
+#import "components/sad_tab/cocoa/sad_tab_view.h"
#include "content/public/browser/web_contents.h"
-namespace chrome {
+namespace sad_tab {
-SadTab* SadTab::Create(content::WebContents* web_contents, SadTabKind kind) {
+SadTab* SadTab::Create(content::WebContents* web_contents,
+ SadTabKind kind,
+ SadTabClient* client) {
return new SadTabCocoa(web_contents);
}
@@ -31,7 +33,7 @@ void SadTabCocoa::Close() {
[[sad_tab_controller_ view] removeFromSuperview];
}
-} // namespace chrome
+} // namespace sad_tab
@implementation SadTabController
« no previous file with comments | « components/sad_tab/cocoa/sad_tab_controller.h ('k') | components/sad_tab/cocoa/sad_tab_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698