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

Side by Side Diff: ui/app_list/cocoa/apps_search_results_model_bridge.mm

Issue 21592003: app_list: Show apps grid after installing from cws result. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: happy mac Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/app_list/search/webstore_result.cc ('k') | ui/app_list/search_result.h » ('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 #import "ui/app_list/cocoa/apps_search_results_model_bridge.h" 5 #import "ui/app_list/cocoa/apps_search_results_model_bridge.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/strings/sys_string_conversions.h" 9 #include "base/strings/sys_string_conversions.h"
10 #include "ui/app_list/search_result.h" 10 #include "ui/app_list/search_result.h"
(...skipping 25 matching lines...) Expand all
36 return [context_menu_controller_ menu]; 36 return [context_menu_controller_ menu];
37 } 37 }
38 38
39 // SearchResultObserver overrides: 39 // SearchResultObserver overrides:
40 virtual void OnIconChanged() OVERRIDE { 40 virtual void OnIconChanged() OVERRIDE {
41 bridge_->ReloadDataForItems(row_in_view_, 1); 41 bridge_->ReloadDataForItems(row_in_view_, 1);
42 } 42 }
43 virtual void OnActionsChanged() OVERRIDE {} 43 virtual void OnActionsChanged() OVERRIDE {}
44 virtual void OnIsInstallingChanged() OVERRIDE {} 44 virtual void OnIsInstallingChanged() OVERRIDE {}
45 virtual void OnPercentDownloadedChanged() OVERRIDE {} 45 virtual void OnPercentDownloadedChanged() OVERRIDE {}
46 virtual void OnItemInstalled() OVERRIDE {}
46 47
47 private: 48 private:
48 AppsSearchResultsModelBridge* bridge_; // Weak. Owns us. 49 AppsSearchResultsModelBridge* bridge_; // Weak. Owns us.
49 SearchResult* result_; // Weak. Owned by AppListModel::SearchResults. 50 SearchResult* result_; // Weak. Owned by AppListModel::SearchResults.
50 size_t row_in_view_; 51 size_t row_in_view_;
51 base::scoped_nsobject<MenuController> context_menu_controller_; 52 base::scoped_nsobject<MenuController> context_menu_controller_;
52 53
53 DISALLOW_COPY_AND_ASSIGN(ItemObserver); 54 DISALLOW_COPY_AND_ASSIGN(ItemObserver);
54 }; 55 };
55 56
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 } 114 }
114 115
115 void AppsSearchResultsModelBridge::ListItemsChanged( 116 void AppsSearchResultsModelBridge::ListItemsChanged(
116 size_t start, size_t count) { 117 size_t start, size_t count) {
117 item_observers_.clear(); 118 item_observers_.clear();
118 ReloadDataForItems(start, count); 119 ReloadDataForItems(start, count);
119 UpdateItemObservers(); 120 UpdateItemObservers();
120 } 121 }
121 122
122 } // namespace app_list 123 } // namespace app_list
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/search/webstore_result.cc ('k') | ui/app_list/search_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698