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

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: Move the 'user acted' flag into DownloadItemModelData and get rid of SetOpened/SetShown in Download… Created 6 years, 6 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 (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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::OnDownloadRemoved( 60 void AllDownloadItemNotifier::OnDownloadRemoved(
61 content::DownloadItem* item) { 61 content::DownloadItem* item) {
62 observer_->OnDownloadRemoved(manager_, item); 62 observer_->OnDownloadRemoved(manager_, item);
63 } 63 }
64 64
65 void AllDownloadItemNotifier::OnDownloadShown(
66 content::DownloadItem* item) {
67 observer_->OnDownloadShown(manager_, item);
68 }
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

Powered by Google App Engine
This is Rietveld 408576698