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

Side by Side Diff: chrome/browser/download/all_download_item_notifier.cc

Issue 209613002: Download shelf autohides on showing in shell, just same as regular open Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added browser and unit tests. Renamed 'UserActed' to 'OpenedOrShown'. Created 4 years, 1 month 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 (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 "chrome/browser/download/all_download_item_notifier.h" 5 #include "chrome/browser/download/all_download_item_notifier.h"
6 6
7 AllDownloadItemNotifier::AllDownloadItemNotifier( 7 AllDownloadItemNotifier::AllDownloadItemNotifier(
8 content::DownloadManager* manager, 8 content::DownloadManager* manager,
9 AllDownloadItemNotifier::Observer* observer) 9 AllDownloadItemNotifier::Observer* observer)
10 : manager_(manager), 10 : manager_(manager),
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void AllDownloadItemNotifier::OnDownloadUpdated( 50 void AllDownloadItemNotifier::OnDownloadUpdated(
51 content::DownloadItem* item) { 51 content::DownloadItem* item) {
52 observer_->OnDownloadUpdated(manager_, item); 52 observer_->OnDownloadUpdated(manager_, item);
53 } 53 }
54 54
55 void AllDownloadItemNotifier::OnDownloadOpened( 55 void AllDownloadItemNotifier::OnDownloadOpened(
56 content::DownloadItem* item) { 56 content::DownloadItem* item) {
57 observer_->OnDownloadOpened(manager_, item); 57 observer_->OnDownloadOpened(manager_, item);
58 } 58 }
59 59
60 void AllDownloadItemNotifier::OnDownloadShown(
61 content::DownloadItem* item) {
62 observer_->OnDownloadShown(manager_, item);
63 }
64
60 void AllDownloadItemNotifier::OnDownloadRemoved( 65 void AllDownloadItemNotifier::OnDownloadRemoved(
61 content::DownloadItem* item) { 66 content::DownloadItem* item) {
62 observer_->OnDownloadRemoved(manager_, item); 67 observer_->OnDownloadRemoved(manager_, item);
63 } 68 }
64 69
65 void AllDownloadItemNotifier::OnDownloadDestroyed( 70 void AllDownloadItemNotifier::OnDownloadDestroyed(
66 content::DownloadItem* item) { 71 content::DownloadItem* item) {
67 item->RemoveObserver(this); 72 item->RemoveObserver(this);
68 observing_.erase(item); 73 observing_.erase(item);
69 } 74 }
OLDNEW
« no previous file with comments | « chrome/browser/download/all_download_item_notifier.h ('k') | chrome/browser/download/all_download_item_notifier_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698