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