| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 #include "web/CompositorWorkerProxyClientImpl.h" | 164 #include "web/CompositorWorkerProxyClientImpl.h" |
| 165 #include "web/ContextMenuAllowedScope.h" | 165 #include "web/ContextMenuAllowedScope.h" |
| 166 #include "web/DedicatedWorkerMessagingProxyProviderImpl.h" | 166 #include "web/DedicatedWorkerMessagingProxyProviderImpl.h" |
| 167 #include "web/DevToolsEmulator.h" | 167 #include "web/DevToolsEmulator.h" |
| 168 #include "web/FullscreenController.h" | 168 #include "web/FullscreenController.h" |
| 169 #include "web/LinkHighlightImpl.h" | 169 #include "web/LinkHighlightImpl.h" |
| 170 #include "web/PageOverlay.h" | 170 #include "web/PageOverlay.h" |
| 171 #include "web/PrerendererClientImpl.h" | 171 #include "web/PrerendererClientImpl.h" |
| 172 #include "web/StorageQuotaClientImpl.h" | 172 #include "web/StorageQuotaClientImpl.h" |
| 173 #include "web/WebDevToolsAgentImpl.h" | 173 #include "web/WebDevToolsAgentImpl.h" |
| 174 #include "web/WebInputMethodControllerImpl.h" | |
| 175 #include "web/WebRemoteFrameImpl.h" | 174 #include "web/WebRemoteFrameImpl.h" |
| 176 #include "web/WebSettingsImpl.h" | 175 #include "web/WebSettingsImpl.h" |
| 177 | 176 |
| 178 #if USE(DEFAULT_RENDER_THEME) | 177 #if USE(DEFAULT_RENDER_THEME) |
| 179 #include "core/layout/LayoutThemeDefault.h" | 178 #include "core/layout/LayoutThemeDefault.h" |
| 180 #endif | 179 #endif |
| 181 | 180 |
| 182 // Get rid of WTF's pow define so we can use std::pow. | 181 // Get rid of WTF's pow define so we can use std::pow. |
| 183 #undef pow | 182 #undef pow |
| 184 #include <cmath> // for std::pow | 183 #include <cmath> // for std::pow |
| (...skipping 3327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3512 void WebViewImpl::DidCloseContextMenu() { | 3511 void WebViewImpl::DidCloseContextMenu() { |
| 3513 LocalFrame* frame = page_->GetFocusController().FocusedFrame(); | 3512 LocalFrame* frame = page_->GetFocusController().FocusedFrame(); |
| 3514 if (frame) | 3513 if (frame) |
| 3515 frame->Selection().SetCaretBlinkingSuspended(false); | 3514 frame->Selection().SetCaretBlinkingSuspended(false); |
| 3516 } | 3515 } |
| 3517 | 3516 |
| 3518 void WebViewImpl::HidePopups() { | 3517 void WebViewImpl::HidePopups() { |
| 3519 CancelPagePopup(); | 3518 CancelPagePopup(); |
| 3520 } | 3519 } |
| 3521 | 3520 |
| 3522 WebInputMethodControllerImpl* WebViewImpl::GetActiveWebInputMethodController() | 3521 WebInputMethodController* WebViewImpl::GetActiveWebInputMethodController() |
| 3523 const { | 3522 const { |
| 3524 return WebInputMethodControllerImpl::FromFrame(FocusedLocalFrameInWidget()); | 3523 WebLocalFrameBase* local_frame = |
| 3524 WebLocalFrameBase::FromFrame(FocusedLocalFrameInWidget()); |
| 3525 return local_frame ? local_frame->GetInputMethodController() : nullptr; |
| 3525 } | 3526 } |
| 3526 | 3527 |
| 3527 Color WebViewImpl::BaseBackgroundColor() const { | 3528 Color WebViewImpl::BaseBackgroundColor() const { |
| 3528 return base_background_color_override_enabled_ | 3529 return base_background_color_override_enabled_ |
| 3529 ? base_background_color_override_ | 3530 ? base_background_color_override_ |
| 3530 : base_background_color_; | 3531 : base_background_color_; |
| 3531 } | 3532 } |
| 3532 | 3533 |
| 3533 void WebViewImpl::SetBaseBackgroundColor(WebColor color) { | 3534 void WebViewImpl::SetBaseBackgroundColor(WebColor color) { |
| 3534 if (base_background_color_ == color) | 3535 if (base_background_color_ == color) |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4152 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) | 4153 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) |
| 4153 return nullptr; | 4154 return nullptr; |
| 4154 return focused_frame; | 4155 return focused_frame; |
| 4155 } | 4156 } |
| 4156 | 4157 |
| 4157 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { | 4158 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { |
| 4158 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; | 4159 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; |
| 4159 } | 4160 } |
| 4160 | 4161 |
| 4161 } // namespace blink | 4162 } // namespace blink |
| OLD | NEW |