Index: ios/clean/chrome/browser/ui/commands/find_in_page_search_commands.h |
diff --git a/ios/clean/chrome/browser/ui/commands/find_in_page_search_commands.h b/ios/clean/chrome/browser/ui/commands/find_in_page_search_commands.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d44a08e65f803d0eb0945e2bd3a9fdabaa55fc93 |
--- /dev/null |
+++ b/ios/clean/chrome/browser/ui/commands/find_in_page_search_commands.h |
@@ -0,0 +1,22 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_FIND_IN_PAGE_SEARCH_COMMANDS_H_ |
+#define IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_FIND_IN_PAGE_SEARCH_COMMANDS_H_ |
+ |
+// Command protocol for commands relating to Find In Page. |
+@protocol FindInPageSearchCommands |
+ |
+// Searches for the given string in the current page. |
+- (void)findStringInPage:(NSString*)searchTerm; |
+ |
+// Finds the previous and next matches, using the current search string. Shows |
+// the Find in Page UI without initiating a search if there is no current search |
+// string. |
+- (void)findNextInPage; |
+- (void)findPreviousInPage; |
+ |
+@end |
+ |
+#endif // IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_FIND_IN_PAGE_SEARCH_COMMANDS_H_ |