| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_JUMPLIST_H_ | 5 #ifndef CHROME_BROWSER_JUMPLIST_H_ |
| 6 #define CHROME_BROWSER_JUMPLIST_H_ | 6 #define CHROME_BROWSER_JUMPLIST_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // OnSegmentUsageAvailable(). | 114 // OnSegmentUsageAvailable(). |
| 115 virtual void TabRestoreServiceChanged(TabRestoreService* service); | 115 virtual void TabRestoreServiceChanged(TabRestoreService* service); |
| 116 | 116 |
| 117 // Observer callback to notice when our associated TabRestoreService | 117 // Observer callback to notice when our associated TabRestoreService |
| 118 // is destroyed. | 118 // is destroyed. |
| 119 virtual void TabRestoreServiceDestroyed(TabRestoreService* service); | 119 virtual void TabRestoreServiceDestroyed(TabRestoreService* service); |
| 120 | 120 |
| 121 // Returns true if the custom JumpList is enabled. | 121 // Returns true if the custom JumpList is enabled. |
| 122 // We use the custom JumpList when we satisfy the following conditions: | 122 // We use the custom JumpList when we satisfy the following conditions: |
| 123 // * Chromium is running on Windows 7 and; | 123 // * Chromium is running on Windows 7 and; |
| 124 // * Chromium is lauched with an "--enable-custom-jumplist" option. | 124 // * Chromium is lauched without a "--disable-custom-jumplist" option. |
| 125 // TODO(hbono): to be enabled by default when we finalize the categories and | 125 // TODO(hbono): to be enabled by default when we finalize the categories and |
| 126 // items of our JumpList. | 126 // items of our JumpList. |
| 127 static bool Enabled(); | 127 static bool Enabled(); |
| 128 | 128 |
| 129 protected: | 129 protected: |
| 130 // Creates a ShellLinkItem object from a tab (or a window) and add it to the | 130 // Creates a ShellLinkItem object from a tab (or a window) and add it to the |
| 131 // given list. | 131 // given list. |
| 132 // These functions are copied from the RecentlyClosedTabsHandler class for | 132 // These functions are copied from the RecentlyClosedTabsHandler class for |
| 133 // compatibility with the new-tab page. | 133 // compatibility with the new-tab page. |
| 134 bool AddTab(const TabRestoreService::Tab* tab, | 134 bool AddTab(const TabRestoreService::Tab* tab, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 177 |
| 178 // Items in the "Recently Closed" category of the application JumpList. | 178 // Items in the "Recently Closed" category of the application JumpList. |
| 179 ShellLinkItemList recently_closed_pages_; | 179 ShellLinkItemList recently_closed_pages_; |
| 180 | 180 |
| 181 // A list of URLs we need to retrieve their fav icons. | 181 // A list of URLs we need to retrieve their fav icons. |
| 182 typedef std::pair<std::string, scoped_refptr<ShellLinkItem> > URLPair; | 182 typedef std::pair<std::string, scoped_refptr<ShellLinkItem> > URLPair; |
| 183 std::list<URLPair> icon_urls_; | 183 std::list<URLPair> icon_urls_; |
| 184 }; | 184 }; |
| 185 | 185 |
| 186 #endif // CHROME_BROWSER_JUMPLIST_H_ | 186 #endif // CHROME_BROWSER_JUMPLIST_H_ |
| OLD | NEW |