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 #import "chrome/browser/cocoa/reload_button.h" | 5 #import "chrome/browser/cocoa/reload_button.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/l10n_util_mac.h" | 8 #include "app/l10n_util_mac.h" |
9 #include "base/nsimage_cache_mac.h" | 9 #include "base/nsimage_cache_mac.h" |
10 #include "chrome/app/chrome_dll_resource.h" | 10 #include "chrome/app/chrome_command_ids.h" |
11 #import "chrome/browser/cocoa/gradient_button_cell.h" | 11 #import "chrome/browser/cocoa/gradient_button_cell.h" |
12 #import "chrome/browser/cocoa/view_id_util.h" | 12 #import "chrome/browser/cocoa/view_id_util.h" |
13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 NSString* const kReloadImageName = @"reload_Template.pdf"; | 17 NSString* const kReloadImageName = @"reload_Template.pdf"; |
18 NSString* const kStopImageName = @"stop_Template.pdf"; | 18 NSString* const kStopImageName = @"stop_Template.pdf"; |
19 | 19 |
20 // Constant matches Windows. | 20 // Constant matches Windows. |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 144 |
145 + (void)setPendingReloadTimeout:(NSTimeInterval)seconds { | 145 + (void)setPendingReloadTimeout:(NSTimeInterval)seconds { |
146 kPendingReloadTimeout = seconds; | 146 kPendingReloadTimeout = seconds; |
147 } | 147 } |
148 | 148 |
149 - (NSTrackingArea*)trackingArea { | 149 - (NSTrackingArea*)trackingArea { |
150 return trackingArea_; | 150 return trackingArea_; |
151 } | 151 } |
152 | 152 |
153 @end | 153 @end |
OLD | NEW |