#include "chrome/browser/renderer_context_menu/spelling_bubble_model.h"
#include "base/logging.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/scoped_tabbed_browser_displayer.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/branded_strings.h"
#include "chrome/grit/generated_resources.h"
#include "components/prefs/pref_service.h"
#include "components/spellcheck/browser/pref_names.h"
#include "components/strings/grit/components_strings.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/image/image.h"
OpenURLParams;
Referrer;
WebContents;
SpellingBubbleModel::SpellingBubbleModel(Profile* profile,
WebContents* web_contents)
: … { … }
SpellingBubbleModel::~SpellingBubbleModel() = default;
std::u16string SpellingBubbleModel::GetTitle() const { … }
std::u16string SpellingBubbleModel::GetMessageText() const { … }
std::u16string SpellingBubbleModel::GetButtonLabel(
ui::mojom::DialogButton button) const { … }
void SpellingBubbleModel::Accept() { … }
void SpellingBubbleModel::Cancel() { … }
std::u16string SpellingBubbleModel::GetLinkText() const { … }
GURL SpellingBubbleModel::GetHelpPageURL() const { … }
void SpellingBubbleModel::OpenHelpPage() { … }
void SpellingBubbleModel::SetPref(bool enabled) { … }