| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/reload_button_gtk.h" | 5 #include "chrome/browser/gtk/reload_button_gtk.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "chrome/app/chrome_dll_resource.h" | 9 #include "chrome/app/chrome_command_ids.h" |
| 10 #include "chrome/browser/browser.h" | 10 #include "chrome/browser/browser.h" |
| 11 #include "chrome/browser/gtk/gtk_chrome_button.h" | 11 #include "chrome/browser/gtk/gtk_chrome_button.h" |
| 12 #include "chrome/browser/gtk/gtk_theme_provider.h" | 12 #include "chrome/browser/gtk/gtk_theme_provider.h" |
| 13 #include "chrome/browser/gtk/gtk_util.h" | 13 #include "chrome/browser/gtk/gtk_util.h" |
| 14 #include "chrome/browser/gtk/location_bar_view_gtk.h" | 14 #include "chrome/browser/gtk/location_bar_view_gtk.h" |
| 15 #include "chrome/common/notification_service.h" | 15 #include "chrome/common/notification_service.h" |
| 16 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
| 17 #include "grit/theme_resources.h" | 17 #include "grit/theme_resources.h" |
| 18 | 18 |
| 19 // The width of this button in GTK+ theme mode. The Stop and Refresh stock icons | 19 // The width of this button in GTK+ theme mode. The Stop and Refresh stock icons |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 gtk_chrome_button_set_use_gtk_rendering(GTK_CHROME_BUTTON(widget()), use_gtk); | 268 gtk_chrome_button_set_use_gtk_rendering(GTK_CHROME_BUTTON(widget()), use_gtk); |
| 269 } | 269 } |
| 270 | 270 |
| 271 void ReloadButtonGtk::OnDoubleClickTimer() { | 271 void ReloadButtonGtk::OnDoubleClickTimer() { |
| 272 ChangeMode(intended_mode_, false); | 272 ChangeMode(intended_mode_, false); |
| 273 } | 273 } |
| 274 | 274 |
| 275 void ReloadButtonGtk::OnStopToReloadTimer() { | 275 void ReloadButtonGtk::OnStopToReloadTimer() { |
| 276 ChangeMode(intended_mode_, true); | 276 ChangeMode(intended_mode_, true); |
| 277 } | 277 } |
| OLD | NEW |