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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 242 |
243 virtual void showUnhandledTapUIIfNeeded(IntPoint, Node*, bool) { } | 243 virtual void showUnhandledTapUIIfNeeded(IntPoint, Node*, bool) { } |
244 | 244 |
245 virtual void onMouseDown(Node*) { } | 245 virtual void onMouseDown(Node*) { } |
246 | 246 |
247 virtual void didUpdateTopControls() const { } | 247 virtual void didUpdateTopControls() const { } |
248 | 248 |
249 virtual void registerPopupOpeningObserver(PopupOpeningObserver*) = 0; | 249 virtual void registerPopupOpeningObserver(PopupOpeningObserver*) = 0; |
250 virtual void unregisterPopupOpeningObserver(PopupOpeningObserver*) = 0; | 250 virtual void unregisterPopupOpeningObserver(PopupOpeningObserver*) = 0; |
251 | 251 |
| 252 virtual bool disableThreadedParsingForUnitTests() const { return false; } |
| 253 |
252 virtual FloatSize elasticOverscroll() const { return FloatSize(); } | 254 virtual FloatSize elasticOverscroll() const { return FloatSize(); } |
253 | 255 |
254 protected: | 256 protected: |
255 ~ChromeClient() override { } | 257 ~ChromeClient() override { } |
256 | 258 |
257 virtual void showMouseOverURL(const HitTestResult&) = 0; | 259 virtual void showMouseOverURL(const HitTestResult&) = 0; |
258 virtual void setWindowRect(const IntRect&) = 0; | 260 virtual void setWindowRect(const IntRect&) = 0; |
259 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, const String&
message) = 0; | 261 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, const String&
message) = 0; |
260 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; | 262 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; |
261 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0; | 263 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0; |
262 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message
, const String& defaultValue, String& result) = 0; | 264 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message
, const String& defaultValue, String& result) = 0; |
263 virtual void printDelegate(LocalFrame*) = 0; | 265 virtual void printDelegate(LocalFrame*) = 0; |
264 | 266 |
265 private: | 267 private: |
266 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S
tring& message); | 268 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S
tring& message); |
267 void setToolTip(const HitTestResult&); | 269 void setToolTip(const HitTestResult&); |
268 }; | 270 }; |
269 | 271 |
270 } // namespace blink | 272 } // namespace blink |
271 | 273 |
272 #endif // ChromeClient_h | 274 #endif // ChromeClient_h |
OLD | NEW |