OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights
reserved. |
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 253 |
254 virtual FloatSize elasticOverscroll() const { return FloatSize(); } | 254 virtual FloatSize elasticOverscroll() const { return FloatSize(); } |
255 | 255 |
256 // Called when observed XHR, fetch, and other fetch request with non-GET | 256 // Called when observed XHR, fetch, and other fetch request with non-GET |
257 // method is initiated from javascript. At this time, it is not guaranteed | 257 // method is initiated from javascript. At this time, it is not guaranteed |
258 // that this is comprehensive. | 258 // that this is comprehensive. |
259 virtual void didObserveNonGetFetchFromScript() const {} | 259 virtual void didObserveNonGetFetchFromScript() const {} |
260 | 260 |
261 virtual PassOwnPtr<WebFrameScheduler> createFrameScheduler() = 0; | 261 virtual PassOwnPtr<WebFrameScheduler> createFrameScheduler() = 0; |
262 | 262 |
263 float screenToViewport(float) const override; | |
264 | |
265 protected: | 263 protected: |
266 ~ChromeClient() override { } | 264 ~ChromeClient() override { } |
267 | 265 |
268 virtual void showMouseOverURL(const HitTestResult&) = 0; | 266 virtual void showMouseOverURL(const HitTestResult&) = 0; |
269 virtual void setWindowRect(const IntRect&) = 0; | 267 virtual void setWindowRect(const IntRect&) = 0; |
270 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, const String&
message, bool isReload) = 0; | 268 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, const String&
message, bool isReload) = 0; |
271 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; | 269 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; |
272 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0; | 270 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0; |
273 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message
, const String& defaultValue, String& result) = 0; | 271 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message
, const String& defaultValue, String& result) = 0; |
274 virtual void printDelegate(LocalFrame*) = 0; | 272 virtual void printDelegate(LocalFrame*) = 0; |
275 | 273 |
276 private: | 274 private: |
277 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S
tring& message); | 275 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S
tring& message); |
278 void setToolTip(const HitTestResult&); | 276 void setToolTip(const HitTestResult&); |
279 | 277 |
280 LayoutPoint m_lastToolTipPoint; | 278 LayoutPoint m_lastToolTipPoint; |
281 String m_lastToolTipText; | 279 String m_lastToolTipText; |
282 | 280 |
283 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); | 281 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); |
284 }; | 282 }; |
285 | 283 |
286 } // namespace blink | 284 } // namespace blink |
287 | 285 |
288 #endif // ChromeClient_h | 286 #endif // ChromeClient_h |
OLD | NEW |