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

Side by Side Diff: chrome/browser/dom_ui/filebrowse_ui.cc

Issue 6372003: Fixes problem with non-consitent active downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/dom_ui/filebrowse_ui.h" 5 #include "chrome/browser/dom_ui/filebrowse_ui.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 void FilebrowseHandler::OnListDone(int error) { 890 void FilebrowseHandler::OnListDone(int error) {
891 DictionaryValue info_value; 891 DictionaryValue info_value;
892 if (is_refresh_) { 892 if (is_refresh_) {
893 info_value.SetString("functionCall", "refresh"); 893 info_value.SetString("functionCall", "refresh");
894 } else { 894 } else {
895 info_value.SetString("functionCall", "getChildren"); 895 info_value.SetString("functionCall", "getChildren");
896 } 896 }
897 info_value.SetString(kPropertyPath, currentpath_.value()); 897 info_value.SetString(kPropertyPath, currentpath_.value());
898 dom_ui_->CallJavascriptFunction(L"browseFileResult", 898 dom_ui_->CallJavascriptFunction(L"browseFileResult",
899 info_value, *(filelist_value_.get())); 899 info_value, *(filelist_value_.get()));
900 SendCurrentDownloads();
901 } 900 }
902 901
903 void FilebrowseHandler::HandleGetMetadata(const ListValue* args) { 902 void FilebrowseHandler::HandleGetMetadata(const ListValue* args) {
904 } 903 }
905 904
906 void FilebrowseHandler::HandleGetDownloads(const ListValue* args) { 905 void FilebrowseHandler::HandleGetDownloads(const ListValue* args) {
907 UpdateDownloadList(); 906 UpdateDownloadList();
908 } 907 }
909 908
910 void FilebrowseHandler::ModelChanged() { 909 void FilebrowseHandler::ModelChanged() {
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 } 1217 }
1219 } 1218 }
1220 1219
1221 return NULL; 1220 return NULL;
1222 } 1221 }
1223 1222
1224 const int FileBrowseUI::kPopupWidth = 250; 1223 const int FileBrowseUI::kPopupWidth = 250;
1225 const int FileBrowseUI::kPopupHeight = 300; 1224 const int FileBrowseUI::kPopupHeight = 300;
1226 const int FileBrowseUI::kSmallPopupWidth = 250; 1225 const int FileBrowseUI::kSmallPopupWidth = 250;
1227 const int FileBrowseUI::kSmallPopupHeight = 50; 1226 const int FileBrowseUI::kSmallPopupHeight = 50;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698