OLD | NEW |
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/ui/webui/chromeos/active_downloads_ui.h" | 5 #include "chrome/browser/ui/webui/chromeos/active_downloads_ui.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 item->Delete(DownloadItem::DELETE_DUE_TO_USER_DISCARD); | 238 item->Delete(DownloadItem::DELETE_DUE_TO_USER_DISCARD); |
239 } | 239 } |
240 } | 240 } |
241 | 241 |
242 void ActiveDownloadsHandler::HandleShowAllFiles(const ListValue* args) { | 242 void ActiveDownloadsHandler::HandleShowAllFiles(const ListValue* args) { |
243 file_manager_util::ViewFolder( | 243 file_manager_util::ViewFolder( |
244 DownloadPrefs::FromDownloadManager(download_manager_)->download_path()); | 244 DownloadPrefs::FromDownloadManager(download_manager_)->download_path()); |
245 } | 245 } |
246 | 246 |
247 void ActiveDownloadsHandler::ViewFile(const ListValue* args) { | 247 void ActiveDownloadsHandler::ViewFile(const ListValue* args) { |
248 file_manager_util::ViewFile(FilePath(UTF16ToUTF8(ExtractStringValue(args))), | 248 file_manager_util::ViewFile(FilePath(UTF16ToUTF8(ExtractStringValue(args)))); |
249 false); | |
250 } | 249 } |
251 | 250 |
252 void ActiveDownloadsHandler::ModelChanged(DownloadManager* manager) { | 251 void ActiveDownloadsHandler::ModelChanged(DownloadManager* manager) { |
253 UpdateDownloadList(); | 252 UpdateDownloadList(); |
254 } | 253 } |
255 | 254 |
256 void ActiveDownloadsHandler::HandleGetDownloads(const ListValue* args) { | 255 void ActiveDownloadsHandler::HandleGetDownloads(const ListValue* args) { |
257 UpdateDownloadList(); | 256 UpdateDownloadList(); |
258 } | 257 } |
259 | 258 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 return (*it); | 393 return (*it); |
395 } | 394 } |
396 } | 395 } |
397 } | 396 } |
398 return NULL; | 397 return NULL; |
399 } | 398 } |
400 | 399 |
401 const ActiveDownloadsUI::DownloadList& ActiveDownloadsUI::GetDownloads() const { | 400 const ActiveDownloadsUI::DownloadList& ActiveDownloadsUI::GetDownloads() const { |
402 return handler_->downloads(); | 401 return handler_->downloads(); |
403 } | 402 } |
OLD | NEW |