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

Unified Diff: chrome/browser/ui/cocoa/applescript/window_applescript.mm

Issue 10534093: TabContentsWrapper -> TabContents, part 37. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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: chrome/browser/ui/cocoa/applescript/window_applescript.mm
diff --git a/chrome/browser/ui/cocoa/applescript/window_applescript.mm b/chrome/browser/ui/cocoa/applescript/window_applescript.mm
index 9270caebf8bde6bffb2ddc457310803e53d82a83..e94e7950774c90e40e549edbbca0d755a2568f0b 100644
--- a/chrome/browser/ui/cocoa/applescript/window_applescript.mm
+++ b/chrome/browser/ui/cocoa/applescript/window_applescript.mm
@@ -18,7 +18,7 @@
#include "chrome/browser/ui/cocoa/applescript/constants_applescript.h"
#include "chrome/browser/ui/cocoa/applescript/error_applescript.h"
#import "chrome/browser/ui/cocoa/applescript/tab_applescript.h"
-#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
+#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/web_contents.h"
@@ -138,7 +138,7 @@
- (TabAppleScript*)activeTab {
TabAppleScript* currentTab =
[[[TabAppleScript alloc]
- initWithTabContent:browser_->GetSelectedTabContentsWrapper()]
+ initWithTabContent:browser_->GetActiveTabContents()]
autorelease];
[currentTab setContainer:self
property:AppleScript::kTabsProperty];
@@ -151,7 +151,7 @@
for (int i = 0; i < browser_->tab_count(); ++i) {
// Check to see if tab is closing.
- TabContentsWrapper* tab_contents = browser_->GetTabContentsWrapperAt(i);
+ TabContents* tab_contents = browser_->GetTabContentsAt(i);
if (tab_contents->in_destructor()) {
continue;
}
@@ -173,7 +173,7 @@
// Set how long it takes a tab to be created.
base::TimeTicks newTabStartTime = base::TimeTicks::Now();
- TabContentsWrapper* contents =
+ TabContents* contents =
browser_->AddSelectedTabWithURL(GURL(chrome::kChromeUINewTabURL),
content::PAGE_TRANSITION_TYPED);
contents->web_contents()->SetNewTabStartTime(newTabStartTime);
« no previous file with comments | « chrome/browser/ui/cocoa/applescript/tab_applescript.mm ('k') | chrome/browser/ui/cocoa/base_bubble_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698