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

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

Issue 2714813002: [iOS] Add Request Mobile Site cell to tools menu (Closed)
Patch Set: Implement "Request Mobile Site" UI Created 3 years, 9 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>
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 274
275 // Whether the content of the current tab is compatible with reader mode. 275 // Whether the content of the current tab is compatible with reader mode.
276 - (BOOL)canSwitchToReaderMode; 276 - (BOOL)canSwitchToReaderMode;
277 277
278 // Asks the tab to enter into reader mode, presenting a streamlined view of the 278 // Asks the tab to enter into reader mode, presenting a streamlined view of the
279 // current content. 279 // current content.
280 - (void)switchToReaderMode; 280 - (void)switchToReaderMode;
281 281
282 // Update internal state to use the desktop user agent. Must call 282 // Update internal state to use the desktop user agent. Must call
283 // -reloadWebViewAndURL for changes to take effect. 283 // -reloadWebViewAndURL for changes to take effect.
284 - (void)enableDesktopUserAgent; 284 - (void)activateDesktopUserAgent;
liaoyuke 2017/02/23 22:17:17 I found "enable" confusing because it is already u
285 285
286 // Remove the UIWebView and reload the current url. Used by request desktop 286 // Update internal state to use the mobile user agent. Must call
287 // so the updated user agent is used. 287 // -reloadWebViewAndURL for changes to take effect.
288 - (void)reloadForDesktopUserAgent; 288 - (void)activateMobileUserAgent;
289
290 // Remove the web view and reload the current url. Used by request desktop or
291 // mobile site, so the updated user agent is used.
292 - (void)reloadForUpdatedUserAgent;
289 293
290 // Ensures the toolbar visibility matches |visible|. 294 // Ensures the toolbar visibility matches |visible|.
291 - (void)updateFullscreenWithToolbarVisible:(BOOL)visible; 295 - (void)updateFullscreenWithToolbarVisible:(BOOL)visible;
292 296
293 // Returns a snapshot of the current page, backed by disk so it can be purged 297 // Returns a snapshot of the current page, backed by disk so it can be purged
294 // and reloaded easily. The snapshot may be in memory, saved on disk or not 298 // and reloaded easily. The snapshot may be in memory, saved on disk or not
295 // present at all. 299 // present at all.
296 // 1) If the snapshot is in memory |block| will be called synchronously with 300 // 1) If the snapshot is in memory |block| will be called synchronously with
297 // the existing image. 301 // the existing image.
298 // 2) If the snapshot is saven on disk |block| will be called asynchronously 302 // 2) If the snapshot is saven on disk |block| will be called asynchronously
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 343
340 // Called when this tab is hidden. 344 // Called when this tab is hidden.
341 - (void)wasHidden; 345 - (void)wasHidden;
342 346
343 // Evaluates U2F result. 347 // Evaluates U2F result.
344 - (void)evaluateU2FResultFromURL:(const GURL&)url; 348 - (void)evaluateU2FResultFromURL:(const GURL&)url;
345 349
346 @end 350 @end
347 351
348 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ 352 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698