| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 void enableAutoResizeMode(const WebSize& minSize, | 232 void enableAutoResizeMode(const WebSize& minSize, |
| 233 const WebSize& maxSize) override; | 233 const WebSize& maxSize) override; |
| 234 void disableAutoResizeMode() override; | 234 void disableAutoResizeMode() override; |
| 235 void performMediaPlayerAction(const WebMediaPlayerAction& action, | 235 void performMediaPlayerAction(const WebMediaPlayerAction& action, |
| 236 const WebPoint& location) override; | 236 const WebPoint& location) override; |
| 237 void performPluginAction(const WebPluginAction&, const WebPoint&) override; | 237 void performPluginAction(const WebPluginAction&, const WebPoint&) override; |
| 238 void audioStateChanged(bool isAudioPlaying) override; | 238 void audioStateChanged(bool isAudioPlaying) override; |
| 239 WebHitTestResult hitTestResultAt(const WebPoint&) override; | 239 WebHitTestResult hitTestResultAt(const WebPoint&) override; |
| 240 WebHitTestResult hitTestResultForTap(const WebPoint&, | 240 WebHitTestResult hitTestResultForTap(const WebPoint&, |
| 241 const WebSize&) override; | 241 const WebSize&) override; |
| 242 void dragSourceEndedAt(const WebPoint& pointInViewport, | |
| 243 const WebPoint& screenPoint, | |
| 244 WebDragOperation) override; | |
| 245 void dragSourceSystemDragEnded() override; | |
| 246 void spellingMarkers(WebVector<uint32_t>* markers) override; | 242 void spellingMarkers(WebVector<uint32_t>* markers) override; |
| 247 void removeSpellingMarkersUnderWords( | 243 void removeSpellingMarkersUnderWords( |
| 248 const WebVector<WebString>& words) override; | 244 const WebVector<WebString>& words) override; |
| 249 unsigned long createUniqueIdentifierForRequest() override; | 245 unsigned long createUniqueIdentifierForRequest() override; |
| 250 void enableDeviceEmulation(const WebDeviceEmulationParams&) override; | 246 void enableDeviceEmulation(const WebDeviceEmulationParams&) override; |
| 251 void disableDeviceEmulation() override; | 247 void disableDeviceEmulation() override; |
| 252 WebAXObject accessibilityObject() override; | 248 WebAXObject accessibilityObject() override; |
| 253 void setSelectionColors(unsigned activeBackgroundColor, | 249 void setSelectionColors(unsigned activeBackgroundColor, |
| 254 unsigned activeForegroundColor, | 250 unsigned activeForegroundColor, |
| 255 unsigned inactiveBackgroundColor, | 251 unsigned inactiveBackgroundColor, |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } | 495 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } |
| 500 | 496 |
| 501 bool isTransparent() const; | 497 bool isTransparent() const; |
| 502 void setIsTransparent(bool value); | 498 void setIsTransparent(bool value); |
| 503 | 499 |
| 504 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; } | 500 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; } |
| 505 | 501 |
| 506 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); } | 502 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); } |
| 507 | 503 |
| 508 void setDoingDragAndDrop(bool doing) { m_doingDragAndDrop = doing; } | 504 void setDoingDragAndDrop(bool doing) { m_doingDragAndDrop = doing; } |
| 505 bool doingDragAndDrop() { return m_doingDragAndDrop; } |
| 509 | 506 |
| 510 // Returns the currently active WebInputMethodController which the one | 507 // Returns the currently active WebInputMethodController which the one |
| 511 // corresponding to the focused frame. It will return nullptr if there are | 508 // corresponding to the focused frame. It will return nullptr if there are |
| 512 // none or |m_imeAcceptEvents| is false. | 509 // none or |m_imeAcceptEvents| is false. |
| 513 WebInputMethodControllerImpl* getActiveWebInputMethodController() const; | 510 WebInputMethodControllerImpl* getActiveWebInputMethodController() const; |
| 514 | 511 |
| 515 private: | 512 private: |
| 516 InspectorOverlay* inspectorOverlay(); | 513 InspectorOverlay* inspectorOverlay(); |
| 517 | 514 |
| 518 void setPageScaleFactorAndLocation(float, const FloatPoint&); | 515 void setPageScaleFactorAndLocation(float, const FloatPoint&); |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 741 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
| 745 }; | 742 }; |
| 746 | 743 |
| 747 // We have no ways to check if the specified WebView is an instance of | 744 // We have no ways to check if the specified WebView is an instance of |
| 748 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 745 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 749 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 746 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 750 | 747 |
| 751 } // namespace blink | 748 } // namespace blink |
| 752 | 749 |
| 753 #endif | 750 #endif |
| OLD | NEW |