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