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

Side by Side Diff: chrome/browser/ui/webui/downloads_dom_handler.h

Issue 7398026: Added a link to the downloads tab that opens the downloads folder. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added a period at the end of a comment. Created 9 years, 4 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
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 #ifndef CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Callback for the "remove" message - removes the file download from shelf 64 // Callback for the "remove" message - removes the file download from shelf
65 // and list. 65 // and list.
66 void HandleRemove(const base::ListValue* args); 66 void HandleRemove(const base::ListValue* args);
67 67
68 // Callback for the "cancel" message - cancels the download. 68 // Callback for the "cancel" message - cancels the download.
69 void HandleCancel(const base::ListValue* args); 69 void HandleCancel(const base::ListValue* args);
70 70
71 // Callback for the "clearAll" message - clears all the downloads. 71 // Callback for the "clearAll" message - clears all the downloads.
72 void HandleClearAll(const base::ListValue* args); 72 void HandleClearAll(const base::ListValue* args);
73 73
74 // Callback for the "openDownloadsFolder" message - opens the downloads
75 // folder.
76 void HandleOpenDownloadsFolder(const base::ListValue* args);
77
74 private: 78 private:
75 // Send the current list of downloads to the page. 79 // Send the current list of downloads to the page.
76 void SendCurrentDownloads(); 80 void SendCurrentDownloads();
77 81
78 // Clear all download items and their observers. 82 // Clear all download items and their observers.
79 void ClearDownloadItems(); 83 void ClearDownloadItems();
80 84
81 // Return the download that corresponds to a given id. 85 // Return the download that corresponds to a given id.
82 DownloadItem* GetDownloadById(int id); 86 DownloadItem* GetDownloadById(int id);
83 87
(...skipping 14 matching lines...) Expand all
98 // notification should follow close on the heels of such a change. 102 // notification should follow close on the heels of such a change.
99 typedef std::vector<DownloadItem*> OrderedDownloads; 103 typedef std::vector<DownloadItem*> OrderedDownloads;
100 OrderedDownloads download_items_; 104 OrderedDownloads download_items_;
101 105
102 base::ScopedCallbackFactory<DownloadsDOMHandler> callback_factory_; 106 base::ScopedCallbackFactory<DownloadsDOMHandler> callback_factory_;
103 107
104 DISALLOW_COPY_AND_ASSIGN(DownloadsDOMHandler); 108 DISALLOW_COPY_AND_ASSIGN(DownloadsDOMHandler);
105 }; 109 };
106 110
107 #endif // CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_ 111 #endif // CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698