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

Side by Side Diff: chrome/browser/cocoa/bookmark_all_tabs_controller.h

Issue 393006: Change the folder presentation in the Bookmark Editor and the Bookmark All Ta... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_COCOA_BOOKMARK_ALL_TABS_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_COCOA_BOOKMARK_ALL_TABS_CONTROLLER_H_
6 #define CHROME_BROWSER_COCOA_BOOKMARK_ALL_TABS_CONTROLLER_H_ 6 #define CHROME_BROWSER_COCOA_BOOKMARK_ALL_TABS_CONTROLLER_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #import "chrome/browser/cocoa/bookmark_editor_base_controller.h" 11 #import "chrome/browser/cocoa/bookmark_editor_base_controller.h"
12 12
13 // A list of pairs containing the name and URL associated with each 13 // A list of pairs containing the name and URL associated with each
14 // currently active tab in the active browser window. 14 // currently active tab in the active browser window.
15 typedef std::pair<std::wstring, GURL> ActiveTabNameURLPair; 15 typedef std::pair<std::wstring, GURL> ActiveTabNameURLPair;
16 typedef std::vector<ActiveTabNameURLPair> ActiveTabsNameURLPairVector; 16 typedef std::vector<ActiveTabNameURLPair> ActiveTabsNameURLPairVector;
17 17
18 // A controller for the bookmark editor, opened with Edit... from the 18 // A controller for the Bookmark All Tabs sheet which is presented upon
19 // context menu of a bookmark button. 19 // selecting the Bookmark All Tabs... menu item shown by the contextual
20 // menu in the bookmarks bar.
20 @interface BookmarkAllTabsController : BookmarkEditorBaseController { 21 @interface BookmarkAllTabsController : BookmarkEditorBaseController {
21 @private 22 @private
22 ActiveTabsNameURLPairVector activeTabPairsVector_; 23 ActiveTabsNameURLPairVector activeTabPairsVector_;
23 } 24 }
24 25
25 - (id)initWithParentWindow:(NSWindow*)parentWindow 26 - (id)initWithParentWindow:(NSWindow*)parentWindow
26 profile:(Profile*)profile 27 profile:(Profile*)profile
27 parent:(const BookmarkNode*)parent 28 parent:(const BookmarkNode*)parent
28 configuration:(BookmarkEditor::Configuration)configuration 29 configuration:(BookmarkEditor::Configuration)configuration
29 handler:(BookmarkEditor::Handler*)handler; 30 handler:(BookmarkEditor::Handler*)handler;
30 31
31 @end 32 @end
32 33
33 @interface BookmarkAllTabsController(TestingAPI) 34 @interface BookmarkAllTabsController(TestingAPI)
34 35
35 // Initializes the list of all tab names and URLs. Overridden by unit test 36 // Initializes the list of all tab names and URLs. Overridden by unit test
36 // to provide canned test data. 37 // to provide canned test data.
37 - (void)UpdateActiveTabPairs; 38 - (void)UpdateActiveTabPairs;
38 39
39 // Provides testing access to tab pairs list. 40 // Provides testing access to tab pairs list.
40 - (ActiveTabsNameURLPairVector*)activeTabPairsVector; 41 - (ActiveTabsNameURLPairVector*)activeTabPairsVector;
41 42
42 @end 43 @end
43 44
44 #endif /* CHROME_BROWSER_COCOA_BOOKMARK_ALL_TABS_CONTROLLER_H_ */ 45 #endif /* CHROME_BROWSER_COCOA_BOOKMARK_ALL_TABS_CONTROLLER_H_ */
OLDNEW
« no previous file with comments | « chrome/app/nibs/BookmarkEditor.xib ('k') | chrome/browser/cocoa/bookmark_all_tabs_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698