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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc

Issue 1307533002: [Mac] Enable MacViews bookmark bubble behind --enable-mac-views-dialogs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@modal
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc
index a5919234d3c0904f8fb0493afd4c4dae97295bb9..9f63b64b5c7f3a31f7b733f6ec03cf1739499adc 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/bookmarks/bookmark_utils.h"
+#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/grit/locale_settings.h"
#include "components/bookmarks/browser/bookmark_model.h"
@@ -50,17 +51,6 @@ const SkColor kErrorColor = SkColorSetRGB(0xFF, 0xBC, 0xBC);
} // namespace
-// static
-void BookmarkEditor::Show(gfx::NativeWindow parent_window,
- Profile* profile,
- const EditDetails& details,
- Configuration configuration) {
- DCHECK(profile);
- BookmarkEditorView* editor = new BookmarkEditorView(profile,
- details.parent_node, details, configuration);
- editor->Show(parent_window);
-}
-
BookmarkEditorView::BookmarkEditorView(
Profile* profile,
const BookmarkNode* parent,
@@ -654,3 +644,17 @@ void BookmarkEditorView::EditorTreeModel::SetTitle(
if (!title.empty())
ui::TreeNodeModel<EditorNode>::SetTitle(node, title);
}
+
+namespace chrome {
+
+void ShowBookmarkEditorView(gfx::NativeWindow parent_window,
+ Profile* profile,
+ const BookmarkEditor::EditDetails& details,
+ BookmarkEditor::Configuration configuration) {
+ DCHECK(profile);
+ BookmarkEditorView* editor = new BookmarkEditorView(
+ profile, details.parent_node, details, configuration);
+ editor->Show(parent_window);
+}
+
+} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698