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

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

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

Powered by Google App Engine
This is Rietveld 408576698