OLD | NEW |
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 Loading... |
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 |
OLD | NEW |