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

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

Issue 865163003: bookmarks: Move BookmarkNode into 'bookmarks' namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enhanced_bookmarks fix Created 5 years, 10 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
OLDNEW
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/strings/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<base::string16, GURL> ActiveTabNameURLPair; 16 typedef std::pair<base::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.
22 @interface BookmarkAllTabsController : BookmarkEditorBaseController { 22 @interface BookmarkAllTabsController : BookmarkEditorBaseController {
23 @private 23 @private
24 ActiveTabsNameURLPairVector activeTabPairsVector_; 24 ActiveTabsNameURLPairVector activeTabPairsVector_;
25 } 25 }
26 26
27 - (id)initWithParentWindow:(NSWindow*)parentWindow 27 - (id)initWithParentWindow:(NSWindow*)parentWindow
28 profile:(Profile*)profile 28 profile:(Profile*)profile
29 parent:(const BookmarkNode*)parent 29 parent:(const bookmarks::BookmarkNode*)parent
30 url:(const GURL&)url 30 url:(const GURL&)url
31 title:(const base::string16&)title 31 title:(const base::string16&)title
32 configuration:(BookmarkEditor::Configuration)configuration; 32 configuration:(BookmarkEditor::Configuration)configuration;
33 33
34 @end 34 @end
35 35
36 @interface BookmarkAllTabsController(TestingAPI) 36 @interface BookmarkAllTabsController(TestingAPI)
37 37
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698