#include "chrome/browser/ui/bookmarks/bookmark_editor.h"
#include <stddef.h>
#include "chrome/grit/generated_resources.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/common/bookmark_metrics.h"
#include "components/strings/grit/components_strings.h"
BookmarkModel;
BookmarkNode;
namespace {
const BookmarkNode* CreateNewNode(BookmarkModel* model,
const BookmarkNode* parent,
const BookmarkEditor::EditDetails& details,
const std::u16string& new_title,
const GURL& new_url) { … }
}
BookmarkEditor::EditDetails::BookmarkData::BookmarkData() = default;
BookmarkEditor::EditDetails::BookmarkData::BookmarkData(
BookmarkData const& other) = default;
BookmarkEditor::EditDetails::BookmarkData::~BookmarkData() = default;
BookmarkEditor::EditDetails::EditDetails(Type node_type) : … { … }
BookmarkNode::Type BookmarkEditor::EditDetails::GetNodeType() const { … }
int BookmarkEditor::EditDetails::GetWindowTitleId() const { … }
BookmarkEditor::EditDetails BookmarkEditor::EditDetails::EditNode(
const BookmarkNode* node) { … }
BookmarkEditor::EditDetails BookmarkEditor::EditDetails::AddNodeInFolder(
const BookmarkNode* parent_node,
size_t index,
const GURL& url,
const std::u16string& title) { … }
BookmarkEditor::EditDetails BookmarkEditor::EditDetails::AddFolder(
const BookmarkNode* parent_node,
size_t index) { … }
BookmarkEditor::EditDetails::EditDetails(const EditDetails& other) = default;
BookmarkEditor::EditDetails::~EditDetails() = default;
const BookmarkNode* BookmarkEditor::ApplyEditsWithNoFolderChange(
BookmarkModel* model,
const BookmarkNode* parent,
const EditDetails& details,
const std::u16string& new_title,
const GURL& new_url) { … }
const BookmarkNode* BookmarkEditor::ApplyEditsWithPossibleFolderChange(
BookmarkModel* model,
const BookmarkNode* new_parent,
const EditDetails& details,
const std::u16string& new_title,
const GURL& new_url) { … }