OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_WEB_SHELL_VIEW_CONTROLLER_H_ |
| 6 #define IOS_WEB_SHELL_VIEW_CONTROLLER_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 #include "ios/web/public/web_state/crw_web_delegate.h" |
| 11 |
| 12 namespace web { |
| 13 class BrowserState; |
| 14 } |
| 15 |
| 16 // Implements the main UI for ios_web_shell, including a toolbar and web view. |
| 17 @interface ViewController |
| 18 : UIViewController<CRWWebDelegate, UITextFieldDelegate> |
| 19 |
| 20 @property(nonatomic, retain) IBOutlet UIView* containerView; |
| 21 @property(nonatomic, retain) IBOutlet UIToolbar* toolbarView; |
| 22 |
| 23 // Initializes a new ViewController from |MainView.xib| using the given |
| 24 // |browserState|. |
| 25 - (instancetype)initWithBrowserState:(web::BrowserState*)browserState; |
| 26 |
| 27 @end |
| 28 |
| 29 #endif // IOS_WEB_SHELL_VIEW_CONTROLLER_H_ |
OLD | NEW |