| 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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 498   // corresponding to the focused frame. It will return nullptr if there is no | 498   // corresponding to the focused frame. It will return nullptr if there is no | 
| 499   // focused frame, or if the there is one but it belongs to a different local | 499   // focused frame, or if the there is one but it belongs to a different local | 
| 500   // root. | 500   // root. | 
| 501   WebInputMethodController* GetActiveWebInputMethodController() const; | 501   WebInputMethodController* GetActiveWebInputMethodController() const; | 
| 502 | 502 | 
| 503   void SetLastHiddenPagePopup(WebPagePopupImpl* page_popup) override { | 503   void SetLastHiddenPagePopup(WebPagePopupImpl* page_popup) override { | 
| 504     last_hidden_page_popup_ = page_popup; | 504     last_hidden_page_popup_ = page_popup; | 
| 505   } | 505   } | 
| 506 | 506 | 
| 507   void RequestDecode( | 507   void RequestDecode( | 
| 508       sk_sp<SkImage>, | 508       const PaintImage&, | 
| 509       std::unique_ptr<WTF::Function<void(bool)>> callback) override; | 509       std::unique_ptr<WTF::Function<void(bool)>> callback) override; | 
| 510 | 510 | 
| 511  private: | 511  private: | 
| 512   void SetPageScaleFactorAndLocation(float, const FloatPoint&); | 512   void SetPageScaleFactorAndLocation(float, const FloatPoint&); | 
| 513   void PropagateZoomFactorToLocalFrameRoots(Frame*, float); | 513   void PropagateZoomFactorToLocalFrameRoots(Frame*, float); | 
| 514 | 514 | 
| 515   void ScrollAndRescaleViewports(float scale_factor, | 515   void ScrollAndRescaleViewports(float scale_factor, | 
| 516                                  const IntPoint& main_frame_origin, | 516                                  const IntPoint& main_frame_origin, | 
| 517                                  const FloatPoint& visual_viewport_origin); | 517                                  const FloatPoint& visual_viewport_origin); | 
| 518 | 518 | 
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 741   Persistent<ResizeViewportAnchor> resize_viewport_anchor_; | 741   Persistent<ResizeViewportAnchor> resize_viewport_anchor_; | 
| 742 }; | 742 }; | 
| 743 | 743 | 
| 744 // 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 | 
| 745 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 745 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 
| 746 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 746 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 
| 747 | 747 | 
| 748 }  // namespace blink | 748 }  // namespace blink | 
| 749 | 749 | 
| 750 #endif | 750 #endif | 
| OLD | NEW | 
|---|