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

Side by Side Diff: ios/chrome/browser/ui/browser_view_controller.mm

Issue 2779383002: implement user agent override option. (Closed)
Patch Set: Rebase Created 3 years, 8 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
« no previous file with comments | « ios/chrome/browser/tabs/tab_unittest.mm ('k') | ios/web/navigation/navigation_manager_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #import "ios/chrome/browser/ui/browser_view_controller.h" 5 #import "ios/chrome/browser/ui/browser_view_controller.h"
6 6
7 #import <AssetsLibrary/AssetsLibrary.h> 7 #import <AssetsLibrary/AssetsLibrary.h>
8 #import <MobileCoreServices/MobileCoreServices.h> 8 #import <MobileCoreServices/MobileCoreServices.h>
9 #import <PassKit/PassKit.h> 9 #import <PassKit/PassKit.h>
10 #import <Photos/Photos.h> 10 #import <Photos/Photos.h>
(...skipping 4204 matching lines...) Expand 10 before | Expand all | Expand 10 after
4215 4215
4216 - (void)showHelpPage { 4216 - (void)showHelpPage {
4217 GURL helpUrl(l10n_util::GetStringUTF16(IDS_IOS_TOOLS_MENU_HELP_URL)); 4217 GURL helpUrl(l10n_util::GetStringUTF16(IDS_IOS_TOOLS_MENU_HELP_URL));
4218 [self webPageOrderedOpen:helpUrl 4218 [self webPageOrderedOpen:helpUrl
4219 referrer:web::Referrer() 4219 referrer:web::Referrer()
4220 inBackground:NO 4220 inBackground:NO
4221 appendTo:kCurrentTab]; 4221 appendTo:kCurrentTab];
4222 } 4222 }
4223 4223
4224 - (void)enableDesktopUserAgent { 4224 - (void)enableDesktopUserAgent {
4225 [[_model currentTab] enableDesktopUserAgent];
4226 [[_model currentTab] reloadForDesktopUserAgent]; 4225 [[_model currentTab] reloadForDesktopUserAgent];
4227 } 4226 }
4228 4227
4229 // TODO(crbug.com/692303): Implement the actual functionality of 4228 // TODO(crbug.com/692303): Implement the actual functionality of
4230 // "Request Mobile Site", and also refactoring the user agent related function 4229 // "Request Mobile Site", and also refactoring the user agent related function
4231 // names to improve readability. 4230 // names to improve readability.
4232 - (void)enableMobileUserAgent { 4231 - (void)enableMobileUserAgent {
4233 } 4232 }
4234 4233
4235 - (void)resetAllWebViews { 4234 - (void)resetAllWebViews {
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
5126 5125
5127 - (UIView*)voiceSearchButton { 5126 - (UIView*)voiceSearchButton {
5128 return _voiceSearchButton; 5127 return _voiceSearchButton;
5129 } 5128 }
5130 5129
5131 - (id<LogoAnimationControllerOwner>)logoAnimationControllerOwner { 5130 - (id<LogoAnimationControllerOwner>)logoAnimationControllerOwner {
5132 return [self currentLogoAnimationControllerOwner]; 5131 return [self currentLogoAnimationControllerOwner];
5133 } 5132 }
5134 5133
5135 @end 5134 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/tabs/tab_unittest.mm ('k') | ios/web/navigation/navigation_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698