Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ios / web / shell / view_controller.h
blobbc175fcdebc35b2b57f376d7d7c665e27115239c
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/ui/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_