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_cocoa.h" | 5 #import "chrome/browser/ui/cocoa/toolbar/reload_button_cocoa.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "chrome/app/chrome_command_ids.h" | 10 #include "chrome/app/chrome_command_ids.h" |
11 #include "chrome/app/vector_icons/vector_icons.h" | 11 #include "chrome/app/vector_icons/vector_icons.h" |
12 #include "chrome/browser/command_updater.h" | 12 #include "chrome/browser/command_updater.h" |
13 #import "chrome/browser/ui/cocoa/accelerators_cocoa.h" | 13 #import "chrome/browser/ui/cocoa/accelerators_cocoa.h" |
14 #import "chrome/browser/ui/cocoa/themed_window.h" | 14 #import "chrome/browser/ui/cocoa/themed_window.h" |
15 #import "chrome/browser/ui/cocoa/view_id_util.h" | 15 #import "chrome/browser/ui/cocoa/view_id_util.h" |
16 #include "chrome/grit/generated_resources.h" | 16 #include "chrome/grit/generated_resources.h" |
17 #include "chrome/grit/theme_resources.h" | |
18 #include "ui/base/accelerators/platform_accelerator_cocoa.h" | 17 #include "ui/base/accelerators/platform_accelerator_cocoa.h" |
19 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
20 #include "ui/base/l10n/l10n_util_mac.h" | 19 #include "ui/base/l10n/l10n_util_mac.h" |
21 #include "ui/base/material_design/material_design_controller.h" | 20 #include "ui/base/material_design/material_design_controller.h" |
22 #import "ui/events/event_utils.h" | 21 #import "ui/events/event_utils.h" |
23 | 22 |
24 namespace { | 23 namespace { |
25 | 24 |
26 // Constant matches Windows. | 25 // Constant matches Windows. |
27 NSTimeInterval kPendingReloadTimeout = 1.35; | 26 NSTimeInterval kPendingReloadTimeout = 1.35; |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 | 257 |
259 @end // ReloadButton | 258 @end // ReloadButton |
260 | 259 |
261 @implementation ReloadButton (Testing) | 260 @implementation ReloadButton (Testing) |
262 | 261 |
263 + (void)setPendingReloadTimeout:(NSTimeInterval)seconds { | 262 + (void)setPendingReloadTimeout:(NSTimeInterval)seconds { |
264 kPendingReloadTimeout = seconds; | 263 kPendingReloadTimeout = seconds; |
265 } | 264 } |
266 | 265 |
267 @end | 266 @end |
OLD | NEW |