Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.h

Issue 2769823002: Add decode() functionality to image elements. (Closed)
Patch Set: rebase + update Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 SetLastHiddenPagePopup(WebPagePopupImpl* page_popup) override { 510 void SetLastHiddenPagePopup(WebPagePopupImpl* page_popup) override {
511 last_hidden_page_popup_ = page_popup; 511 last_hidden_page_popup_ = page_popup;
512 } 512 }
513 513
514 void RequestDecode(
515 sk_sp<SkImage>,
516 std::unique_ptr<WTF::Function<void(bool)>> callback) override;
517
514 private: 518 private:
515 void SetPageScaleFactorAndLocation(float, const FloatPoint&); 519 void SetPageScaleFactorAndLocation(float, const FloatPoint&);
516 void PropagateZoomFactorToLocalFrameRoots(Frame*, float); 520 void PropagateZoomFactorToLocalFrameRoots(Frame*, float);
517 521
518 void ScrollAndRescaleViewports(float scale_factor, 522 void ScrollAndRescaleViewports(float scale_factor,
519 const IntPoint& main_frame_origin, 523 const IntPoint& main_frame_origin,
520 const FloatPoint& visual_viewport_origin); 524 const FloatPoint& visual_viewport_origin);
521 525
522 float MaximumLegiblePageScale() const; 526 float MaximumLegiblePageScale() const;
523 void RefreshPageScaleFactorAfterLayout(); 527 void RefreshPageScaleFactorAfterLayout();
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 Persistent<ResizeViewportAnchor> resize_viewport_anchor_; 751 Persistent<ResizeViewportAnchor> resize_viewport_anchor_;
748 }; 752 };
749 753
750 // We have no ways to check if the specified WebView is an instance of 754 // We have no ways to check if the specified WebView is an instance of
751 // WebViewImpl because WebViewImpl is the only implementation of WebView. 755 // WebViewImpl because WebViewImpl is the only implementation of WebView.
752 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 756 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
753 757
754 } // namespace blink 758 } // namespace blink
755 759
756 #endif 760 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698