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

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

Issue 2769823002: Add decode() functionality to image elements. (Closed)
Patch Set: rebase Created 3 years, 6 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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 // Returns the currently active WebInputMethodController which is the one 500 // Returns the currently active WebInputMethodController which is the one
501 // corresponding to the focused frame. It will return nullptr if there is no 501 // corresponding to the focused frame. It will return nullptr if there is no
502 // focused frame, or if the there is one but it belongs to a different local 502 // focused frame, or if the there is one but it belongs to a different local
503 // root. 503 // root.
504 WebInputMethodController* GetActiveWebInputMethodController() const; 504 WebInputMethodController* GetActiveWebInputMethodController() const;
505 505
506 void SetLastHiddenPagePopup(WebPagePopupImpl* page_popup) override { 506 void SetLastHiddenPagePopup(WebPagePopupImpl* page_popup) override {
507 last_hidden_page_popup_ = page_popup; 507 last_hidden_page_popup_ = page_popup;
508 } 508 }
509 509
510 void RequestDecode(
511 sk_sp<SkImage>,
512 std::unique_ptr<WTF::Function<void(bool)>> callback) override;
513
510 private: 514 private:
511 void SetPageScaleFactorAndLocation(float, const FloatPoint&); 515 void SetPageScaleFactorAndLocation(float, const FloatPoint&);
512 void PropagateZoomFactorToLocalFrameRoots(Frame*, float); 516 void PropagateZoomFactorToLocalFrameRoots(Frame*, float);
513 517
514 void ScrollAndRescaleViewports(float scale_factor, 518 void ScrollAndRescaleViewports(float scale_factor,
515 const IntPoint& main_frame_origin, 519 const IntPoint& main_frame_origin,
516 const FloatPoint& visual_viewport_origin); 520 const FloatPoint& visual_viewport_origin);
517 521
518 float MaximumLegiblePageScale() const; 522 float MaximumLegiblePageScale() const;
519 void RefreshPageScaleFactorAfterLayout(); 523 void RefreshPageScaleFactorAfterLayout();
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 Persistent<ResizeViewportAnchor> resize_viewport_anchor_; 744 Persistent<ResizeViewportAnchor> resize_viewport_anchor_;
741 }; 745 };
742 746
743 // We have no ways to check if the specified WebView is an instance of 747 // We have no ways to check if the specified WebView is an instance of
744 // WebViewImpl because WebViewImpl is the only implementation of WebView. 748 // WebViewImpl because WebViewImpl is the only implementation of WebView.
745 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 749 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
746 750
747 } // namespace blink 751 } // namespace blink
748 752
749 #endif 753 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698