OLD | NEW |
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 3516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3527 | 3527 |
3528 bool WebViewImpl::isTransparent() const { | 3528 bool WebViewImpl::isTransparent() const { |
3529 return m_isTransparent; | 3529 return m_isTransparent; |
3530 } | 3530 } |
3531 | 3531 |
3532 WebInputMethodControllerImpl* WebViewImpl::getActiveWebInputMethodController() | 3532 WebInputMethodControllerImpl* WebViewImpl::getActiveWebInputMethodController() |
3533 const { | 3533 const { |
3534 return WebInputMethodControllerImpl::fromFrame(focusedLocalFrameInWidget()); | 3534 return WebInputMethodControllerImpl::fromFrame(focusedLocalFrameInWidget()); |
3535 } | 3535 } |
3536 | 3536 |
| 3537 void WebViewImpl::requestDecode( |
| 3538 sk_sp<SkImage> image, |
| 3539 std::unique_ptr<WTF::Function<void(bool)>> callback) { |
| 3540 m_layerTreeView->requestDecode(std::move(image), |
| 3541 convertToBaseCallback(std::move(callback))); |
| 3542 } |
| 3543 |
3537 Color WebViewImpl::baseBackgroundColor() const { | 3544 Color WebViewImpl::baseBackgroundColor() const { |
3538 return m_baseBackgroundColorOverrideEnabled ? m_baseBackgroundColorOverride | 3545 return m_baseBackgroundColorOverrideEnabled ? m_baseBackgroundColorOverride |
3539 : m_baseBackgroundColor; | 3546 : m_baseBackgroundColor; |
3540 } | 3547 } |
3541 | 3548 |
3542 void WebViewImpl::setBaseBackgroundColor(WebColor color) { | 3549 void WebViewImpl::setBaseBackgroundColor(WebColor color) { |
3543 if (m_baseBackgroundColor == color) | 3550 if (m_baseBackgroundColor == color) |
3544 return; | 3551 return; |
3545 | 3552 |
3546 m_baseBackgroundColor = color; | 3553 m_baseBackgroundColor = color; |
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4177 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) | 4184 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) |
4178 return nullptr; | 4185 return nullptr; |
4179 return focusedFrame; | 4186 return focusedFrame; |
4180 } | 4187 } |
4181 | 4188 |
4182 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { | 4189 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { |
4183 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; | 4190 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; |
4184 } | 4191 } |
4185 | 4192 |
4186 } // namespace blink | 4193 } // namespace blink |
OLD | NEW |