| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UI_COCOA_HISTORY_MENU_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_HISTORY_MENU_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_HISTORY_MENU_BRIDGE_H_ | 6 #define CHROME_BROWSER_UI_COCOA_HISTORY_MENU_BRIDGE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 kRecentlyClosedSeparator = 440, // Item before recently closed section. | 119 kRecentlyClosedSeparator = 440, // Item before recently closed section. |
| 120 kRecentlyClosedTitle = 441, // Title of recently closed section. | 120 kRecentlyClosedTitle = 441, // Title of recently closed section. |
| 121 kRecentlyClosed = 460, // Used for items in the recently closed section. | 121 kRecentlyClosed = 460, // Used for items in the recently closed section. |
| 122 kShowFullSeparator = 480 // Separator after the recently closed section. | 122 kShowFullSeparator = 480 // Separator after the recently closed section. |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 explicit HistoryMenuBridge(Profile* profile); | 125 explicit HistoryMenuBridge(Profile* profile); |
| 126 virtual ~HistoryMenuBridge(); | 126 virtual ~HistoryMenuBridge(); |
| 127 | 127 |
| 128 // NotificationObserver: | 128 // NotificationObserver: |
| 129 virtual void Observe(NotificationType type, | 129 virtual void Observe(int type, |
| 130 const NotificationSource& source, | 130 const NotificationSource& source, |
| 131 const NotificationDetails& details); | 131 const NotificationDetails& details); |
| 132 | 132 |
| 133 // TabRestoreServiceObserver: | 133 // TabRestoreServiceObserver: |
| 134 virtual void TabRestoreServiceChanged(TabRestoreService* service); | 134 virtual void TabRestoreServiceChanged(TabRestoreService* service); |
| 135 virtual void TabRestoreServiceDestroyed(TabRestoreService* service); | 135 virtual void TabRestoreServiceDestroyed(TabRestoreService* service); |
| 136 | 136 |
| 137 // MainMenuItem: | 137 // MainMenuItem: |
| 138 virtual void ResetMenu(); | 138 virtual void ResetMenu(); |
| 139 virtual void BuildMenu(); | 139 virtual void BuildMenu(); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 bool create_in_progress_; | 226 bool create_in_progress_; |
| 227 bool need_recreate_; | 227 bool need_recreate_; |
| 228 | 228 |
| 229 // The default favicon if a HistoryItem does not have one. | 229 // The default favicon if a HistoryItem does not have one. |
| 230 scoped_nsobject<NSImage> default_favicon_; | 230 scoped_nsobject<NSImage> default_favicon_; |
| 231 | 231 |
| 232 DISALLOW_COPY_AND_ASSIGN(HistoryMenuBridge); | 232 DISALLOW_COPY_AND_ASSIGN(HistoryMenuBridge); |
| 233 }; | 233 }; |
| 234 | 234 |
| 235 #endif // CHROME_BROWSER_UI_COCOA_HISTORY_MENU_BRIDGE_H_ | 235 #endif // CHROME_BROWSER_UI_COCOA_HISTORY_MENU_BRIDGE_H_ |
| OLD | NEW |