| OLD | NEW |
| 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 #import "chrome/browser/ui/cocoa/toolbar/reload_button.h" | 5 #import "chrome/browser/ui/cocoa/toolbar/reload_button.h" |
| 6 | 6 |
| 7 #include "chrome/app/chrome_command_ids.h" | 7 #include "chrome/app/chrome_command_ids.h" |
| 8 #import "chrome/browser/ui/cocoa/view_id_util.h" | 8 #import "chrome/browser/ui/cocoa/view_id_util.h" |
| 9 #include "grit/generated_resources.h" | 9 #include "chrome/grit/generated_resources.h" |
| 10 #include "grit/theme_resources.h" | 10 #include "grit/theme_resources.h" |
| 11 #include "ui/base/l10n/l10n_util.h" | 11 #include "ui/base/l10n/l10n_util.h" |
| 12 #include "ui/base/l10n/l10n_util_mac.h" | 12 #include "ui/base/l10n/l10n_util_mac.h" |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 // Constant matches Windows. | 16 // Constant matches Windows. |
| 17 NSTimeInterval kPendingReloadTimeout = 1.35; | 17 NSTimeInterval kPendingReloadTimeout = 1.35; |
| 18 | 18 |
| 19 } // namespace | 19 } // namespace |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 178 |
| 179 @end // ReloadButton | 179 @end // ReloadButton |
| 180 | 180 |
| 181 @implementation ReloadButton (Testing) | 181 @implementation ReloadButton (Testing) |
| 182 | 182 |
| 183 + (void)setPendingReloadTimeout:(NSTimeInterval)seconds { | 183 + (void)setPendingReloadTimeout:(NSTimeInterval)seconds { |
| 184 kPendingReloadTimeout = seconds; | 184 kPendingReloadTimeout = seconds; |
| 185 } | 185 } |
| 186 | 186 |
| 187 @end | 187 @end |
| OLD | NEW |