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

Side by Side Diff: ios/chrome/browser/ui/ntp/new_tab_page_toolbar_controller.h

Issue 2829003002: Add CommandDispatcher to BrowserViewController. (Closed)
Patch Set: Cleaner Created 3 years, 8 months 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_NTP_NEW_TAB_PAGE_TOOLBAR_CONTROLLER_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_TOOLBAR_CONTROLLER_H_
6 #define IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_TOOLBAR_CONTROLLER_H_ 6 #define IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_TOOLBAR_CONTROLLER_H_
7 7
8 #import "ios/chrome/browser/ui/toolbar/toolbar_controller.h" 8 #import "ios/chrome/browser/ui/toolbar/toolbar_controller.h"
9 9
10 @protocol GoogleLandingCommands;
10 @protocol GoogleLandingDataSource; 11 @protocol GoogleLandingDataSource;
12 @protocol UrlLoader;
13 @protocol OmniboxFocuser;
14 @protocol WebToolbarDelegate;
11 15
12 // New tab page specific toolbar. The background view is hidden and the 16 // New tab page specific toolbar. The background view is hidden and the
13 // navigation buttons are also hidden if there is no forward history. Does not 17 // navigation buttons are also hidden if there is no forward history. Does not
14 // contain an omnibox but tapping in the center will focus the main toolbar's 18 // contain an omnibox but tapping in the center will focus the main toolbar's
15 // omnibox. 19 // omnibox.
16 @interface NewTabPageToolbarController : ToolbarController 20 @interface NewTabPageToolbarController : ToolbarController
17 21
18 // Designated initializer. The underlying ToolbarController is initialized with 22 // Designated initializer. The underlying ToolbarController is initialized with
19 // ToolbarControllerStyleLightMode. 23 // ToolbarControllerStyleLightMode.
20 - (instancetype)initWithToolbarDataSource: 24 - (instancetype)initWithToolbar;
21 (id<GoogleLandingDataSource>)dataSource; 25
26 @property(nonatomic, assign)
27 id<GoogleLandingCommands, UrlLoader, OmniboxFocuser, WebToolbarDelegate>
28 dispatcher;
22 29
23 @end 30 @end
24 31
25 #endif // IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_TOOLBAR_CONTROLLER_H_ 32 #endif // IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_TOOLBAR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698