#include "chrome/browser/ui/views/autofill/popup/custom_cursor_suppressor.h"
#include <map>
#include <memory>
#include <utility>
#include <vector>
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/global_routing_id.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_widget_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
#include "extensions/browser/extension_host.h"
#include "extensions/browser/extension_host_registry.h"
CustomCursorSuppressor::NavigationObserver::NavigationObserver(
content::WebContents* web_contents,
Callback callback)
: … { … }
CustomCursorSuppressor::NavigationObserver::~NavigationObserver() = default;
void CustomCursorSuppressor::NavigationObserver::RenderFrameHostChanged(
content::RenderFrameHost* old_host,
content::RenderFrameHost* new_host) { … }
CustomCursorSuppressor::CustomCursorSuppressor() = default;
CustomCursorSuppressor::~CustomCursorSuppressor() = default;
void CustomCursorSuppressor::Start(int max_dimension_dips) { … }
void CustomCursorSuppressor::Stop() { … }
bool CustomCursorSuppressor::IsSuppressing(
content::WebContents& web_contents) const { … }
std::vector<content::GlobalRenderFrameHostId>
CustomCursorSuppressor::SuppressedRenderFrameHostIdsForTesting() const { … }
void CustomCursorSuppressor::ObserveAndSuppressExtensionsForProfile(
Profile& profile) { … }
void CustomCursorSuppressor::SuppressForWebContents(
content::WebContents& web_contents) { … }
void CustomCursorSuppressor::MaybeObserveNavigationsInWebContents(
content::WebContents& web_contents) { … }
void CustomCursorSuppressor::OnBrowserAdded(Browser* browser) { … }
void CustomCursorSuppressor::OnExtensionHostRegistryShutdown(
extensions::ExtensionHostRegistry* registry) { … }
void CustomCursorSuppressor::OnTabStripModelChanged(
TabStripModel* tab_strip_model,
const TabStripModelChange& change,
const TabStripSelectionChange& selection) { … }
void CustomCursorSuppressor::OnExtensionHostDocumentElementAvailable(
content::BrowserContext* browser_context,
extensions::ExtensionHost* extension_host) { … }