| 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 28 matching lines...) Expand all Loading... |
| 39 #include "platform/graphics/TouchAction.h" | 39 #include "platform/graphics/TouchAction.h" |
| 40 #include "platform/heap/Handle.h" | 40 #include "platform/heap/Handle.h" |
| 41 #include "platform/scroll/ScrollTypes.h" | 41 #include "platform/scroll/ScrollTypes.h" |
| 42 #include "platform/wtf/Forward.h" | 42 #include "platform/wtf/Forward.h" |
| 43 #include "platform/wtf/Optional.h" | 43 #include "platform/wtf/Optional.h" |
| 44 #include "platform/wtf/Vector.h" | 44 #include "platform/wtf/Vector.h" |
| 45 #include "public/platform/BlameContext.h" | 45 #include "public/platform/BlameContext.h" |
| 46 #include "public/platform/WebDragOperation.h" | 46 #include "public/platform/WebDragOperation.h" |
| 47 #include "public/platform/WebEventListenerProperties.h" | 47 #include "public/platform/WebEventListenerProperties.h" |
| 48 #include "public/platform/WebFocusType.h" | 48 #include "public/platform/WebFocusType.h" |
| 49 #include "public/platform/WebScrollBoundaryBehavior.h" |
| 49 | 50 |
| 50 // To avoid conflicts with the CreateWindow macro from the Windows SDK... | 51 // To avoid conflicts with the CreateWindow macro from the Windows SDK... |
| 51 #undef CreateWindow | 52 #undef CreateWindow |
| 52 | 53 |
| 53 namespace blink { | 54 namespace blink { |
| 54 | 55 |
| 55 class ColorChooser; | 56 class ColorChooser; |
| 56 class ColorChooserClient; | 57 class ColorChooserClient; |
| 57 class CompositorAnimationTimeline; | 58 class CompositorAnimationTimeline; |
| 58 class DateTimeChooser; | 59 class DateTimeChooser; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 SandboxFlags) = 0; | 134 SandboxFlags) = 0; |
| 134 virtual void Show(NavigationPolicy) = 0; | 135 virtual void Show(NavigationPolicy) = 0; |
| 135 | 136 |
| 136 // All the parameters should be in viewport space. That is, if an event | 137 // All the parameters should be in viewport space. That is, if an event |
| 137 // scrolls by 10 px, but due to a 2X page scale we apply a 5px scroll to the | 138 // scrolls by 10 px, but due to a 2X page scale we apply a 5px scroll to the |
| 138 // root frame, all of which is handled as overscroll, we should return 10px | 139 // root frame, all of which is handled as overscroll, we should return 10px |
| 139 // as the overscrollDelta. | 140 // as the overscrollDelta. |
| 140 virtual void DidOverscroll(const FloatSize& overscroll_delta, | 141 virtual void DidOverscroll(const FloatSize& overscroll_delta, |
| 141 const FloatSize& accumulated_overscroll, | 142 const FloatSize& accumulated_overscroll, |
| 142 const FloatPoint& position_in_viewport, | 143 const FloatPoint& position_in_viewport, |
| 143 const FloatSize& velocity_in_viewport) = 0; | 144 const FloatSize& velocity_in_viewport, |
| 145 const WebScrollBoundaryBehavior&) = 0; |
| 144 | 146 |
| 145 virtual bool ShouldReportDetailedMessageForSource(LocalFrame&, | 147 virtual bool ShouldReportDetailedMessageForSource(LocalFrame&, |
| 146 const String& source) = 0; | 148 const String& source) = 0; |
| 147 virtual void AddMessageToConsole(LocalFrame*, | 149 virtual void AddMessageToConsole(LocalFrame*, |
| 148 MessageSource, | 150 MessageSource, |
| 149 MessageLevel, | 151 MessageLevel, |
| 150 const String& message, | 152 const String& message, |
| 151 unsigned line_number, | 153 unsigned line_number, |
| 152 const String& source_id, | 154 const String& source_id, |
| 153 const String& stack_trace) = 0; | 155 const String& stack_trace) = 0; |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 virtual void ShowVirtualKeyboardOnElementFocus(LocalFrame&) {} | 321 virtual void ShowVirtualKeyboardOnElementFocus(LocalFrame&) {} |
| 320 | 322 |
| 321 virtual void RegisterViewportLayers() const {} | 323 virtual void RegisterViewportLayers() const {} |
| 322 | 324 |
| 323 virtual void ShowUnhandledTapUIIfNeeded(IntPoint, Node*, bool) {} | 325 virtual void ShowUnhandledTapUIIfNeeded(IntPoint, Node*, bool) {} |
| 324 | 326 |
| 325 virtual void OnMouseDown(Node&) {} | 327 virtual void OnMouseDown(Node&) {} |
| 326 | 328 |
| 327 virtual void DidUpdateBrowserControls() const {} | 329 virtual void DidUpdateBrowserControls() const {} |
| 328 | 330 |
| 331 virtual void SetScrollBoundaryBehavior(const WebScrollBoundaryBehavior&) {} |
| 332 |
| 329 virtual void RegisterPopupOpeningObserver(PopupOpeningObserver*) = 0; | 333 virtual void RegisterPopupOpeningObserver(PopupOpeningObserver*) = 0; |
| 330 virtual void UnregisterPopupOpeningObserver(PopupOpeningObserver*) = 0; | 334 virtual void UnregisterPopupOpeningObserver(PopupOpeningObserver*) = 0; |
| 331 virtual void NotifyPopupOpeningObservers() const = 0; | 335 virtual void NotifyPopupOpeningObservers() const = 0; |
| 332 | 336 |
| 333 virtual FloatSize ElasticOverscroll() const { return FloatSize(); } | 337 virtual FloatSize ElasticOverscroll() const { return FloatSize(); } |
| 334 | 338 |
| 335 // Called when observed XHR, fetch, and other fetch request with non-GET | 339 // Called when observed XHR, fetch, and other fetch request with non-GET |
| 336 // method is initiated from javascript. At this time, it is not guaranteed | 340 // method is initiated from javascript. At this time, it is not guaranteed |
| 337 // that this is comprehensive. | 341 // that this is comprehensive. |
| 338 virtual void DidObserveNonGetFetchFromScript() const {} | 342 virtual void DidObserveNonGetFetchFromScript() const {} |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 WeakMember<Node> last_mouse_over_node_; | 384 WeakMember<Node> last_mouse_over_node_; |
| 381 LayoutPoint last_tool_tip_point_; | 385 LayoutPoint last_tool_tip_point_; |
| 382 String last_tool_tip_text_; | 386 String last_tool_tip_text_; |
| 383 | 387 |
| 384 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); | 388 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); |
| 385 }; | 389 }; |
| 386 | 390 |
| 387 } // namespace blink | 391 } // namespace blink |
| 388 | 392 |
| 389 #endif // ChromeClient_h | 393 #endif // ChromeClient_h |
| OLD | NEW |