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

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

Issue 8956050: Rename TabContents::controller() to GetController and put it into the WebContents interface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/browser_navigator.cc ('k') | chrome/browser/ui/cocoa/constrained_html_delegate_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/applescript/tab_applescript.mm
===================================================================
--- chrome/browser/ui/cocoa/applescript/tab_applescript.mm (revision 115228)
+++ chrome/browser/ui/cocoa/applescript/tab_applescript.mm (working copy)
@@ -187,7 +187,7 @@
}
NavigationEntry* entry =
- tabContents_->tab_contents()->controller().GetActiveEntry();
+ tabContents_->tab_contents()->GetController().GetActiveEntry();
if (!entry) {
return nil;
}
@@ -211,7 +211,7 @@
}
NavigationEntry* entry =
- tabContents_->tab_contents()->controller().GetActiveEntry();
+ tabContents_->tab_contents()->GetController().GetActiveEntry();
if (!entry)
return;
@@ -226,7 +226,7 @@
- (NSString*)title {
NavigationEntry* entry =
- tabContents_->tab_contents()->controller().GetActiveEntry();
+ tabContents_->tab_contents()->GetController().GetActiveEntry();
if (!entry)
return nil;
@@ -305,21 +305,21 @@
- (void)handlesGoBackScriptCommand:(NSScriptCommand*)command {
NavigationController& navigationController =
- tabContents_->tab_contents()->controller();
+ tabContents_->tab_contents()->GetController();
if (navigationController.CanGoBack())
navigationController.GoBack();
}
- (void)handlesGoForwardScriptCommand:(NSScriptCommand*)command {
NavigationController& navigationController =
- tabContents_->tab_contents()->controller();
+ tabContents_->tab_contents()->GetController();
if (navigationController.CanGoForward())
navigationController.GoForward();
}
- (void)handlesReloadScriptCommand:(NSScriptCommand*)command {
NavigationController& navigationController =
- tabContents_->tab_contents()->controller();
+ tabContents_->tab_contents()->GetController();
const bool checkForRepost = true;
navigationController.Reload(checkForRepost);
}
@@ -388,7 +388,7 @@
- (void)handlesViewSourceScriptCommand:(NSScriptCommand*)command {
NavigationEntry* entry =
- tabContents_->tab_contents()->controller().GetLastCommittedEntry();
+ tabContents_->tab_contents()->GetController().GetLastCommittedEntry();
if (entry) {
tabContents_->tab_contents()->OpenURL(
GURL(chrome::kViewSourceScheme + std::string(":") +
« no previous file with comments | « chrome/browser/ui/browser_navigator.cc ('k') | chrome/browser/ui/cocoa/constrained_html_delegate_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698