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.
5 #ifndef IOS_WEB_SHELL_VIEW_CONTROLLER_H_
6 #define IOS_WEB_SHELL_VIEW_CONTROLLER_H_
8 #import <UIKit/UIKit.h>
10 #include "ios/web/public/web_state/crw_web_delegate.h"
16 // Implements the main UI for ios_web_shell, including a toolbar and web view.
17 @interface ViewController
18 : UIViewController
<CRWWebDelegate
, UITextFieldDelegate
>
20 @
property(nonatomic
, retain
) IBOutlet UIView
* containerView
;
21 @
property(nonatomic
, retain
) IBOutlet UIToolbar
* toolbarView
;
23 // Initializes a new ViewController from |MainView.xib| using the given
25 - (instancetype
)initWithBrowserState
:(web::BrowserState
*)browserState
;
29 #endif // IOS_WEB_SHELL_VIEW_CONTROLLER_H_