Fix breakages in https://codereview.chromium.org/1155713003/
[chromium-blink-merge.git] / ios / web / shell / view_controller.h
blobc6e11bb1240f33d57f7d958588a2897be3e88c51
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"
12 namespace web {
13 class BrowserState;
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
24 // |browserState|.
25 - (instancetype)initWithBrowserState:(web::BrowserState*)browserState;
27 @end
29 #endif // IOS_WEB_SHELL_VIEW_CONTROLLER_H_