Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Side by Side Diff: ios/chrome/app/main_controller.h

Issue 2580363002: Upstream Chrome on iOS source code [1/11]. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/chrome/app/main_application_delegate_unittest.mm ('k') | ios/chrome/app/main_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef IOS_CHROME_APP_MAIN_CONTROLLER_H_
6 #define IOS_CHROME_APP_MAIN_CONTROLLER_H_
7
8 #import <UIKit/UIKit.h>
9
10 #import "ios/chrome/app/application_delegate/app_navigation.h"
11 #import "ios/chrome/app/application_delegate/browser_launcher.h"
12 #import "ios/chrome/app/application_delegate/startup_information.h"
13 #import "ios/chrome/app/application_delegate/tab_opening.h"
14 #import "ios/chrome/app/application_delegate/tab_switching.h"
15 #import "ios/chrome/browser/ui/main/browser_view_information.h"
16
17 @class AppState;
18 @class MetricsMediator;
19
20 // The main controller of the application, owned by the MainWindow nib. Also
21 // serves as the delegate for the app. Owns all the various top-level
22 // UI controllers.
23 //
24 // By design, it has no public API of its own. Anything interacting with
25 // MainController should be doing so through a specific protocol.
26 @interface MainController : NSObject<AppNavigation,
27 BrowserLauncher,
28 StartupInformation,
29 TabOpening,
30 TabSwitching>
31
32 // A BrowserViewInformation object to perform BrowserViewController operations.
33 @property(nonatomic, readonly) id<BrowserViewInformation>
34 browserViewInformation;
35
36 // The application window.
37 @property(nonatomic, retain) UIWindow* window;
38
39 // Contains information about the application state, for example whether the
40 // safe mode is activated.
41 @property(nonatomic, assign) AppState* appState;
42
43 // This metrics mediator is used to check and update the metrics accordingly to
44 // to the user preferences.
45 @property(nonatomic, assign) MetricsMediator* metricsMediator;
46
47 // UIResponder addition to execute a Chrome command. Overridden in UIWindow to
48 // forward the call to the application delegate. The application delegate
49 // forwards the call to this class.
50 - (void)chromeExecuteCommand:(id)sender;
51
52 // Returns whether the tab switcher is active.
53 - (BOOL)isTabSwitcherActive;
54
55 @end
56
57 #endif // IOS_CHROME_APP_MAIN_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ios/chrome/app/main_application_delegate_unittest.mm ('k') | ios/chrome/app/main_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698