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

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

Issue 357005: Implement Bookmark All Tabs... using the BookmarkEditorController and determi... (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
Property Changes:
Name: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_COCOA_BOOKMARK_ALL_TABS_CONTROLLER_H_
6 #define CHROME_BROWSER_COCOA_BOOKMARK_ALL_TABS_CONTROLLER_H_
7
8 #include <utility>
9 #include <vector>
10
11 #import "chrome/browser/cocoa/bookmark_editor_base_controller.h"
12
13 // A list of pairs containing the name and URL associated with each
14 // currently active tab in the active browser window.
15 typedef std::pair<std::wstring, GURL> ActiveTabNameURLPair;
16 typedef std::vector<ActiveTabNameURLPair> ActiveTabsNameURLPairVector;
17
18 // A controller for the bookmark editor, opened with Edit... from the
19 // context menu of a bookmark button.
20 @interface BookmarkAllTabsController : BookmarkEditorBaseController {
21 @private
22 ActiveTabsNameURLPairVector activeTabPairsVector_;
23 }
24
25 - (id)initWithParentWindow:(NSWindow*)parentWindow
26 profile:(Profile*)profile
27 parent:(const BookmarkNode*)parent
28 configuration:(BookmarkEditor::Configuration)configuration
29 handler:(BookmarkEditor::Handler*)handler;
30
31 @end
32
33 @interface BookmarkAllTabsController(TestingAPI)
34
35 // Initializes the list of all tab names and URLs. Overridden by unit test
36 // to provide canned test data.
37 - (void)UpdateActiveTabPairs;
38
39 // Provides testing access to tab pairs list.
40 - (ActiveTabsNameURLPairVector*)activeTabPairsVector;
41
42 @end
43
44 #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