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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 | 245 |
246 virtual void onMouseDown(Node*) { } | 246 virtual void onMouseDown(Node*) { } |
247 | 247 |
248 virtual void didUpdateTopControls() const { } | 248 virtual void didUpdateTopControls() const { } |
249 | 249 |
250 virtual void registerPopupOpeningObserver(PopupOpeningObserver*) = 0; | 250 virtual void registerPopupOpeningObserver(PopupOpeningObserver*) = 0; |
251 virtual void unregisterPopupOpeningObserver(PopupOpeningObserver*) = 0; | 251 virtual void unregisterPopupOpeningObserver(PopupOpeningObserver*) = 0; |
252 | 252 |
253 virtual FloatSize elasticOverscroll() const { return FloatSize(); } | 253 virtual FloatSize elasticOverscroll() const { return FloatSize(); } |
254 | 254 |
| 255 // Called when observed XHR, fetch, and other fetch request with non-GET |
| 256 // method is initiated from javascript. At this time, it is not guaranteed |
| 257 // that this is comprehensive. |
| 258 virtual void didObserveNonGetFetchFromScript() const {} |
| 259 |
255 protected: | 260 protected: |
256 ~ChromeClient() override { } | 261 ~ChromeClient() override { } |
257 | 262 |
258 virtual void showMouseOverURL(const HitTestResult&) = 0; | 263 virtual void showMouseOverURL(const HitTestResult&) = 0; |
259 virtual void setWindowRect(const IntRect&) = 0; | 264 virtual void setWindowRect(const IntRect&) = 0; |
260 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, const String&
message) = 0; | 265 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, const String&
message) = 0; |
261 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; | 266 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; |
262 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0; | 267 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0; |
263 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message
, const String& defaultValue, String& result) = 0; | 268 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message
, const String& defaultValue, String& result) = 0; |
264 virtual void printDelegate(LocalFrame*) = 0; | 269 virtual void printDelegate(LocalFrame*) = 0; |
265 | 270 |
266 private: | 271 private: |
267 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S
tring& message); | 272 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S
tring& message); |
268 void setToolTip(const HitTestResult&); | 273 void setToolTip(const HitTestResult&); |
269 }; | 274 }; |
270 | 275 |
271 } // namespace blink | 276 } // namespace blink |
272 | 277 |
273 #endif // ChromeClient_h | 278 #endif // ChromeClient_h |
OLD | NEW |