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

Unified Diff: ios/chrome/browser/ui/key_commands_provider.h

Issue 2631733002: Avoid sending IDC_BACK/FORWARD when back/forward is not possible (Closed)
Patch Set: Rebased Created 3 years, 11 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 | « ios/chrome/browser/ui/browser_view_controller.mm ('k') | ios/chrome/browser/ui/key_commands_provider.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/key_commands_provider.h
diff --git a/ios/chrome/browser/ui/key_commands_provider.h b/ios/chrome/browser/ui/key_commands_provider.h
index f8aebb7699f37017e2b04fe5129d3de80ed9323e..cc914eeb827d47e57296225297fba5b7fe98f64e 100644
--- a/ios/chrome/browser/ui/key_commands_provider.h
+++ b/ios/chrome/browser/ui/key_commands_provider.h
@@ -17,6 +17,12 @@
// Returns the current number of tabs.
- (NSUInteger)tabsCount;
+// Whether navigation to the previous page is available.
+- (BOOL)canGoBack;
+
+// Whether navigation to the next page is available.
+- (BOOL)canGoForward;
+
#pragma mark Call for action
// Executes a Chrome command. |sender| must implement the |-tag| method and
« no previous file with comments | « ios/chrome/browser/ui/browser_view_controller.mm ('k') | ios/chrome/browser/ui/key_commands_provider.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698