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

Side by Side Diff: ios/chrome/browser/tabs/tab.h

Issue 2654433007: [ios] Moves find-in-page code out of Tab and into FindTabHelper. (Closed)
Patch Set: Null checks 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_TABS_TAB_H_ 5 #ifndef IOS_CHROME_BROWSER_TABS_TAB_H_
6 #define IOS_CHROME_BROWSER_TABS_TAB_H_ 6 #define IOS_CHROME_BROWSER_TABS_TAB_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <vector> 11 #include <vector>
12 12
13 #import "components/signin/ios/browser/manage_accounts_delegate.h" 13 #import "components/signin/ios/browser/manage_accounts_delegate.h"
14 #include "ios/net/request_tracker.h" 14 #include "ios/net/request_tracker.h"
15 #import "ios/web/public/web_state/ui/crw_web_delegate.h" 15 #import "ios/web/public/web_state/ui/crw_web_delegate.h"
16 #include "ui/base/page_transition_types.h" 16 #include "ui/base/page_transition_types.h"
17 17
18 @class AutofillController; 18 @class AutofillController;
19 @class AutoReloadBridge; 19 @class AutoReloadBridge;
20 @class CastController; 20 @class CastController;
21 @protocol CRWNativeContentProvider; 21 @protocol CRWNativeContentProvider;
22 @class CRWSessionEntry; 22 @class CRWSessionEntry;
23 @class CRWWebController; 23 @class CRWWebController;
24 @class ExternalAppLauncher; 24 @class ExternalAppLauncher;
25 @class FindInPageController;
26 @class FormInputAccessoryViewController; 25 @class FormInputAccessoryViewController;
27 @class FullScreenController; 26 @class FullScreenController;
28 @protocol FullScreenControllerDelegate; 27 @protocol FullScreenControllerDelegate;
29 class GURL; 28 class GURL;
30 @class NativeAppNavigationController; 29 @class NativeAppNavigationController;
31 @class OpenInController; 30 @class OpenInController;
32 @class OverscrollActionsController; 31 @class OverscrollActionsController;
33 @protocol OverscrollActionsControllerDelegate; 32 @protocol OverscrollActionsControllerDelegate;
34 @protocol PassKitDialogProvider; 33 @protocol PassKitDialogProvider;
35 @class PasswordController; 34 @class PasswordController;
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 - (void)switchToReaderMode; 271 - (void)switchToReaderMode;
273 272
274 // Update internal state to use the desktop user agent. Must call 273 // Update internal state to use the desktop user agent. Must call
275 // -reloadWebViewAndURL for changes to take effect. 274 // -reloadWebViewAndURL for changes to take effect.
276 - (void)enableDesktopUserAgent; 275 - (void)enableDesktopUserAgent;
277 276
278 // Remove the UIWebView and reload the current url. Used by request desktop 277 // Remove the UIWebView and reload the current url. Used by request desktop
279 // so the updated user agent is used. 278 // so the updated user agent is used.
280 - (void)reloadForDesktopUserAgent; 279 - (void)reloadForDesktopUserAgent;
281 280
282 // Accessor for Find in Page Controller.
283 - (FindInPageController*)findInPageController;
284
285 // Ensures the toolbar visibility matches |visible|. 281 // Ensures the toolbar visibility matches |visible|.
286 - (void)updateFullscreenWithToolbarVisible:(BOOL)visible; 282 - (void)updateFullscreenWithToolbarVisible:(BOOL)visible;
287 283
288 // Returns a snapshot of the current page, backed by disk so it can be purged 284 // Returns a snapshot of the current page, backed by disk so it can be purged
289 // and reloaded easily. The snapshot may be in memory, saved on disk or not 285 // and reloaded easily. The snapshot may be in memory, saved on disk or not
290 // present at all. 286 // present at all.
291 // 1) If the snapshot is in memory |block| will be called synchronously with 287 // 1) If the snapshot is in memory |block| will be called synchronously with
292 // the existing image. 288 // the existing image.
293 // 2) If the snapshot is saven on disk |block| will be called asynchronously 289 // 2) If the snapshot is saven on disk |block| will be called asynchronously
294 // once the image is retrieved. 290 // once the image is retrieved.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 330
335 // Called when this tab is hidden. 331 // Called when this tab is hidden.
336 - (void)wasHidden; 332 - (void)wasHidden;
337 333
338 // Evaluates U2F result. 334 // Evaluates U2F result.
339 - (void)evaluateU2FResultFromURL:(const GURL&)url; 335 - (void)evaluateU2FResultFromURL:(const GURL&)url;
340 336
341 @end 337 @end
342 338
343 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ 339 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698