| OLD | NEW |
| (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_ */ |
| OLD | NEW |