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

Side by Side Diff: ios/crnet/crnet_consumer/crnet_consumer_view_controller.m

Issue 2323033002: Use CrNet.framework in crnet_test and crnet_consumer apps. (Closed)
Patch Set: Include CrNet.h from framework. Created 4 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "crnet_consumer_view_controller.h" 5 #import "crnet_consumer_view_controller.h"
6 6
7 #import "ios/crnet/CrNet.h" 7 #import <CrNet/CrNet.h>
8 8
9 @implementation CrNetConsumerViewController { 9 @implementation CrNetConsumerViewController {
10 UIWebView* _webView; 10 UIWebView* _webView;
11 } 11 }
12 12
13 - (void)viewDidLoad { 13 - (void)viewDidLoad {
14 self.view.backgroundColor = [UIColor whiteColor]; 14 self.view.backgroundColor = [UIColor whiteColor];
15 15
16 UIButton* button = [UIButton buttonWithType:UIButtonTypeSystem]; 16 UIButton* button = [UIButton buttonWithType:UIButtonTypeSystem];
17 [button setTitle:@"chromium.org" forState:UIControlStateNormal]; 17 [button setTitle:@"chromium.org" forState:UIControlStateNormal];
(...skipping 19 matching lines...) Expand all
37 - (BOOL)prefersStatusBarHidden { 37 - (BOOL)prefersStatusBarHidden {
38 return YES; 38 return YES;
39 } 39 }
40 40
41 - (void)loadChromium { 41 - (void)loadChromium {
42 [_webView loadRequest:[NSURLRequest requestWithURL: 42 [_webView loadRequest:[NSURLRequest requestWithURL:
43 [NSURL URLWithString:@"https://www.chromium.org"]]]; 43 [NSURL URLWithString:@"https://www.chromium.org"]]];
44 } 44 }
45 45
46 @end 46 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698