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

Side by Side Diff: remoting/ios/app/remoting_settings_view_controller.mm

Issue 2871993003: Moving the iOS directory to be remoting top level. (Closed)
Patch Set: //remoting/ios was the old landing target for the internal iOS application. Fix. Created 3 years, 7 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #if !defined(__has_feature) || !__has_feature(objc_arc) 5 #if !defined(__has_feature) || !__has_feature(objc_arc)
6 #error "This file requires ARC support." 6 #error "This file requires ARC support."
7 #endif 7 #endif
8 8
9 #import "remoting/client/ios/app/remoting_settings_view_controller.h" 9 #import "remoting/ios/app/remoting_settings_view_controller.h"
10 10
11 #import "ios/third_party/material_components_ios/src/components/AppBar/src/Mater ialAppBar.h" 11 #import "ios/third_party/material_components_ios/src/components/AppBar/src/Mater ialAppBar.h"
12 #import "ios/third_party/material_components_ios/src/components/Buttons/src/Mate rialButtons.h" 12 #import "ios/third_party/material_components_ios/src/components/Buttons/src/Mate rialButtons.h"
13 #import "remoting/client/ios/facade/remoting_authentication.h" 13 #import "remoting/ios/facade/remoting_authentication.h"
14 #import "remoting/client/ios/facade/remoting_service.h" 14 #import "remoting/ios/facade/remoting_service.h"
15 15
16 #include "base/strings/stringprintf.h" 16 #include "base/strings/stringprintf.h"
17 #include "google_apis/google_api_keys.h" 17 #include "google_apis/google_api_keys.h"
18 #include "net/base/escape.h" 18 #include "net/base/escape.h"
19 19
20 // TODO(nicholss): This should be generated from a remoting/base class: 20 // TODO(nicholss): This should be generated from a remoting/base class:
21 21
22 static NSString* const kReusableIdentifierItem = 22 static NSString* const kReusableIdentifierItem =
23 @"remotingSettingsViewControllerItem"; 23 @"remotingSettingsViewControllerItem";
24 static UIColor* kBackgroundColor = 24 static UIColor* kBackgroundColor =
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 [NSString stringWithCString:GetAuthorizationCodeUri().c_str() 199 [NSString stringWithCString:GetAuthorizationCodeUri().c_str()
200 encoding:[NSString defaultCStringEncoding]]; 200 encoding:[NSString defaultCStringEncoding]];
201 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:authUri]]; 201 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:authUri]];
202 } 202 }
203 203
204 - (void)didTapLogout:(id)sender { 204 - (void)didTapLogout:(id)sender {
205 [[RemotingService SharedInstance].authentication logout]; 205 [[RemotingService SharedInstance].authentication logout];
206 } 206 }
207 207
208 @end 208 @end
OLDNEW
« no previous file with comments | « remoting/ios/app/remoting_settings_view_controller.h ('k') | remoting/ios/app/remoting_view_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698