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

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

Issue 98233002: Clear Search results in the Mac app launcher on close, rather than launch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Elborate on comment. And a rebase if I'm unlucky Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/app_list/cocoa/app_list_view_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
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_APP_LIST_VIEW_CONTROLLER_H_ 5 #ifndef UI_APP_LIST_COCOA_APP_LIST_VIEW_CONTROLLER_H_
6 #define UI_APP_LIST_COCOA_APP_LIST_VIEW_CONTROLLER_H_ 6 #define UI_APP_LIST_COCOA_APP_LIST_VIEW_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"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // Subview of |backgroundView_| that slides out when search results are shown. 45 // Subview of |backgroundView_| that slides out when search results are shown.
46 base::scoped_nsobject<NSView> contentsView_; 46 base::scoped_nsobject<NSView> contentsView_;
47 47
48 scoped_ptr<app_list::AppListViewDelegate> delegate_; 48 scoped_ptr<app_list::AppListViewDelegate> delegate_;
49 scoped_ptr<app_list::AppListModelObserverBridge> 49 scoped_ptr<app_list::AppListModelObserverBridge>
50 app_list_model_observer_bridge_; 50 app_list_model_observer_bridge_;
51 BOOL showingSearchResults_; 51 BOOL showingSearchResults_;
52 } 52 }
53 53
54 @property(readonly, nonatomic) AppsSearchBoxController*
55 searchBoxController;
56
54 - (app_list::AppListViewDelegate*)delegate; 57 - (app_list::AppListViewDelegate*)delegate;
55 - (void)setDelegate:(scoped_ptr<app_list::AppListViewDelegate>)newDelegate; 58 - (void)setDelegate:(scoped_ptr<app_list::AppListViewDelegate>)newDelegate;
56 - (void)onSigninStatusChanged; 59 - (void)onSigninStatusChanged;
57 60
58 @end 61 @end
59 62
60 @interface AppListViewController (TestingAPI) 63 @interface AppListViewController (TestingAPI)
61 64
65 @property(nonatomic, readonly) BOOL showingSearchResults;
66
62 - (AppsGridController*)appsGridController; 67 - (AppsGridController*)appsGridController;
63 - (NSSegmentedControl*)pagerControl; 68 - (NSSegmentedControl*)pagerControl;
64 - (NSView*)backgroundView; 69 - (NSView*)backgroundView;
65 70
66 @end 71 @end
67 72
68 #endif // UI_APP_LIST_COCOA_APP_LIST_VIEW_CONTROLLER_H_ 73 #endif // UI_APP_LIST_COCOA_APP_LIST_VIEW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/app_list/cocoa/app_list_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698