| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // Start a system drag and drop operation. | 104 // Start a system drag and drop operation. |
| 105 virtual void startDragging(LocalFrame*, const WebDragData&, WebDragOperation
sMask, const WebImage& dragImage, const WebPoint& dragImageOffset) = 0; | 105 virtual void startDragging(LocalFrame*, const WebDragData&, WebDragOperation
sMask, const WebImage& dragImage, const WebPoint& dragImageOffset) = 0; |
| 106 virtual bool acceptsLoadDrops() const = 0; | 106 virtual bool acceptsLoadDrops() const = 0; |
| 107 | 107 |
| 108 // The LocalFrame pointer provides the ChromeClient with context about which | 108 // The LocalFrame pointer provides the ChromeClient with context about which |
| 109 // LocalFrame wants to create the new Page. Also, the newly created window | 109 // LocalFrame wants to create the new Page. Also, the newly created window |
| 110 // should not be shown to the user until the ChromeClient of the newly | 110 // should not be shown to the user until the ChromeClient of the newly |
| 111 // created Page has its show method called. | 111 // created Page has its show method called. |
| 112 // The FrameLoadRequest parameter is only for ChromeClient to check if the | 112 // The FrameLoadRequest parameter is only for ChromeClient to check if the |
| 113 // request could be fulfilled. The ChromeClient should not load the request. | 113 // request could be fulfilled. The ChromeClient should not load the request. |
| 114 virtual Page* createWindow(LocalFrame*, const FrameLoadRequest&, const Windo
wFeatures&, NavigationPolicy, ShouldSetOpener) = 0; | 114 virtual Page* createWindow(LocalFrame*, const FrameLoadRequest&, const Windo
wFeatures&, NavigationPolicy) = 0; |
| 115 virtual void show(NavigationPolicy = NavigationPolicyIgnore) = 0; | 115 virtual void show(NavigationPolicy = NavigationPolicyIgnore) = 0; |
| 116 | 116 |
| 117 void setWindowFeatures(const WindowFeatures&); | 117 void setWindowFeatures(const WindowFeatures&); |
| 118 | 118 |
| 119 // All the parameters should be in viewport space. That is, if an event | 119 // All the parameters should be in viewport space. That is, if an event |
| 120 // scrolls by 10 px, but due to a 2X page scale we apply a 5px scroll to the | 120 // scrolls by 10 px, but due to a 2X page scale we apply a 5px scroll to the |
| 121 // root frame, all of which is handled as overscroll, we should return 10px | 121 // root frame, all of which is handled as overscroll, we should return 10px |
| 122 // as the overscrollDelta. | 122 // as the overscrollDelta. |
| 123 virtual void didOverscroll( | 123 virtual void didOverscroll( |
| 124 const FloatSize& overscrollDelta, | 124 const FloatSize& overscrollDelta, |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 | 301 |
| 302 LayoutPoint m_lastToolTipPoint; | 302 LayoutPoint m_lastToolTipPoint; |
| 303 String m_lastToolTipText; | 303 String m_lastToolTipText; |
| 304 | 304 |
| 305 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); | 305 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); |
| 306 }; | 306 }; |
| 307 | 307 |
| 308 } // namespace blink | 308 } // namespace blink |
| 309 | 309 |
| 310 #endif // ChromeClient_h | 310 #endif // ChromeClient_h |
| OLD | NEW |