Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "base/strings/sys_string_conversions.h" | |
|
tapted
2013/08/14 03:53:11
this shouldn't be in the header, but you'll probab
calamity
2013/08/14 09:19:00
Done.
| |
| 12 #include "ui/app_list/app_list_export.h" | 13 #include "ui/app_list/app_list_export.h" |
| 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; |
| 29 - (void)modelTextDidChange; | 30 - (void)modelTextDidChange; |
| 31 - (const base::string16&)currentUserName; | |
|
tapted
2013/08/14 03:53:11
Objective-C functions "can't" return references..
calamity
2013/08/14 09:19:00
Done.
| |
| 32 - (const base::string16&)currentUserEmail; | |
| 30 | 33 |
| 31 @end | 34 @end |
| 32 | 35 |
| 33 // Controller for the search box in the topmost portion of the app list. | 36 // Controller for the search box in the topmost portion of the app list. |
| 34 APP_LIST_EXPORT | 37 APP_LIST_EXPORT |
| 35 @interface AppsSearchBoxController : NSViewController<NSTextFieldDelegate> { | 38 @interface AppsSearchBoxController : NSViewController<NSTextFieldDelegate> { |
| 36 @private | 39 @private |
| 37 base::scoped_nsobject<SearchTextField> searchTextField_; | 40 base::scoped_nsobject<SearchTextField> searchTextField_; |
| 38 base::scoped_nsobject<NSImageView> searchImageView_; | 41 base::scoped_nsobject<NSImageView> searchImageView_; |
| 39 base::scoped_nsobject<HoverImageMenuButton> menuButton_; | 42 base::scoped_nsobject<HoverImageMenuButton> menuButton_; |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 53 | 56 |
| 54 @interface AppsSearchBoxController (TestingAPI) | 57 @interface AppsSearchBoxController (TestingAPI) |
| 55 | 58 |
| 56 - (NSTextField*)searchTextField; | 59 - (NSTextField*)searchTextField; |
| 57 - (NSPopUpButton*)menuControl; | 60 - (NSPopUpButton*)menuControl; |
| 58 - (app_list::AppListMenu*)appListMenu; | 61 - (app_list::AppListMenu*)appListMenu; |
| 59 | 62 |
| 60 @end | 63 @end |
| 61 | 64 |
| 62 #endif // UI_APP_LIST_COCOA_APPS_SEARCH_BOX_CONTROLLER_H_ | 65 #endif // UI_APP_LIST_COCOA_APPS_SEARCH_BOX_CONTROLLER_H_ |
| OLD | NEW |