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

Side by Side Diff: ios/chrome/browser/ui/toolbar/web_toolbar_controller.h

Issue 2706403009: Revert of Updated tab history classes to use NavigationItemLists. (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_CHROME_BROWSER_UI_TOOLBAR_WEB_TOOLBAR_CONTROLLER_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_TOOLBAR_WEB_TOOLBAR_CONTROLLER_H_
6 #define IOS_CHROME_BROWSER_UI_TOOLBAR_WEB_TOOLBAR_CONTROLLER_H_ 6 #define IOS_CHROME_BROWSER_UI_TOOLBAR_WEB_TOOLBAR_CONTROLLER_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #include "ios/chrome/browser/ui/omnibox/location_bar_view_ios.h" 10 #include "ios/chrome/browser/ui/omnibox/location_bar_view_ios.h"
11 #include "ios/chrome/browser/ui/omnibox/omnibox_popup_positioner.h" 11 #include "ios/chrome/browser/ui/omnibox/omnibox_popup_positioner.h"
12 #include "ios/chrome/browser/ui/qr_scanner/qr_scanner_view_controller.h" 12 #include "ios/chrome/browser/ui/qr_scanner/qr_scanner_view_controller.h"
13 #import "ios/chrome/browser/ui/toolbar/toolbar_controller.h" 13 #import "ios/chrome/browser/ui/toolbar/toolbar_controller.h"
14 #include "ios/public/provider/chrome/browser/voice/voice_search_controller_deleg ate.h" 14 #include "ios/public/provider/chrome/browser/voice/voice_search_controller_deleg ate.h"
15 #include "ios/web/public/navigation_item_list.h"
16 15
17 @protocol PreloadProvider; 16 @protocol PreloadProvider;
18 @class Tab; 17 @class Tab;
19 @protocol ToolbarFrameDelegate; 18 @protocol ToolbarFrameDelegate;
20 class ToolbarModelIOS; 19 class ToolbarModelIOS;
21 @protocol UrlLoader; 20 @protocol UrlLoader;
22 21
23 namespace ios { 22 namespace ios {
24 class ChromeBrowserState; 23 class ChromeBrowserState;
25 } 24 }
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // system. 143 // system.
145 - (CGRect)visibleOmniboxFrame; 144 - (CGRect)visibleOmniboxFrame;
146 145
147 // Returns a UIImage containing a snapshot of the view at the given width. If 146 // Returns a UIImage containing a snapshot of the view at the given width. If
148 // |width| is 0, it uses the view's current width. Returns the cached snapshot 147 // |width| is 0, it uses the view's current width. Returns the cached snapshot
149 // if it is up to date. 148 // if it is up to date.
150 - (UIImage*)snapshotWithWidth:(CGFloat)width; 149 - (UIImage*)snapshotWithWidth:(CGFloat)width;
151 150
152 // Shows the tab history popup inside |view|. 151 // Shows the tab history popup inside |view|.
153 - (void)showTabHistoryPopupInView:(UIView*)view 152 - (void)showTabHistoryPopupInView:(UIView*)view
154 withItems:(const web::NavigationItemList&)items 153 withSessionEntries:(NSArray*)sessionEntries
155 forBackHistory:(BOOL)isBackHistory; 154 forBackHistory:(BOOL)isBackHistory;
156 155
157 // Dismisses the tab history popup. 156 // Dismisses the tab history popup.
158 - (void)dismissTabHistoryPopup; 157 - (void)dismissTabHistoryPopup;
159 158
160 // Returns whether omnibox is a first responder. 159 // Returns whether omnibox is a first responder.
161 - (BOOL)isOmniboxFirstResponder; 160 - (BOOL)isOmniboxFirstResponder;
162 161
163 // Returns whether the omnibox popup is currently displayed. 162 // Returns whether the omnibox popup is currently displayed.
164 - (BOOL)showingOmniboxPopup; 163 - (BOOL)showingOmniboxPopup;
165 164
166 - (void)traitCollectionDidChange:(UITraitCollection*)previousTraitCollection; 165 - (void)traitCollectionDidChange:(UITraitCollection*)previousTraitCollection;
167 166
168 @end 167 @end
169 168
170 #endif // IOS_CHROME_BROWSER_UI_TOOLBAR_WEB_TOOLBAR_CONTROLLER_H_ 169 #endif // IOS_CHROME_BROWSER_UI_TOOLBAR_WEB_TOOLBAR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/history/tab_history_view_controller.mm ('k') | ios/chrome/browser/ui/toolbar/web_toolbar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698