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 21 matching lines...) Expand all Loading... |
32 #include "platform/Cursor.h" | 32 #include "platform/Cursor.h" |
33 #include "platform/HostWindow.h" | 33 #include "platform/HostWindow.h" |
34 #include "platform/PopupMenu.h" | 34 #include "platform/PopupMenu.h" |
35 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
36 #include "platform/scroll/ScrollTypes.h" | 36 #include "platform/scroll/ScrollTypes.h" |
37 #include "public/platform/BlameContext.h" | 37 #include "public/platform/BlameContext.h" |
38 #include "public/platform/WebDragOperation.h" | 38 #include "public/platform/WebDragOperation.h" |
39 #include "public/platform/WebEventListenerProperties.h" | 39 #include "public/platform/WebEventListenerProperties.h" |
40 #include "public/platform/WebFocusType.h" | 40 #include "public/platform/WebFocusType.h" |
41 #include "wtf/Forward.h" | 41 #include "wtf/Forward.h" |
| 42 #include "wtf/Optional.h" |
42 #include "wtf/Vector.h" | 43 #include "wtf/Vector.h" |
43 #include <memory> | 44 #include <memory> |
44 | 45 |
45 namespace blink { | 46 namespace blink { |
46 | 47 |
47 class AXObject; | 48 class AXObject; |
48 class ColorChooser; | 49 class ColorChooser; |
49 class ColorChooserClient; | 50 class ColorChooserClient; |
50 class CompositorAnimationTimeline; | 51 class CompositorAnimationTimeline; |
51 class CompositorProxyClient; | 52 class CompositorProxyClient; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 virtual void* webView() const = 0; | 158 virtual void* webView() const = 0; |
158 | 159 |
159 virtual IntRect windowResizerRect() const = 0; | 160 virtual IntRect windowResizerRect() const = 0; |
160 | 161 |
161 // Methods used by HostWindow. | 162 // Methods used by HostWindow. |
162 virtual WebScreenInfo screenInfo() const = 0; | 163 virtual WebScreenInfo screenInfo() const = 0; |
163 virtual void setCursor(const Cursor&, LocalFrame* localRoot) = 0; | 164 virtual void setCursor(const Cursor&, LocalFrame* localRoot) = 0; |
164 // End methods used by HostWindow. | 165 // End methods used by HostWindow. |
165 virtual Cursor lastSetCursorForTesting() const = 0; | 166 virtual Cursor lastSetCursorForTesting() const = 0; |
166 | 167 |
| 168 // Returns a custom visible content rect if a viewport override is active. |
| 169 virtual WTF::Optional<IntRect> visibleContentRectForPainting() const { retur
n WTF::nullopt; } |
| 170 |
167 virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&)
const { } | 171 virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&)
const { } |
168 | 172 |
169 virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const = 0; | 173 virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const = 0; |
170 virtual void pageScaleFactorChanged() const { } | 174 virtual void pageScaleFactorChanged() const { } |
171 virtual float clampPageScaleFactorToLimits(float scale) const { return scale
; } | 175 virtual float clampPageScaleFactorToLimits(float scale) const { return scale
; } |
| 176 virtual void mainFrameScrollOffsetChanged() const { } |
172 virtual void layoutUpdated(LocalFrame*) const { } | 177 virtual void layoutUpdated(LocalFrame*) const { } |
173 | 178 |
174 void mouseDidMoveOverElement(const HitTestResult&); | 179 void mouseDidMoveOverElement(const HitTestResult&); |
175 virtual void setToolTip(const String&, TextDirection) = 0; | 180 virtual void setToolTip(const String&, TextDirection) = 0; |
176 void clearToolTip(); | 181 void clearToolTip(); |
177 | 182 |
178 void print(LocalFrame*); | 183 void print(LocalFrame*); |
179 | 184 |
180 virtual void annotatedRegionsChanged() = 0; | 185 virtual void annotatedRegionsChanged() = 0; |
181 | 186 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 | 306 |
302 LayoutPoint m_lastToolTipPoint; | 307 LayoutPoint m_lastToolTipPoint; |
303 String m_lastToolTipText; | 308 String m_lastToolTipText; |
304 | 309 |
305 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); | 310 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); |
306 }; | 311 }; |
307 | 312 |
308 } // namespace blink | 313 } // namespace blink |
309 | 314 |
310 #endif // ChromeClient_h | 315 #endif // ChromeClient_h |
OLD | NEW |