#include "chrome/browser/ui/javascript_dialogs/javascript_tab_modal_dialog_manager_delegate_desktop.h"
#include <utility>
#include "chrome/browser/safe_browsing/user_interaction_observer.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/tab_modal_confirm_dialog.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "components/javascript_dialogs/app_modal_dialog_manager.h"
#include "components/javascript_dialogs/tab_modal_dialog_manager.h"
#include "components/javascript_dialogs/tab_modal_dialog_view.h"
#include "components/navigation_metrics/navigation_metrics.h"
#include "content/public/browser/devtools_agent_host.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/render_frame_host.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "services/metrics/public/cpp/ukm_recorder.h"
#include "ui/gfx/text_elider.h"
JavaScriptTabModalDialogManagerDelegateDesktop::
JavaScriptTabModalDialogManagerDelegateDesktop(
content::WebContents* web_contents)
: … { … }
JavaScriptTabModalDialogManagerDelegateDesktop::
~JavaScriptTabModalDialogManagerDelegateDesktop() { … }
void JavaScriptTabModalDialogManagerDelegateDesktop::WillRunDialog() { … }
void JavaScriptTabModalDialogManagerDelegateDesktop::DidCloseDialog() { … }
void JavaScriptTabModalDialogManagerDelegateDesktop::SetTabNeedsAttention(
bool attention) { … }
bool JavaScriptTabModalDialogManagerDelegateDesktop::IsWebContentsForemost() { … }
bool JavaScriptTabModalDialogManagerDelegateDesktop::IsApp() { … }
void JavaScriptTabModalDialogManagerDelegateDesktop::OnBrowserSetLastActive(
Browser* browser) { … }
void JavaScriptTabModalDialogManagerDelegateDesktop::OnTabStripModelChanged(
TabStripModel* tab_strip_model,
const TabStripModelChange& change,
const TabStripSelectionChange& selection) { … }
void JavaScriptTabModalDialogManagerDelegateDesktop::SetTabNeedsAttentionImpl(
bool attention,
TabStripModel* tab_strip_model,
int index) { … }