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 3550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3561 | 3561 |
3562 void WebViewImpl::HidePopups() { | 3562 void WebViewImpl::HidePopups() { |
3563 CancelPagePopup(); | 3563 CancelPagePopup(); |
3564 } | 3564 } |
3565 | 3565 |
3566 WebInputMethodControllerImpl* WebViewImpl::GetActiveWebInputMethodController() | 3566 WebInputMethodControllerImpl* WebViewImpl::GetActiveWebInputMethodController() |
3567 const { | 3567 const { |
3568 return WebInputMethodControllerImpl::FromFrame(FocusedLocalFrameInWidget()); | 3568 return WebInputMethodControllerImpl::FromFrame(FocusedLocalFrameInWidget()); |
3569 } | 3569 } |
3570 | 3570 |
| 3571 void WebViewImpl::RequestDecode( |
| 3572 sk_sp<SkImage> image, |
| 3573 std::unique_ptr<WTF::Function<void(bool)>> callback) { |
| 3574 layer_tree_view_->RequestDecode(std::move(image), |
| 3575 ConvertToBaseCallback(std::move(callback))); |
| 3576 } |
| 3577 |
3571 Color WebViewImpl::BaseBackgroundColor() const { | 3578 Color WebViewImpl::BaseBackgroundColor() const { |
3572 return base_background_color_override_enabled_ | 3579 return base_background_color_override_enabled_ |
3573 ? base_background_color_override_ | 3580 ? base_background_color_override_ |
3574 : base_background_color_; | 3581 : base_background_color_; |
3575 } | 3582 } |
3576 | 3583 |
3577 void WebViewImpl::SetBaseBackgroundColor(WebColor color) { | 3584 void WebViewImpl::SetBaseBackgroundColor(WebColor color) { |
3578 if (base_background_color_ == color) | 3585 if (base_background_color_ == color) |
3579 return; | 3586 return; |
3580 | 3587 |
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4190 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) | 4197 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) |
4191 return nullptr; | 4198 return nullptr; |
4192 return focused_frame; | 4199 return focused_frame; |
4193 } | 4200 } |
4194 | 4201 |
4195 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { | 4202 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { |
4196 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; | 4203 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; |
4197 } | 4204 } |
4198 | 4205 |
4199 } // namespace blink | 4206 } // namespace blink |
OLD | NEW |