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

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

Issue 8983012: Get rid of content::NavigationController in cc file and use "using" instead. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 12 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/tab_applescript.mm
===================================================================
--- chrome/browser/ui/cocoa/applescript/tab_applescript.mm (revision 116288)
+++ chrome/browser/ui/cocoa/applescript/tab_applescript.mm (working copy)
@@ -26,6 +26,7 @@
#include "content/public/browser/web_contents_delegate.h"
#include "googleurl/src/gurl.h"
+using content::NavigationController;
using content::NavigationEntry;
using content::OpenURLParams;
using content::Referrer;
@@ -308,21 +309,21 @@
}
- (void)handlesGoBackScriptCommand:(NSScriptCommand*)command {
- content::NavigationController& navigationController =
+ NavigationController& navigationController =
tabContents_->tab_contents()->GetController();
if (navigationController.CanGoBack())
navigationController.GoBack();
}
- (void)handlesGoForwardScriptCommand:(NSScriptCommand*)command {
- content::NavigationController& navigationController =
+ NavigationController& navigationController =
tabContents_->tab_contents()->GetController();
if (navigationController.CanGoForward())
navigationController.GoForward();
}
- (void)handlesReloadScriptCommand:(NSScriptCommand*)command {
- content::NavigationController& navigationController =
+ NavigationController& navigationController =
tabContents_->tab_contents()->GetController();
const bool checkForRepost = true;
navigationController.Reload(checkForRepost);

Powered by Google App Engine
This is Rietveld 408576698