| OLD | NEW |
| 1 // Copyright (c) 2009 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/gtk/download_shelf_gtk.h" | 5 #include "chrome/browser/gtk/download_shelf_gtk.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
| 11 #include "chrome/browser/download/download_item.h" | 11 #include "chrome/browser/download/download_item.h" |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 } | 260 } |
| 261 | 261 |
| 262 void DownloadShelfGtk::OnButtonClick(GtkWidget* button) { | 262 void DownloadShelfGtk::OnButtonClick(GtkWidget* button) { |
| 263 if (button == close_button_->widget()) { | 263 if (button == close_button_->widget()) { |
| 264 Close(); | 264 Close(); |
| 265 } else { | 265 } else { |
| 266 // The link button was clicked. | 266 // The link button was clicked. |
| 267 browser_->ShowDownloadsTab(); | 267 browser_->ShowDownloadsTab(); |
| 268 } | 268 } |
| 269 } | 269 } |
| OLD | NEW |