OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/gtk/download_shelf_gtk.h" | 5 #include "chrome/browser/gtk/download_shelf_gtk.h" |
6 | 6 |
7 #include "base/gfx/gtk_util.h" | 7 #include "base/gfx/gtk_util.h" |
8 #include "base/logging.h" | |
9 #include "chrome/browser/download/download_item_model.h" | 8 #include "chrome/browser/download/download_item_model.h" |
10 #include "chrome/browser/gtk/custom_button.h" | 9 #include "chrome/browser/gtk/custom_button.h" |
11 #include "chrome/browser/gtk/download_item_gtk.h" | 10 #include "chrome/browser/gtk/download_item_gtk.h" |
12 #include "chrome/browser/tab_contents/tab_contents.h" | 11 #include "chrome/browser/tab_contents/tab_contents.h" |
13 #include "chrome/common/l10n_util.h" | 12 #include "chrome/common/l10n_util.h" |
14 #include "chrome/common/resource_bundle.h" | 13 #include "chrome/common/resource_bundle.h" |
15 #include "grit/generated_resources.h" | 14 #include "grit/generated_resources.h" |
16 #include "grit/theme_resources.h" | 15 #include "grit/theme_resources.h" |
17 | 16 |
18 namespace { | 17 namespace { |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 // static | 205 // static |
207 void DownloadShelfGtk::OnButtonClick(GtkWidget* button, | 206 void DownloadShelfGtk::OnButtonClick(GtkWidget* button, |
208 DownloadShelfGtk* shelf) { | 207 DownloadShelfGtk* shelf) { |
209 if (button == shelf->close_button_->widget()) { | 208 if (button == shelf->close_button_->widget()) { |
210 shelf->Hide(); | 209 shelf->Hide(); |
211 } else { | 210 } else { |
212 // The link button was clicked. | 211 // The link button was clicked. |
213 shelf->ShowAllDownloads(); | 212 shelf->ShowAllDownloads(); |
214 } | 213 } |
215 } | 214 } |
OLD | NEW |