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

Side by Side Diff: ui/app_list/cocoa/apps_search_box_controller.h

Issue 20656002: Add profile selector menu to app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rework, fix tests Created 7 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 UI_APP_LIST_COCOA_APPS_SEARCH_BOX_CONTROLLER_H_ 5 #ifndef UI_APP_LIST_COCOA_APPS_SEARCH_BOX_CONTROLLER_H_
6 #define UI_APP_LIST_COCOA_APPS_SEARCH_BOX_CONTROLLER_H_ 6 #define UI_APP_LIST_COCOA_APPS_SEARCH_BOX_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "ui/app_list/app_list_export.h" 12 #include "ui/app_list/app_list_export.h"
13 #include "ui/app_list/app_list_model.h"
tapted 2013/09/13 23:12:17 this can be forward declared i think
calamity 2013/09/16 19:45:26 Done.
13 14
14 namespace app_list { 15 namespace app_list {
15 class AppListMenu; 16 class AppListMenu;
16 class AppListViewDelegate; 17 class AppListViewDelegate;
17 class SearchBoxModel; 18 class SearchBoxModel;
18 class SearchBoxModelObserverBridge; 19 class SearchBoxModelObserverBridge;
19 } 20 }
20 21
21 @class AppListMenuController; 22 @class AppListMenuController;
22 @class HoverImageMenuButton; 23 @class HoverImageMenuButton;
23 @class SearchTextField; 24 @class SearchTextField;
24 25
25 @protocol AppsSearchBoxDelegate<NSTextFieldDelegate> 26 @protocol AppsSearchBoxDelegate<NSTextFieldDelegate>
26 27
27 - (app_list::AppListViewDelegate*)appListDelegate; 28 - (app_list::AppListViewDelegate*)appListDelegate;
28 - (app_list::SearchBoxModel*)searchBoxModel; 29 - (app_list::SearchBoxModel*)searchBoxModel;
30 - (app_list::AppListModel*)appListModel;
29 - (void)modelTextDidChange; 31 - (void)modelTextDidChange;
30 - (NSString*)currentUserName;
31 - (NSString*)currentUserEmail;
32 32
33 @end 33 @end
34 34
35 // Controller for the search box in the topmost portion of the app list. 35 // Controller for the search box in the topmost portion of the app list.
36 APP_LIST_EXPORT 36 APP_LIST_EXPORT
37 @interface AppsSearchBoxController : NSViewController<NSTextFieldDelegate> { 37 @interface AppsSearchBoxController : NSViewController<NSTextFieldDelegate> {
38 @private 38 @private
39 base::scoped_nsobject<SearchTextField> searchTextField_; 39 base::scoped_nsobject<SearchTextField> searchTextField_;
40 base::scoped_nsobject<NSImageView> searchImageView_; 40 base::scoped_nsobject<NSImageView> searchImageView_;
41 base::scoped_nsobject<HoverImageMenuButton> menuButton_; 41 base::scoped_nsobject<HoverImageMenuButton> menuButton_;
(...skipping 16 matching lines...) Expand all
58 58
59 @interface AppsSearchBoxController (TestingAPI) 59 @interface AppsSearchBoxController (TestingAPI)
60 60
61 - (NSTextField*)searchTextField; 61 - (NSTextField*)searchTextField;
62 - (NSPopUpButton*)menuControl; 62 - (NSPopUpButton*)menuControl;
63 - (app_list::AppListMenu*)appListMenu; 63 - (app_list::AppListMenu*)appListMenu;
64 64
65 @end 65 @end
66 66
67 #endif // UI_APP_LIST_COCOA_APPS_SEARCH_BOX_CONTROLLER_H_ 67 #endif // UI_APP_LIST_COCOA_APPS_SEARCH_BOX_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698