Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: chrome/browser/jumplist.h

Issue 159398: Enable JumpList by default on Windows 7.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/jumplist.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/jumplist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698