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

Side by Side Diff: chrome/browser/bookmarks/bookmark_utils.h

Issue 115831: Converts a bunch things from NativeWindow to NativeView to make it... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/bookmarks/bookmark_editor.h ('k') | chrome/browser/bookmarks/bookmark_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_BOOKMARKS_BOOKMARK_UTILS_H_ 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/gfx/native_widget_types.h" 10 #include "base/gfx/native_widget_types.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 void CloneDragData(BookmarkModel* model, 66 void CloneDragData(BookmarkModel* model,
67 const std::vector<BookmarkDragData::Element>& elements, 67 const std::vector<BookmarkDragData::Element>& elements,
68 BookmarkNode* parent, 68 BookmarkNode* parent,
69 int index_to_add_at); 69 int index_to_add_at);
70 70
71 // Recursively opens all bookmarks. |initial_disposition| dictates how the 71 // Recursively opens all bookmarks. |initial_disposition| dictates how the
72 // first URL is opened, all subsequent URLs are opened as background tabs. 72 // first URL is opened, all subsequent URLs are opened as background tabs.
73 // |navigator| is used to open the URLs. If |navigator| is NULL the last 73 // |navigator| is used to open the URLs. If |navigator| is NULL the last
74 // tabbed browser with the profile |profile| is used. If there is no browser 74 // tabbed browser with the profile |profile| is used. If there is no browser
75 // with the specified profile a new one is created. 75 // with the specified profile a new one is created.
76 void OpenAll(gfx::NativeWindow parent, 76 void OpenAll(gfx::NativeView parent,
77 Profile* profile, 77 Profile* profile,
78 PageNavigator* navigator, 78 PageNavigator* navigator,
79 const std::vector<BookmarkNode*>& nodes, 79 const std::vector<BookmarkNode*>& nodes,
80 WindowOpenDisposition initial_disposition); 80 WindowOpenDisposition initial_disposition);
81 81
82 // Convenience for opening a single BookmarkNode. 82 // Convenience for opening a single BookmarkNode.
83 void OpenAll(gfx::NativeWindow parent, 83 void OpenAll(gfx::NativeView parent,
84 Profile* profile, 84 Profile* profile,
85 PageNavigator* navigator, 85 PageNavigator* navigator,
86 BookmarkNode* node, 86 BookmarkNode* node,
87 WindowOpenDisposition initial_disposition); 87 WindowOpenDisposition initial_disposition);
88 88
89 // Copies nodes onto the clipboard. If |remove_nodes| is true the nodes are 89 // Copies nodes onto the clipboard. If |remove_nodes| is true the nodes are
90 // removed after copied to the clipboard. The nodes are copied in such a way 90 // removed after copied to the clipboard. The nodes are copied in such a way
91 // that if pasted again copies are made. 91 // that if pasted again copies are made.
92 void CopyToClipboard(BookmarkModel* model, 92 void CopyToClipboard(BookmarkModel* model,
93 const std::vector<BookmarkNode*>& nodes, 93 const std::vector<BookmarkNode*>& nodes,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Number of bookmarks we'll open before prompting the user to see if they 164 // Number of bookmarks we'll open before prompting the user to see if they
165 // really want to open all. 165 // really want to open all.
166 // 166 //
167 // NOTE: treat this as a const. It is not const as various tests change the 167 // NOTE: treat this as a const. It is not const as various tests change the
168 // value. 168 // value.
169 extern int num_urls_before_prompting; 169 extern int num_urls_before_prompting;
170 170
171 } // namespace bookmark_utils 171 } // namespace bookmark_utils
172 172
173 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ 173 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_editor.h ('k') | chrome/browser/bookmarks/bookmark_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698