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

Side by Side Diff: ui/app_list/views/app_list_view.cc

Issue 593563002: For Mac, add AppListViewDelegateObserver::OnShutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cl format, nits Created 6 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
« no previous file with comments | « ui/app_list/views/app_list_view.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "ui/app_list/views/app_list_view.h" 5 #include "ui/app_list/views/app_list_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 } 275 }
276 276
277 void AppListView::Prerender() { 277 void AppListView::Prerender() {
278 app_list_main_view_->Prerender(); 278 app_list_main_view_->Prerender();
279 } 279 }
280 280
281 void AppListView::OnProfilesChanged() { 281 void AppListView::OnProfilesChanged() {
282 app_list_main_view_->search_box_view()->InvalidateMenu(); 282 app_list_main_view_->search_box_view()->InvalidateMenu();
283 } 283 }
284 284
285 void AppListView::OnShutdown() {
286 // Nothing to do on views - the widget will soon be closed, which will tear
287 // everything down.
288 }
289
285 void AppListView::SetProfileByPath(const base::FilePath& profile_path) { 290 void AppListView::SetProfileByPath(const base::FilePath& profile_path) {
286 delegate_->SetProfileByPath(profile_path); 291 delegate_->SetProfileByPath(profile_path);
287 app_list_main_view_->ModelChanged(); 292 app_list_main_view_->ModelChanged();
288 } 293 }
289 294
290 void AppListView::AddObserver(AppListViewObserver* observer) { 295 void AppListView::AddObserver(AppListViewObserver* observer) {
291 observers_.AddObserver(observer); 296 observers_.AddObserver(observer);
292 } 297 }
293 298
294 void AppListView::RemoveObserver(AppListViewObserver* observer) { 299 void AppListView::RemoveObserver(AppListViewObserver* observer) {
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 speech_view_->layer()->SetTransform(speech_transform); 595 speech_view_->layer()->SetTransform(speech_transform);
591 } 596 }
592 597
593 if (will_appear) 598 if (will_appear)
594 speech_view_->SetVisible(true); 599 speech_view_->SetVisible(true);
595 else 600 else
596 app_list_main_view_->SetVisible(true); 601 app_list_main_view_->SetVisible(true);
597 } 602 }
598 603
599 } // namespace app_list 604 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698