#include "third_party/blink/renderer/core/page/chrome_client.h"
#include <algorithm>
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/web_prescient_networking.h"
#include "third_party/blink/renderer/core/core_initializer.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/frame/frame_console.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/inspector/console_message.h"
#include "third_party/blink/renderer/core/layout/hit_test_location.h"
#include "third_party/blink/renderer/core/layout/hit_test_result.h"
#include "third_party/blink/renderer/core/layout/layout_object.h"
#include "third_party/blink/renderer/core/page/frame_tree.h"
#include "third_party/blink/renderer/core/page/page.h"
#include "third_party/blink/renderer/core/page/scoped_page_pauser.h"
#include "third_party/blink/renderer/core/probe/core_probes.h"
#include "third_party/blink/renderer/core/timing/dom_window_performance.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "ui/display/screen_info.h"
#include "ui/gfx/geometry/rect.h"
namespace blink {
void ChromeClient::Trace(Visitor* visitor) const { … }
void ChromeClient::InstallSupplements(LocalFrame& frame) { … }
bool ChromeClient::CanOpenUIElementIfDuringPageDismissal(
Frame& main_frame,
UIElementType ui_element_type,
const String& message) { … }
Page* ChromeClient::CreateWindow(
LocalFrame* frame,
const FrameLoadRequest& r,
const AtomicString& frame_name,
const WebWindowFeatures& features,
network::mojom::blink::WebSandboxFlags sandbox_flags,
const SessionStorageNamespaceId& session_storage_namespace_id,
bool& consumed_user_gesture) { … }
template <typename Delegate>
static bool OpenJavaScriptDialog(LocalFrame* frame,
const String& message,
const Delegate& delegate) { … }
bool ChromeClient::OpenBeforeUnloadConfirmPanel(const String& message,
LocalFrame* frame,
bool is_reload) { … }
bool ChromeClient::OpenJavaScriptAlert(LocalFrame* frame,
const String& message) { … }
bool ChromeClient::OpenJavaScriptConfirm(LocalFrame* frame,
const String& message) { … }
bool ChromeClient::OpenJavaScriptPrompt(LocalFrame* frame,
const String& prompt,
const String& default_value,
String& result) { … }
void ChromeClient::MouseDidMoveOverElement(LocalFrame& frame,
const HitTestLocation& location,
const HitTestResult& result) { … }
void ChromeClient::UpdateTooltipUnderCursor(LocalFrame& frame,
const HitTestLocation& location,
const HitTestResult& result) { … }
void ChromeClient::ElementFocusedFromKeypress(LocalFrame& frame,
const Element* element) { … }
void ChromeClient::ClearToolTip(LocalFrame& frame) { … }
bool ChromeClient::Print(LocalFrame* frame) { … }
}