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