| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 virtual bool TabsToLinks() = 0; | 170 virtual bool TabsToLinks() = 0; |
| 171 | 171 |
| 172 virtual WebViewBase* GetWebView() const = 0; | 172 virtual WebViewBase* GetWebView() const = 0; |
| 173 | 173 |
| 174 // Methods used by PlatformChromeClient. | 174 // Methods used by PlatformChromeClient. |
| 175 virtual WebScreenInfo GetScreenInfo() const = 0; | 175 virtual WebScreenInfo GetScreenInfo() const = 0; |
| 176 virtual void SetCursor(const Cursor&, LocalFrame* local_root) = 0; | 176 virtual void SetCursor(const Cursor&, LocalFrame* local_root) = 0; |
| 177 // End methods used by PlatformChromeClient. | 177 // End methods used by PlatformChromeClient. |
| 178 | 178 |
| 179 virtual void SetCursorOverridden(bool) = 0; | 179 virtual void SetCursorOverridden(bool) = 0; |
| 180 |
| 181 virtual void AutoscrollStart(WebFloatPoint position, LocalFrame*) {} |
| 182 virtual void AutoscrollFling(WebFloatSize velocity, LocalFrame*) {} |
| 183 virtual void AutoscrollEnd(LocalFrame*) {} |
| 184 |
| 180 virtual Cursor LastSetCursorForTesting() const = 0; | 185 virtual Cursor LastSetCursorForTesting() const = 0; |
| 181 Node* LastSetTooltipNodeForTesting() const { | 186 Node* LastSetTooltipNodeForTesting() const { |
| 182 return last_mouse_over_node_.Get(); | 187 return last_mouse_over_node_.Get(); |
| 183 } | 188 } |
| 184 | 189 |
| 185 virtual void SetCursorForPlugin(const WebCursorInfo&, LocalFrame*) = 0; | 190 virtual void SetCursorForPlugin(const WebCursorInfo&, LocalFrame*) = 0; |
| 186 | 191 |
| 187 // Returns a custom visible content rect if a viewport override is active. | 192 // Returns a custom visible content rect if a viewport override is active. |
| 188 virtual WTF::Optional<IntRect> VisibleContentRectForPainting() const { | 193 virtual WTF::Optional<IntRect> VisibleContentRectForPainting() const { |
| 189 return WTF::nullopt; | 194 return WTF::nullopt; |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 WeakMember<Node> last_mouse_over_node_; | 399 WeakMember<Node> last_mouse_over_node_; |
| 395 LayoutPoint last_tool_tip_point_; | 400 LayoutPoint last_tool_tip_point_; |
| 396 String last_tool_tip_text_; | 401 String last_tool_tip_text_; |
| 397 | 402 |
| 398 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); | 403 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); |
| 399 }; | 404 }; |
| 400 | 405 |
| 401 } // namespace blink | 406 } // namespace blink |
| 402 | 407 |
| 403 #endif // ChromeClient_h | 408 #endif // ChromeClient_h |
| OLD | NEW |