| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef IOS_WEB_PUBLIC_TEST_FAKES_TEST_NAVIGATION_MANAGER_H_ | 5 #ifndef IOS_WEB_PUBLIC_TEST_FAKES_TEST_NAVIGATION_MANAGER_H_ |
| 6 #define IOS_WEB_PUBLIC_TEST_FAKES_TEST_NAVIGATION_MANAGER_H_ | 6 #define IOS_WEB_PUBLIC_TEST_FAKES_TEST_NAVIGATION_MANAGER_H_ |
| 7 | 7 |
| 8 #import "ios/web/public/navigation_item.h" | 8 #import "ios/web/public/navigation_item.h" |
| 9 #include "ios/web/public/navigation_item_list.h" | 9 #include "ios/web/public/navigation_item_list.h" |
| 10 #import "ios/web/public/navigation_manager.h" | 10 #import "ios/web/public/navigation_manager.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 NavigationItem* GetVisibleItem() const override; | 23 NavigationItem* GetVisibleItem() const override; |
| 24 NavigationItem* GetLastCommittedItem() const override; | 24 NavigationItem* GetLastCommittedItem() const override; |
| 25 NavigationItem* GetPendingItem() const override; | 25 NavigationItem* GetPendingItem() const override; |
| 26 NavigationItem* GetTransientItem() const override; | 26 NavigationItem* GetTransientItem() const override; |
| 27 void DiscardNonCommittedItems() override; | 27 void DiscardNonCommittedItems() override; |
| 28 void LoadURLWithParams(const NavigationManager::WebLoadParams&) override; | 28 void LoadURLWithParams(const NavigationManager::WebLoadParams&) override; |
| 29 void AddTransientURLRewriter( | 29 void AddTransientURLRewriter( |
| 30 BrowserURLRewriter::URLRewriter rewriter) override; | 30 BrowserURLRewriter::URLRewriter rewriter) override; |
| 31 int GetItemCount() const override; | 31 int GetItemCount() const override; |
| 32 NavigationItem* GetItemAtIndex(size_t index) const override; | 32 NavigationItem* GetItemAtIndex(size_t index) const override; |
| 33 int GetIndexOfItem(const NavigationItem* item) const override; |
| 33 int GetPendingItemIndex() const override; | 34 int GetPendingItemIndex() const override; |
| 34 int GetLastCommittedItemIndex() const override; | 35 int GetLastCommittedItemIndex() const override; |
| 35 bool RemoveItemAtIndex(int index) override; | 36 bool RemoveItemAtIndex(int index) override; |
| 36 bool CanGoBack() const override; | 37 bool CanGoBack() const override; |
| 37 bool CanGoForward() const override; | 38 bool CanGoForward() const override; |
| 38 bool CanGoToOffset(int offset) const override; | 39 bool CanGoToOffset(int offset) const override; |
| 39 void GoBack() override; | 40 void GoBack() override; |
| 40 void GoForward() override; | 41 void GoForward() override; |
| 41 void GoToIndex(int index) override; | 42 void GoToIndex(int index) override; |
| 42 void Reload(ReloadType reload_type, bool check_for_reposts) override; | 43 void Reload(ReloadType reload_type, bool check_for_reposts) override; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 70 int items_index_; | 71 int items_index_; |
| 71 // Individual backing instance variables for Set* test set up methods. | 72 // Individual backing instance variables for Set* test set up methods. |
| 72 NavigationItem* pending_item_; | 73 NavigationItem* pending_item_; |
| 73 NavigationItem* last_committed_item_; | 74 NavigationItem* last_committed_item_; |
| 74 NavigationItem* visible_item_; | 75 NavigationItem* visible_item_; |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace web | 78 } // namespace web |
| 78 | 79 |
| 79 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_NAVIGATION_MANAGER_H_ | 80 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_NAVIGATION_MANAGER_H_ |
| OLD | NEW |