| 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 void WebViewImpl::HidePopups() { | 3528 void WebViewImpl::HidePopups() { |
| 3529 CancelPagePopup(); | 3529 CancelPagePopup(); |
| 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 layer_tree_view_->RequestDecode(std::move(image), |
| 3541 ConvertToBaseCallback(std::move(callback))); |
| 3542 } |
| 3543 |
| 3537 Color WebViewImpl::BaseBackgroundColor() const { | 3544 Color WebViewImpl::BaseBackgroundColor() const { |
| 3538 return base_background_color_override_enabled_ | 3545 return base_background_color_override_enabled_ |
| 3539 ? base_background_color_override_ | 3546 ? base_background_color_override_ |
| 3540 : base_background_color_; | 3547 : base_background_color_; |
| 3541 } | 3548 } |
| 3542 | 3549 |
| 3543 void WebViewImpl::SetBaseBackgroundColor(WebColor color) { | 3550 void WebViewImpl::SetBaseBackgroundColor(WebColor color) { |
| 3544 if (base_background_color_ == color) | 3551 if (base_background_color_ == color) |
| 3545 return; | 3552 return; |
| 3546 | 3553 |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4169 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) | 4176 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) |
| 4170 return nullptr; | 4177 return nullptr; |
| 4171 return focused_frame; | 4178 return focused_frame; |
| 4172 } | 4179 } |
| 4173 | 4180 |
| 4174 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { | 4181 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { |
| 4175 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; | 4182 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; |
| 4176 } | 4183 } |
| 4177 | 4184 |
| 4178 } // namespace blink | 4185 } // namespace blink |
| OLD | NEW |