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

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

Issue 2769823002: Add decode() functionality to image elements. (Closed)
Patch Set: update 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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 3558 matching lines...) Expand 10 before | Expand all | Expand 10 after
3569 3569
3570 void WebViewImpl::hidePopups() { 3570 void WebViewImpl::hidePopups() {
3571 cancelPagePopup(); 3571 cancelPagePopup();
3572 } 3572 }
3573 3573
3574 WebInputMethodControllerImpl* WebViewImpl::getActiveWebInputMethodController() 3574 WebInputMethodControllerImpl* WebViewImpl::getActiveWebInputMethodController()
3575 const { 3575 const {
3576 return WebInputMethodControllerImpl::fromFrame(focusedLocalFrameInWidget()); 3576 return WebInputMethodControllerImpl::fromFrame(focusedLocalFrameInWidget());
3577 } 3577 }
3578 3578
3579 void WebViewImpl::requestDecode(
3580 sk_sp<SkImage> image,
3581 std::unique_ptr<WTF::Function<void(bool)>> callback) {
3582 m_layerTreeView->requestDecode(std::move(image),
3583 convertToBaseCallback(std::move(callback)));
3584 }
3585
3579 Color WebViewImpl::baseBackgroundColor() const { 3586 Color WebViewImpl::baseBackgroundColor() const {
3580 return m_baseBackgroundColorOverrideEnabled ? m_baseBackgroundColorOverride 3587 return m_baseBackgroundColorOverrideEnabled ? m_baseBackgroundColorOverride
3581 : m_baseBackgroundColor; 3588 : m_baseBackgroundColor;
3582 } 3589 }
3583 3590
3584 void WebViewImpl::setBaseBackgroundColor(WebColor color) { 3591 void WebViewImpl::setBaseBackgroundColor(WebColor color) {
3585 if (m_baseBackgroundColor == color) 3592 if (m_baseBackgroundColor == color)
3586 return; 3593 return;
3587 3594
3588 m_baseBackgroundColor = color; 3595 m_baseBackgroundColor = color;
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
4225 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) 4232 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame())
4226 return nullptr; 4233 return nullptr;
4227 return focusedFrame; 4234 return focusedFrame;
4228 } 4235 }
4229 4236
4230 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { 4237 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const {
4231 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; 4238 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr;
4232 } 4239 }
4233 4240
4234 } // namespace blink 4241 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698