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

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

Issue 2693013005: Updated tab history classes to use NavigationItemLists. (Closed)
Patch Set: update DEPS, include url_formatter in BUILD.gn 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"
15 16
16 @protocol PreloadProvider; 17 @protocol PreloadProvider;
17 @class Tab; 18 @class Tab;
18 @protocol ToolbarFrameDelegate; 19 @protocol ToolbarFrameDelegate;
19 class ToolbarModelIOS; 20 class ToolbarModelIOS;
20 @protocol UrlLoader; 21 @protocol UrlLoader;
21 22
22 namespace ios { 23 namespace ios {
23 class ChromeBrowserState; 24 class ChromeBrowserState;
24 } 25 }
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // system. 144 // system.
144 - (CGRect)visibleOmniboxFrame; 145 - (CGRect)visibleOmniboxFrame;
145 146
146 // Returns a UIImage containing a snapshot of the view at the given width. If 147 // Returns a UIImage containing a snapshot of the view at the given width. If
147 // |width| is 0, it uses the view's current width. Returns the cached snapshot 148 // |width| is 0, it uses the view's current width. Returns the cached snapshot
148 // if it is up to date. 149 // if it is up to date.
149 - (UIImage*)snapshotWithWidth:(CGFloat)width; 150 - (UIImage*)snapshotWithWidth:(CGFloat)width;
150 151
151 // Shows the tab history popup inside |view|. 152 // Shows the tab history popup inside |view|.
152 - (void)showTabHistoryPopupInView:(UIView*)view 153 - (void)showTabHistoryPopupInView:(UIView*)view
153 withSessionEntries:(NSArray*)sessionEntries 154 withItems:(const web::NavigationItemList&)items
154 forBackHistory:(BOOL)isBackHistory; 155 forBackHistory:(BOOL)isBackHistory;
155 156
156 // Dismisses the tab history popup. 157 // Dismisses the tab history popup.
157 - (void)dismissTabHistoryPopup; 158 - (void)dismissTabHistoryPopup;
158 159
159 // Returns whether omnibox is a first responder. 160 // Returns whether omnibox is a first responder.
160 - (BOOL)isOmniboxFirstResponder; 161 - (BOOL)isOmniboxFirstResponder;
161 162
162 // Returns whether the omnibox popup is currently displayed. 163 // Returns whether the omnibox popup is currently displayed.
163 - (BOOL)showingOmniboxPopup; 164 - (BOOL)showingOmniboxPopup;
164 165
165 - (void)traitCollectionDidChange:(UITraitCollection*)previousTraitCollection; 166 - (void)traitCollectionDidChange:(UITraitCollection*)previousTraitCollection;
166 167
167 @end 168 @end
168 169
169 #endif // IOS_CHROME_BROWSER_UI_TOOLBAR_WEB_TOOLBAR_CONTROLLER_H_ 170 #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