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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 double LastFrameTimeMonotonic() const { return last_frame_time_monotonic_; } | 495 double LastFrameTimeMonotonic() const { return last_frame_time_monotonic_; } |
496 | 496 |
497 ChromeClientImpl& ChromeClient() const { return *chrome_client_impl_.Get(); } | 497 ChromeClientImpl& ChromeClient() const { return *chrome_client_impl_.Get(); } |
498 | 498 |
499 // Returns the currently active WebInputMethodController which is the one | 499 // Returns the currently active WebInputMethodController which is the one |
500 // corresponding to the focused frame. It will return nullptr if there is no | 500 // corresponding to the focused frame. It will return nullptr if there is no |
501 // focused frame, or if the there is one but it belongs to a different local | 501 // focused frame, or if the there is one but it belongs to a different local |
502 // root. | 502 // root. |
503 WebInputMethodControllerImpl* GetActiveWebInputMethodController() const; | 503 WebInputMethodControllerImpl* GetActiveWebInputMethodController() const; |
504 | 504 |
| 505 void RequestDecode(sk_sp<SkImage>, |
| 506 std::unique_ptr<WTF::Function<void(bool)>> callback); |
| 507 |
505 private: | 508 private: |
506 InspectorOverlay* GetInspectorOverlay(); | 509 InspectorOverlay* GetInspectorOverlay(); |
507 | 510 |
508 void SetPageScaleFactorAndLocation(float, const FloatPoint&); | 511 void SetPageScaleFactorAndLocation(float, const FloatPoint&); |
509 void PropagateZoomFactorToLocalFrameRoots(Frame*, float); | 512 void PropagateZoomFactorToLocalFrameRoots(Frame*, float); |
510 | 513 |
511 void ScrollAndRescaleViewports(float scale_factor, | 514 void ScrollAndRescaleViewports(float scale_factor, |
512 const IntPoint& main_frame_origin, | 515 const IntPoint& main_frame_origin, |
513 const FloatPoint& visual_viewport_origin); | 516 const FloatPoint& visual_viewport_origin); |
514 | 517 |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 Persistent<ResizeViewportAnchor> resize_viewport_anchor_; | 739 Persistent<ResizeViewportAnchor> resize_viewport_anchor_; |
737 }; | 740 }; |
738 | 741 |
739 // We have no ways to check if the specified WebView is an instance of | 742 // We have no ways to check if the specified WebView is an instance of |
740 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 743 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
741 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 744 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
742 | 745 |
743 } // namespace blink | 746 } // namespace blink |
744 | 747 |
745 #endif | 748 #endif |
OLD | NEW |