| 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 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 kVisited = 460, // Used for all entries in the visited section. | 122 kVisited = 460, // Used for all entries in the visited section. |
| 123 kShowFullSeparator = 480 // Separator after the visited section. | 123 kShowFullSeparator = 480 // Separator after the visited section. |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 explicit HistoryMenuBridge(Profile* profile); | 126 explicit HistoryMenuBridge(Profile* profile); |
| 127 virtual ~HistoryMenuBridge(); | 127 virtual ~HistoryMenuBridge(); |
| 128 | 128 |
| 129 // content::NotificationObserver: | 129 // content::NotificationObserver: |
| 130 virtual void Observe(int type, | 130 virtual void Observe(int type, |
| 131 const content::NotificationSource& source, | 131 const content::NotificationSource& source, |
| 132 const content::NotificationDetails& details) OVERRIDE; | 132 const content::NotificationDetails& details) override; |
| 133 | 133 |
| 134 // TabRestoreServiceObserver: | 134 // TabRestoreServiceObserver: |
| 135 virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE; | 135 virtual void TabRestoreServiceChanged(TabRestoreService* service) override; |
| 136 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) OVERRIDE; | 136 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) override; |
| 137 | 137 |
| 138 // MainMenuItem: | 138 // MainMenuItem: |
| 139 virtual void ResetMenu() OVERRIDE; | 139 virtual void ResetMenu() override; |
| 140 virtual void BuildMenu() OVERRIDE; | 140 virtual void BuildMenu() override; |
| 141 | 141 |
| 142 // Looks up an NSMenuItem in the |menu_item_map_| and returns the | 142 // Looks up an NSMenuItem in the |menu_item_map_| and returns the |
| 143 // corresponding HistoryItem. | 143 // corresponding HistoryItem. |
| 144 HistoryItem* HistoryItemForMenuItem(NSMenuItem* item); | 144 HistoryItem* HistoryItemForMenuItem(NSMenuItem* item); |
| 145 | 145 |
| 146 // I wish I has a "friend @class" construct. These are used by the HMCC | 146 // I wish I has a "friend @class" construct. These are used by the HMCC |
| 147 // to access model information when responding to actions. | 147 // to access model information when responding to actions. |
| 148 HistoryService* service(); | 148 HistoryService* service(); |
| 149 Profile* profile(); | 149 Profile* profile(); |
| 150 | 150 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 bool create_in_progress_; | 223 bool create_in_progress_; |
| 224 bool need_recreate_; | 224 bool need_recreate_; |
| 225 | 225 |
| 226 // The default favicon if a HistoryItem does not have one. | 226 // The default favicon if a HistoryItem does not have one. |
| 227 base::scoped_nsobject<NSImage> default_favicon_; | 227 base::scoped_nsobject<NSImage> default_favicon_; |
| 228 | 228 |
| 229 DISALLOW_COPY_AND_ASSIGN(HistoryMenuBridge); | 229 DISALLOW_COPY_AND_ASSIGN(HistoryMenuBridge); |
| 230 }; | 230 }; |
| 231 | 231 |
| 232 #endif // CHROME_BROWSER_UI_COCOA_HISTORY_MENU_BRIDGE_H_ | 232 #endif // CHROME_BROWSER_UI_COCOA_HISTORY_MENU_BRIDGE_H_ |
| OLD | NEW |