| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_UI_COCOA_BOOKMARKS_BOOKMARK_ALL_TABS_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_ALL_TABS_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_ALL_TABS_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_ALL_TABS_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/string16.h" | 11 #include "base/strings/string16.h" |
| 12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.h" | 12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.h" |
| 13 | 13 |
| 14 // A list of pairs containing the name and URL associated with each | 14 // A list of pairs containing the name and URL associated with each |
| 15 // currently active tab in the active browser window. | 15 // currently active tab in the active browser window. |
| 16 typedef std::pair<string16, GURL> ActiveTabNameURLPair; | 16 typedef std::pair<string16, GURL> ActiveTabNameURLPair; |
| 17 typedef std::vector<ActiveTabNameURLPair> ActiveTabsNameURLPairVector; | 17 typedef std::vector<ActiveTabNameURLPair> ActiveTabsNameURLPairVector; |
| 18 | 18 |
| 19 // A controller for the Bookmark All Tabs sheet which is presented upon | 19 // A controller for the Bookmark All Tabs sheet which is presented upon |
| 20 // selecting the Bookmark All Tabs... menu item shown by the contextual | 20 // selecting the Bookmark All Tabs... menu item shown by the contextual |
| 21 // menu in the bookmarks bar. | 21 // menu in the bookmarks bar. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 38 // Initializes the list of all tab names and URLs. Overridden by unit test | 38 // Initializes the list of all tab names and URLs. Overridden by unit test |
| 39 // to provide canned test data. | 39 // to provide canned test data. |
| 40 - (void)UpdateActiveTabPairs; | 40 - (void)UpdateActiveTabPairs; |
| 41 | 41 |
| 42 // Provides testing access to tab pairs list. | 42 // Provides testing access to tab pairs list. |
| 43 - (ActiveTabsNameURLPairVector*)activeTabPairsVector; | 43 - (ActiveTabsNameURLPairVector*)activeTabPairsVector; |
| 44 | 44 |
| 45 @end | 45 @end |
| 46 | 46 |
| 47 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_ALL_TABS_CONTROLLER_H_ | 47 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_ALL_TABS_CONTROLLER_H_ |
| OLD | NEW |