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