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

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

Issue 1325853006: MD Downloads: wrap some <paper-buttons>s in <template is="dom-if"> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 #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 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void HandleDrag(const base::ListValue* args); 58 void HandleDrag(const base::ListValue* args);
59 59
60 // Callback for the "saveDangerous" message - specifies that the user 60 // Callback for the "saveDangerous" message - specifies that the user
61 // wishes to save a dangerous file. 61 // wishes to save a dangerous file.
62 void HandleSaveDangerous(const base::ListValue* args); 62 void HandleSaveDangerous(const base::ListValue* args);
63 63
64 // Callback for the "discardDangerous" message - specifies that the user 64 // Callback for the "discardDangerous" message - specifies that the user
65 // wishes to discard (remove) a dangerous file. 65 // wishes to discard (remove) a dangerous file.
66 void HandleDiscardDangerous(const base::ListValue* args); 66 void HandleDiscardDangerous(const base::ListValue* args);
67 67
68 // Callback for the "show" message - shows the file in explorer. 68 // Callback for the "showInFolder" message - shows the file in explorer.
69 void HandleShow(const base::ListValue* args); 69 void HandleShowInFolder(const base::ListValue* args);
70 70
71 // Callback for the "pause" message - pauses the file download. 71 // Callback for the "pause" message - pauses the file download.
72 void HandlePause(const base::ListValue* args); 72 void HandlePause(const base::ListValue* args);
73 73
74 // Callback for the "resume" message - resumes the file download. 74 // Callback for the "resume" message - resumes the file download.
75 void HandleResume(const base::ListValue* args); 75 void HandleResume(const base::ListValue* args);
76 76
77 // Callback for the "remove" message - removes the file download from shelf 77 // Callback for the "remove" message - removes the file download from shelf
78 // and list. 78 // and list.
79 void HandleRemove(const base::ListValue* args); 79 void HandleRemove(const base::ListValue* args);
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 // IDs of new downloads that the page doesn't know about yet. 170 // IDs of new downloads that the page doesn't know about yet.
171 std::set<uint32> new_downloads_; 171 std::set<uint32> new_downloads_;
172 172
173 base::WeakPtrFactory<DownloadsDOMHandler> weak_ptr_factory_; 173 base::WeakPtrFactory<DownloadsDOMHandler> weak_ptr_factory_;
174 174
175 DISALLOW_COPY_AND_ASSIGN(DownloadsDOMHandler); 175 DISALLOW_COPY_AND_ASSIGN(DownloadsDOMHandler);
176 }; 176 };
177 177
178 #endif // CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_ 178 #endif // CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698