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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; } | 507 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; } |
508 | 508 |
509 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); } | 509 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); } |
510 | 510 |
511 // Returns the currently active WebInputMethodController which is the one | 511 // Returns the currently active WebInputMethodController which is the one |
512 // corresponding to the focused frame. It will return nullptr if there is no | 512 // corresponding to the focused frame. It will return nullptr if there is no |
513 // focused frame, or if the there is one but it belongs to a different local | 513 // focused frame, or if the there is one but it belongs to a different local |
514 // root. | 514 // root. |
515 WebInputMethodControllerImpl* getActiveWebInputMethodController() const; | 515 WebInputMethodControllerImpl* getActiveWebInputMethodController() const; |
516 | 516 |
| 517 void requestDecode(sk_sp<SkImage>, |
| 518 std::unique_ptr<WTF::Function<void(bool)>> callback); |
| 519 |
517 private: | 520 private: |
518 InspectorOverlay* inspectorOverlay(); | 521 InspectorOverlay* inspectorOverlay(); |
519 | 522 |
520 void setPageScaleFactorAndLocation(float, const FloatPoint&); | 523 void setPageScaleFactorAndLocation(float, const FloatPoint&); |
521 void propagateZoomFactorToLocalFrameRoots(Frame*, float); | 524 void propagateZoomFactorToLocalFrameRoots(Frame*, float); |
522 | 525 |
523 void scrollAndRescaleViewports(float scaleFactor, | 526 void scrollAndRescaleViewports(float scaleFactor, |
524 const IntPoint& mainFrameOrigin, | 527 const IntPoint& mainFrameOrigin, |
525 const FloatPoint& visualViewportOrigin); | 528 const FloatPoint& visualViewportOrigin); |
526 | 529 |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 752 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
750 }; | 753 }; |
751 | 754 |
752 // We have no ways to check if the specified WebView is an instance of | 755 // We have no ways to check if the specified WebView is an instance of |
753 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 756 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
754 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 757 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
755 | 758 |
756 } // namespace blink | 759 } // namespace blink |
757 | 760 |
758 #endif | 761 #endif |
OLD | NEW |