| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 bool runJavaScriptPrompt(LocalFrame*, const String& message, const String& d
efaultValue, String& result); | 129 bool runJavaScriptPrompt(LocalFrame*, const String& message, const String& d
efaultValue, String& result); |
| 130 virtual void setStatusbarText(const String&) = 0; | 130 virtual void setStatusbarText(const String&) = 0; |
| 131 virtual bool tabsToLinks() = 0; | 131 virtual bool tabsToLinks() = 0; |
| 132 | 132 |
| 133 virtual void* webView() const = 0; | 133 virtual void* webView() const = 0; |
| 134 | 134 |
| 135 virtual IntRect windowResizerRect() const = 0; | 135 virtual IntRect windowResizerRect() const = 0; |
| 136 | 136 |
| 137 // Methods used by HostWindow. | 137 // Methods used by HostWindow. |
| 138 virtual WebScreenInfo screenInfo() const = 0; | 138 virtual WebScreenInfo screenInfo() const = 0; |
| 139 void setCursor(const Cursor&); | 139 virtual void setCursor(const Cursor&) = 0; |
| 140 // End methods used by HostWindow. | 140 // End methods used by HostWindow. |
| 141 Cursor getLastSetCursorForTesting() const; | 141 virtual Cursor lastSetCursorForTesting() const = 0; |
| 142 | 142 |
| 143 virtual void scheduleAnimationForFrame(LocalFrame*) { } | 143 virtual void scheduleAnimationForFrame(LocalFrame*) { } |
| 144 | 144 |
| 145 virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&)
const { } | 145 virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&)
const { } |
| 146 | 146 |
| 147 virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const = 0; | 147 virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const = 0; |
| 148 virtual void pageScaleFactorChanged() const { } | 148 virtual void pageScaleFactorChanged() const { } |
| 149 virtual float clampPageScaleFactorToLimits(float scale) const { return scale
; } | 149 virtual float clampPageScaleFactorToLimits(float scale) const { return scale
; } |
| 150 virtual void layoutUpdated(LocalFrame*) const { } | 150 virtual void layoutUpdated(LocalFrame*) const { } |
| 151 | 151 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 virtual void showMouseOverURL(const HitTestResult&) = 0; | 247 virtual void showMouseOverURL(const HitTestResult&) = 0; |
| 248 virtual void setWindowRect(const IntRect&) = 0; | 248 virtual void setWindowRect(const IntRect&) = 0; |
| 249 // TODO(tkent): Adding 'Internal' to virtual functions is not good. We | 249 // TODO(tkent): Adding 'Internal' to virtual functions is not good. We |
| 250 // should give better names, or move out non-internal versions of these | 250 // should give better names, or move out non-internal versions of these |
| 251 // functions. | 251 // functions. |
| 252 virtual bool runBeforeUnloadConfirmPanelInternal(LocalFrame*, const String&
message) = 0; | 252 virtual bool runBeforeUnloadConfirmPanelInternal(LocalFrame*, const String&
message) = 0; |
| 253 virtual void runJavaScriptAlertInternal(LocalFrame*, const String&) = 0; | 253 virtual void runJavaScriptAlertInternal(LocalFrame*, const String&) = 0; |
| 254 virtual bool runJavaScriptConfirmInternal(LocalFrame*, const String&) = 0; | 254 virtual bool runJavaScriptConfirmInternal(LocalFrame*, const String&) = 0; |
| 255 virtual bool runJavaScriptPromptInternal(LocalFrame*, const String& message,
const String& defaultValue, String& result) = 0; | 255 virtual bool runJavaScriptPromptInternal(LocalFrame*, const String& message,
const String& defaultValue, String& result) = 0; |
| 256 virtual void printInternal(LocalFrame*) = 0; | 256 virtual void printInternal(LocalFrame*) = 0; |
| 257 virtual void setCursorInternal(const Cursor&) = 0; | |
| 258 | 257 |
| 259 private: | 258 private: |
| 260 bool canRunModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const St
ring& message); | 259 bool canRunModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const St
ring& message); |
| 261 void setToolTip(const HitTestResult&); | 260 void setToolTip(const HitTestResult&); |
| 262 | |
| 263 Cursor m_lastSetMouseCursorForTesting; | |
| 264 }; | 261 }; |
| 265 | 262 |
| 266 } // namespace blink | 263 } // namespace blink |
| 267 | 264 |
| 268 #endif // ChromeClient_h | 265 #endif // ChromeClient_h |
| OLD | NEW |