| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 virtual void layout() override; | 83 virtual void layout() override; |
| 84 virtual void paint(WebCanvas*, const WebRect&) override; | 84 virtual void paint(WebCanvas*, const WebRect&) override; |
| 85 #if OS(ANDROID) | 85 #if OS(ANDROID) |
| 86 virtual void paintCompositedDeprecated(WebCanvas*, const WebRect&) override; | 86 virtual void paintCompositedDeprecated(WebCanvas*, const WebRect&) override; |
| 87 #endif | 87 #endif |
| 88 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*
) override; | 88 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*
) override; |
| 89 virtual bool isTrackingRepaints() const override; | 89 virtual bool isTrackingRepaints() const override; |
| 90 virtual void themeChanged() override; | 90 virtual void themeChanged() override; |
| 91 virtual bool handleInputEvent(const WebInputEvent&) override; | 91 virtual bool handleInputEvent(const WebInputEvent&) override; |
| 92 virtual void setCursorVisibilityState(bool isVisible) override; | 92 virtual void setCursorVisibilityState(bool isVisible) override; |
| 93 virtual bool hasTouchEventHandlersAt(const WebPoint&) override; | |
| 94 virtual void mouseCaptureLost() override; | 93 virtual void mouseCaptureLost() override; |
| 95 virtual void setFocus(bool enable) override; | 94 virtual void setFocus(bool enable) override; |
| 96 virtual bool setComposition( | 95 virtual bool setComposition( |
| 97 const WebString& text, | 96 const WebString& text, |
| 98 const WebVector<WebCompositionUnderline>& underlines, | 97 const WebVector<WebCompositionUnderline>& underlines, |
| 99 int selectionStart, | 98 int selectionStart, |
| 100 int selectionEnd) override; | 99 int selectionEnd) override; |
| 101 virtual bool confirmComposition() override; | 100 virtual bool confirmComposition() override; |
| 102 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior
) override; | 101 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior
) override; |
| 103 virtual bool confirmComposition(const WebString& text) override; | 102 virtual bool confirmComposition(const WebString& text) override; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 227 |
| 229 // FIXME: Temporary method to accommodate out-of-process frame ancestors; | 228 // FIXME: Temporary method to accommodate out-of-process frame ancestors; |
| 230 // will be removed when there can be multiple WebWidgets for a single page. | 229 // will be removed when there can be multiple WebWidgets for a single page. |
| 231 WebLocalFrameImpl* localFrameRootTemporary() const; | 230 WebLocalFrameImpl* localFrameRootTemporary() const; |
| 232 | 231 |
| 233 // Event related methods: | 232 // Event related methods: |
| 234 void mouseDoubleClick(const WebMouseEvent&); | 233 void mouseDoubleClick(const WebMouseEvent&); |
| 235 | 234 |
| 236 bool detectContentOnTouch(const WebPoint&); | 235 bool detectContentOnTouch(const WebPoint&); |
| 237 | 236 |
| 238 void hasTouchEventHandlers(bool); | |
| 239 | |
| 240 // WebGestureCurveTarget implementation for fling. | 237 // WebGestureCurveTarget implementation for fling. |
| 241 virtual bool scrollBy(const WebFloatSize& delta, const WebFloatSize& velocit
y) override; | 238 virtual bool scrollBy(const WebFloatSize& delta, const WebFloatSize& velocit
y) override; |
| 242 | 239 |
| 243 // Notifies the WebView that a load has been committed. isNewNavigation | 240 // Notifies the WebView that a load has been committed. isNewNavigation |
| 244 // will be true if a new session history item should be created for that | 241 // will be true if a new session history item should be created for that |
| 245 // load. isNavigationWithinPage will be true if the navigation does | 242 // load. isNavigationWithinPage will be true if the navigation does |
| 246 // not take the user away from the current page. | 243 // not take the user away from the current page. |
| 247 void didCommitLoad(bool isNewNavigation, bool isNavigationWithinPage); | 244 void didCommitLoad(bool isNewNavigation, bool isNavigationWithinPage); |
| 248 | 245 |
| 249 // Indicates two things: | 246 // Indicates two things: |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 bool m_userGestureObserved; | 469 bool m_userGestureObserved; |
| 473 }; | 470 }; |
| 474 | 471 |
| 475 // We have no ways to check if the specified WebView is an instance of | 472 // We have no ways to check if the specified WebView is an instance of |
| 476 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 473 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 477 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 474 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 478 | 475 |
| 479 } // namespace blink | 476 } // namespace blink |
| 480 | 477 |
| 481 #endif | 478 #endif |
| OLD | NEW |