| 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 3559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3570 | 3570 |
| 3571 void WebViewImpl::hidePopups() { | 3571 void WebViewImpl::hidePopups() { |
| 3572 cancelPagePopup(); | 3572 cancelPagePopup(); |
| 3573 } | 3573 } |
| 3574 | 3574 |
| 3575 WebInputMethodControllerImpl* WebViewImpl::getActiveWebInputMethodController() | 3575 WebInputMethodControllerImpl* WebViewImpl::getActiveWebInputMethodController() |
| 3576 const { | 3576 const { |
| 3577 return WebInputMethodControllerImpl::fromFrame(focusedLocalFrameInWidget()); | 3577 return WebInputMethodControllerImpl::fromFrame(focusedLocalFrameInWidget()); |
| 3578 } | 3578 } |
| 3579 | 3579 |
| 3580 void WebViewImpl::requestDecode( |
| 3581 sk_sp<SkImage> image, |
| 3582 std::unique_ptr<WTF::Function<void(bool)>> callback) { |
| 3583 m_layerTreeView->requestDecode(std::move(image), |
| 3584 convertToBaseCallback(std::move(callback))); |
| 3585 } |
| 3586 |
| 3580 Color WebViewImpl::baseBackgroundColor() const { | 3587 Color WebViewImpl::baseBackgroundColor() const { |
| 3581 return m_baseBackgroundColorOverrideEnabled ? m_baseBackgroundColorOverride | 3588 return m_baseBackgroundColorOverrideEnabled ? m_baseBackgroundColorOverride |
| 3582 : m_baseBackgroundColor; | 3589 : m_baseBackgroundColor; |
| 3583 } | 3590 } |
| 3584 | 3591 |
| 3585 void WebViewImpl::setBaseBackgroundColor(WebColor color) { | 3592 void WebViewImpl::setBaseBackgroundColor(WebColor color) { |
| 3586 if (m_baseBackgroundColor == color) | 3593 if (m_baseBackgroundColor == color) |
| 3587 return; | 3594 return; |
| 3588 | 3595 |
| 3589 m_baseBackgroundColor = color; | 3596 m_baseBackgroundColor = color; |
| (...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4226 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) | 4233 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) |
| 4227 return nullptr; | 4234 return nullptr; |
| 4228 return focusedFrame; | 4235 return focusedFrame; |
| 4229 } | 4236 } |
| 4230 | 4237 |
| 4231 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { | 4238 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { |
| 4232 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; | 4239 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; |
| 4233 } | 4240 } |
| 4234 | 4241 |
| 4235 } // namespace blink | 4242 } // namespace blink |
| OLD | NEW |