OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 #ifndef IOS_CHROME_BROWSER_UI_BROWSER_VIEW_CONTROLLER_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_BROWSER_VIEW_CONTROLLER_H_ |
6 #define IOS_CHROME_BROWSER_UI_BROWSER_VIEW_CONTROLLER_H_ | 6 #define IOS_CHROME_BROWSER_UI_BROWSER_VIEW_CONTROLLER_H_ |
7 | 7 |
8 #import <MessageUI/MessageUI.h> | 8 #import <MessageUI/MessageUI.h> |
9 #import <StoreKit/StoreKit.h> | 9 #import <StoreKit/StoreKit.h> |
10 #import <UIKit/UIKit.h> | 10 #import <UIKit/UIKit.h> |
11 | 11 |
12 #import "base/ios/block_types.h" | 12 #import "base/ios/block_types.h" |
13 #import "ios/chrome/browser/ui/side_swipe/side_swipe_controller.h" | 13 #import "ios/chrome/browser/ui/side_swipe/side_swipe_controller.h" |
14 #import "ios/chrome/browser/ui/toolbar/toolbar_owner.h" | 14 #import "ios/chrome/browser/ui/toolbar/toolbar_owner.h" |
15 #import "ios/chrome/browser/ui/toolbar/web_toolbar_controller.h" | 15 #import "ios/chrome/browser/ui/toolbar/web_toolbar_controller.h" |
16 #import "ios/chrome/browser/ui/url_loader.h" | 16 #import "ios/chrome/browser/ui/url_loader.h" |
17 #import "ios/public/provider/chrome/browser/voice/voice_search_presenter.h" | 17 #import "ios/public/provider/chrome/browser/voice/voice_search_presenter.h" |
18 | 18 |
| 19 @protocol BrowserCommands; |
19 @class BrowserContainerView; | 20 @class BrowserContainerView; |
20 @class BrowserViewControllerDependencyFactory; | 21 @class BrowserViewControllerDependencyFactory; |
21 @class ContextualSearchController; | 22 @class ContextualSearchController; |
22 @class ContextualSearchPanelView; | 23 @class ContextualSearchPanelView; |
23 @class FindBarControllerIOS; | 24 @class FindBarControllerIOS; |
24 class GURL; | 25 class GURL; |
25 @class NoTabsController; | 26 @class NoTabsController; |
26 @class PageInfoViewController; | 27 @class PageInfoViewController; |
27 @class PreloadController; | 28 @class PreloadController; |
28 @class PrintController; | 29 @class PrintController; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 browserState:(ios::ChromeBrowserState*)browserState | 65 browserState:(ios::ChromeBrowserState*)browserState |
65 dependencyFactory: | 66 dependencyFactory: |
66 (BrowserViewControllerDependencyFactory*)factory | 67 (BrowserViewControllerDependencyFactory*)factory |
67 NS_DESIGNATED_INITIALIZER; | 68 NS_DESIGNATED_INITIALIZER; |
68 | 69 |
69 - (instancetype)initWithNibName:(NSString*)nibNameOrNil | 70 - (instancetype)initWithNibName:(NSString*)nibNameOrNil |
70 bundle:(NSBundle*)nibBundleOrNil NS_UNAVAILABLE; | 71 bundle:(NSBundle*)nibBundleOrNil NS_UNAVAILABLE; |
71 | 72 |
72 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; | 73 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; |
73 | 74 |
| 75 @property(nonatomic, readonly) id<BrowserCommands> browserCommandDispatcher; |
| 76 |
74 // The top-level browser container view. | 77 // The top-level browser container view. |
75 @property(nonatomic, strong) BrowserContainerView* contentArea; | 78 @property(nonatomic, strong) BrowserContainerView* contentArea; |
76 | 79 |
77 // Invisible button used to dismiss the keyboard. | 80 // Invisible button used to dismiss the keyboard. |
78 @property(nonatomic, strong) UIButton* typingShield; | 81 @property(nonatomic, strong) UIButton* typingShield; |
79 | 82 |
80 // Activates/deactivates the object. This will enable/disable the ability for | 83 // Activates/deactivates the object. This will enable/disable the ability for |
81 // this object to browse, and to have live UIWebViews associated with it. While | 84 // this object to browse, and to have live UIWebViews associated with it. While |
82 // not active, the UI will not react to changes in the tab model, so generally | 85 // not active, the UI will not react to changes in the tab model, so generally |
83 // an inactive BVC should not be visible. | 86 // an inactive BVC should not be visible. |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // when files have been removed. | 157 // when files have been removed. |
155 - (void)removeExternalFilesImmediately:(BOOL)immediately | 158 - (void)removeExternalFilesImmediately:(BOOL)immediately |
156 completionHandler:(ProceduralBlock)completionHandler; | 159 completionHandler:(ProceduralBlock)completionHandler; |
157 | 160 |
158 // Called before the instance is deallocated. | 161 // Called before the instance is deallocated. |
159 - (void)shutdown; | 162 - (void)shutdown; |
160 | 163 |
161 @end | 164 @end |
162 | 165 |
163 #endif // IOS_CHROME_BROWSER_UI_BROWSER_VIEW_CONTROLLER_H_ | 166 #endif // IOS_CHROME_BROWSER_UI_BROWSER_VIEW_CONTROLLER_H_ |
OLD | NEW |