| 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" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 // Contents of the Reload drop-down menu. | 28 // Contents of the Reload drop-down menu. |
| 29 const int kReloadMenuItems[] = { | 29 const int kReloadMenuItems[] = { |
| 30 IDS_RELOAD_MENU_NORMAL_RELOAD_ITEM, | 30 IDS_RELOAD_MENU_NORMAL_RELOAD_ITEM, |
| 31 IDS_RELOAD_MENU_HARD_RELOAD_ITEM, | 31 IDS_RELOAD_MENU_HARD_RELOAD_ITEM, |
| 32 IDS_RELOAD_MENU_EMPTY_AND_HARD_RELOAD_ITEM, | 32 IDS_RELOAD_MENU_EMPTY_AND_HARD_RELOAD_ITEM, |
| 33 }; | 33 }; |
| 34 // Note: must have the same size as |kReloadMenuItems|. | 34 // Note: must have the same size as |kReloadMenuItems|. |
| 35 const int kReloadMenuCommands[] = { | 35 const int kReloadMenuCommands[] = { |
| 36 IDC_RELOAD, | 36 IDC_RELOAD, |
| 37 IDC_RELOAD_IGNORING_CACHE, | 37 IDC_RELOAD_BYPASSING_CACHE, |
| 38 IDC_RELOAD_CLEARING_CACHE, | 38 IDC_RELOAD_CLEARING_CACHE, |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 } // namespace | 41 } // namespace |
| 42 | 42 |
| 43 @interface ReloadButton () | 43 @interface ReloadButton () |
| 44 - (void)invalidatePendingReloadTimer; | 44 - (void)invalidatePendingReloadTimer; |
| 45 - (void)forceReloadState:(NSTimer *)timer; | 45 - (void)forceReloadState:(NSTimer *)timer; |
| 46 - (void)populateMenu; | 46 - (void)populateMenu; |
| 47 @end | 47 @end |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 | 300 |
| 301 @end // ReloadButton | 301 @end // ReloadButton |
| 302 | 302 |
| 303 @implementation ReloadButton (Testing) | 303 @implementation ReloadButton (Testing) |
| 304 | 304 |
| 305 + (void)setPendingReloadTimeout:(NSTimeInterval)seconds { | 305 + (void)setPendingReloadTimeout:(NSTimeInterval)seconds { |
| 306 kPendingReloadTimeout = seconds; | 306 kPendingReloadTimeout = seconds; |
| 307 } | 307 } |
| 308 | 308 |
| 309 @end | 309 @end |
| OLD | NEW |