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

Side by Side Diff: chrome/browser/bookmarks/bookmark_editor.cc

Issue 8497008: Implement Bookmark All Tabs Dialog with WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/bookmarks/bookmark_editor.h" 5 #include "chrome/browser/bookmarks/bookmark_editor.h"
6 #include "chrome/browser/bookmarks/bookmark_model.h" 6 #include "chrome/browser/bookmarks/bookmark_model.h"
7 #include "chrome/browser/ui/webui/chrome_web_ui.h" 7 #include "chrome/browser/ui/webui/chrome_web_ui.h"
8 #include "chrome/browser/ui/webui/bookmark_all_tabs_dialog.h"
8 9
9 BookmarkEditor::EditDetails::EditDetails(Type node_type) 10 BookmarkEditor::EditDetails::EditDetails(Type node_type)
10 : type(node_type), existing_node(NULL), parent_node(NULL) { 11 : type(node_type), existing_node(NULL), parent_node(NULL) {
11 } 12 }
12 13
13 BookmarkEditor::EditDetails BookmarkEditor::EditDetails::EditNode( 14 BookmarkEditor::EditDetails BookmarkEditor::EditDetails::EditNode(
14 const BookmarkNode* node) { 15 const BookmarkNode* node) {
15 EditDetails details(EXISTING_NODE); 16 EditDetails details(EXISTING_NODE);
16 details.existing_node = node; 17 details.existing_node = node;
17 if (node) 18 if (node)
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 details.type == EditDetails::NEW_URL)) { 55 details.type == EditDetails::NEW_URL)) {
55 ShowWebUI(profile, details); 56 ShowWebUI(profile, details);
56 return; 57 return;
57 } 58 }
58 59
59 // Delegate to the platform native bookmark editor code. 60 // Delegate to the platform native bookmark editor code.
60 ShowNative(parent_window, profile, details.parent_node, details, 61 ShowNative(parent_window, profile, details.parent_node, details,
61 configuration); 62 configuration);
62 #endif 63 #endif
63 } 64 }
65
66 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS)
67 void BookmarkEditor::ShowBookmarkAllTabsDialog(Profile* profile) {
68 BookmarkAllTabsDialog::Show(profile);
69 }
70 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698