| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 5193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5204 plugin_it != plugin_delegates_.end(); ++plugin_it) { | 5204 plugin_it != plugin_delegates_.end(); ++plugin_it) { |
| 5205 #if defined(OS_MACOSX) | 5205 #if defined(OS_MACOSX) |
| 5206 // RenderWidget's call to setFocus can cause the underlying webview's | 5206 // RenderWidget's call to setFocus can cause the underlying webview's |
| 5207 // activation state to change just like a call to setIsActive. | 5207 // activation state to change just like a call to setIsActive. |
| 5208 if (enable) | 5208 if (enable) |
| 5209 (*plugin_it)->SetWindowFocus(true); | 5209 (*plugin_it)->SetWindowFocus(true); |
| 5210 #endif | 5210 #endif |
| 5211 (*plugin_it)->SetContentAreaFocus(enable); | 5211 (*plugin_it)->SetContentAreaFocus(enable); |
| 5212 } | 5212 } |
| 5213 | 5213 |
| 5214 // Notify all Pepper plugins. | |
| 5215 pepper_delegate_.OnSetFocus(enable); | |
| 5216 } | 5214 } |
| 5215 // Notify all Pepper plugins. |
| 5216 pepper_delegate_.OnSetFocus(enable); |
| 5217 } | 5217 } |
| 5218 | 5218 |
| 5219 void RenderViewImpl::PpapiPluginFocusChanged() { | 5219 void RenderViewImpl::PpapiPluginFocusChanged() { |
| 5220 UpdateTextInputState(); | 5220 UpdateTextInputState(); |
| 5221 UpdateSelectionBounds(); | 5221 UpdateSelectionBounds(); |
| 5222 } | 5222 } |
| 5223 | 5223 |
| 5224 void RenderViewImpl::PpapiPluginTextInputTypeChanged() { | 5224 void RenderViewImpl::PpapiPluginTextInputTypeChanged() { |
| 5225 UpdateTextInputState(); | 5225 UpdateTextInputState(); |
| 5226 if (renderer_accessibility_) | 5226 if (renderer_accessibility_) |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5671 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5671 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
| 5672 return !!RenderThreadImpl::current()->compositor_thread(); | 5672 return !!RenderThreadImpl::current()->compositor_thread(); |
| 5673 } | 5673 } |
| 5674 | 5674 |
| 5675 void RenderViewImpl::OnJavaBridgeInit() { | 5675 void RenderViewImpl::OnJavaBridgeInit() { |
| 5676 DCHECK(!java_bridge_dispatcher_); | 5676 DCHECK(!java_bridge_dispatcher_); |
| 5677 #if defined(ENABLE_JAVA_BRIDGE) | 5677 #if defined(ENABLE_JAVA_BRIDGE) |
| 5678 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); | 5678 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); |
| 5679 #endif | 5679 #endif |
| 5680 } | 5680 } |
| OLD | NEW |