| 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 | 269 |
| 270 virtual FloatSize elasticOverscroll() const { return FloatSize(); } | 270 virtual FloatSize elasticOverscroll() const { return FloatSize(); } |
| 271 | 271 |
| 272 // Called when observed XHR, fetch, and other fetch request with non-GET | 272 // Called when observed XHR, fetch, and other fetch request with non-GET |
| 273 // method is initiated from javascript. At this time, it is not guaranteed | 273 // method is initiated from javascript. At this time, it is not guaranteed |
| 274 // that this is comprehensive. | 274 // that this is comprehensive. |
| 275 virtual void didObserveNonGetFetchFromScript() const {} | 275 virtual void didObserveNonGetFetchFromScript() const {} |
| 276 | 276 |
| 277 virtual PassOwnPtr<WebFrameScheduler> createFrameScheduler(BlameContext*) =
0; | 277 virtual PassOwnPtr<WebFrameScheduler> createFrameScheduler(BlameContext*) =
0; |
| 278 | 278 |
| 279 // Returns the time of the beginning of the last beginFrame, in seconds, if
any, and 0.0 otherwise. |
| 280 virtual double lastFrameTimeMonotonic() const { return 0.0; } |
| 281 |
| 279 protected: | 282 protected: |
| 280 ~ChromeClient() override { } | 283 ~ChromeClient() override { } |
| 281 | 284 |
| 282 virtual void showMouseOverURL(const HitTestResult&) = 0; | 285 virtual void showMouseOverURL(const HitTestResult&) = 0; |
| 283 virtual void setWindowRect(const IntRect&) = 0; | 286 virtual void setWindowRect(const IntRect&) = 0; |
| 284 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, bool isReload
) = 0; | 287 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, bool isReload
) = 0; |
| 285 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; | 288 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; |
| 286 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0; | 289 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0; |
| 287 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message
, const String& defaultValue, String& result) = 0; | 290 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message
, const String& defaultValue, String& result) = 0; |
| 288 virtual void printDelegate(LocalFrame*) = 0; | 291 virtual void printDelegate(LocalFrame*) = 0; |
| 289 | 292 |
| 290 private: | 293 private: |
| 291 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S
tring& message); | 294 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S
tring& message); |
| 292 void setToolTip(const HitTestResult&); | 295 void setToolTip(const HitTestResult&); |
| 293 | 296 |
| 294 LayoutPoint m_lastToolTipPoint; | 297 LayoutPoint m_lastToolTipPoint; |
| 295 String m_lastToolTipText; | 298 String m_lastToolTipText; |
| 296 | 299 |
| 297 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); | 300 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); |
| 298 }; | 301 }; |
| 299 | 302 |
| 300 } // namespace blink | 303 } // namespace blink |
| 301 | 304 |
| 302 #endif // ChromeClient_h | 305 #endif // ChromeClient_h |
| OLD | NEW |