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

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

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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 #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/app_list_model.h" 10 #include "ui/app_list/app_list_model.h"
(...skipping 25 matching lines...) Expand all
36 return nil; 36 return nil;
37 37
38 context_menu_controller_.reset( 38 context_menu_controller_.reset(
39 [[MenuController alloc] initWithModel:menu_model 39 [[MenuController alloc] initWithModel:menu_model
40 useWithPopUpButtonCell:NO]); 40 useWithPopUpButtonCell:NO]);
41 } 41 }
42 return [context_menu_controller_ menu]; 42 return [context_menu_controller_ menu];
43 } 43 }
44 44
45 // SearchResultObserver overrides: 45 // SearchResultObserver overrides:
46 virtual void OnIconChanged() OVERRIDE { 46 virtual void OnIconChanged() override {
47 bridge_->ReloadDataForItems(row_in_view_, 1); 47 bridge_->ReloadDataForItems(row_in_view_, 1);
48 } 48 }
49 virtual void OnActionsChanged() OVERRIDE {} 49 virtual void OnActionsChanged() override {}
50 virtual void OnIsInstallingChanged() OVERRIDE {} 50 virtual void OnIsInstallingChanged() override {}
51 virtual void OnPercentDownloadedChanged() OVERRIDE {} 51 virtual void OnPercentDownloadedChanged() override {}
52 virtual void OnItemInstalled() OVERRIDE {} 52 virtual void OnItemInstalled() override {}
53 virtual void OnItemUninstalled() OVERRIDE; 53 virtual void OnItemUninstalled() override;
54 54
55 private: 55 private:
56 AppsSearchResultsModelBridge* bridge_; // Weak. Owns us. 56 AppsSearchResultsModelBridge* bridge_; // Weak. Owns us.
57 SearchResult* result_; // Weak. Owned by AppListModel::SearchResults. 57 SearchResult* result_; // Weak. Owned by AppListModel::SearchResults.
58 size_t row_in_view_; 58 size_t row_in_view_;
59 base::scoped_nsobject<MenuController> context_menu_controller_; 59 base::scoped_nsobject<MenuController> context_menu_controller_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(ItemObserver); 61 DISALLOW_COPY_AND_ASSIGN(ItemObserver);
62 }; 62 };
63 63
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 128 }
129 129
130 void AppsSearchResultsModelBridge::ListItemsChanged( 130 void AppsSearchResultsModelBridge::ListItemsChanged(
131 size_t start, size_t count) { 131 size_t start, size_t count) {
132 item_observers_.clear(); 132 item_observers_.clear();
133 ReloadDataForItems(start, count); 133 ReloadDataForItems(start, count);
134 UpdateItemObservers(); 134 UpdateItemObservers();
135 } 135 }
136 136
137 } // namespace app_list 137 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/cocoa/apps_search_results_model_bridge.h ('k') | ui/app_list/demo/app_list_demo_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698