| 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/browser/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 950 } | 950 } |
| 951 | 951 |
| 952 void RenderViewHostImpl::OnFocus() { | 952 void RenderViewHostImpl::OnFocus() { |
| 953 // Note: We allow focus and blur from swapped out RenderViewHosts, even when | 953 // Note: We allow focus and blur from swapped out RenderViewHosts, even when |
| 954 // the active RenderViewHost is in a different BrowsingInstance (e.g., WebUI). | 954 // the active RenderViewHost is in a different BrowsingInstance (e.g., WebUI). |
| 955 delegate_->Activate(); | 955 delegate_->Activate(); |
| 956 } | 956 } |
| 957 | 957 |
| 958 void RenderViewHostImpl::RenderWidgetDidForwardMouseEvent( | 958 void RenderViewHostImpl::RenderWidgetDidForwardMouseEvent( |
| 959 const blink::WebMouseEvent& mouse_event) { | 959 const blink::WebMouseEvent& mouse_event) { |
| 960 if (mouse_event.type == WebInputEvent::MouseWheel && | 960 if (mouse_event.type() == WebInputEvent::MouseWheel && |
| 961 GetWidget()->ignore_input_events()) { | 961 GetWidget()->ignore_input_events()) { |
| 962 delegate_->OnIgnoredUIEvent(); | 962 delegate_->OnIgnoredUIEvent(); |
| 963 } | 963 } |
| 964 } | 964 } |
| 965 | 965 |
| 966 bool RenderViewHostImpl::MayRenderWidgetForwardKeyboardEvent( | 966 bool RenderViewHostImpl::MayRenderWidgetForwardKeyboardEvent( |
| 967 const NativeWebKeyboardEvent& key_event) { | 967 const NativeWebKeyboardEvent& key_event) { |
| 968 if (GetWidget()->ignore_input_events()) { | 968 if (GetWidget()->ignore_input_events()) { |
| 969 if (key_event.type == WebInputEvent::RawKeyDown) | 969 if (key_event.type() == WebInputEvent::RawKeyDown) |
| 970 delegate_->OnIgnoredUIEvent(); | 970 delegate_->OnIgnoredUIEvent(); |
| 971 return false; | 971 return false; |
| 972 } | 972 } |
| 973 return true; | 973 return true; |
| 974 } | 974 } |
| 975 | 975 |
| 976 WebPreferences RenderViewHostImpl::GetWebkitPreferences() { | 976 WebPreferences RenderViewHostImpl::GetWebkitPreferences() { |
| 977 if (!web_preferences_.get()) { | 977 if (!web_preferences_.get()) { |
| 978 OnWebkitPreferencesChanged(); | 978 OnWebkitPreferencesChanged(); |
| 979 } | 979 } |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1088 } else { | 1088 } else { |
| 1089 render_view_ready_on_process_launch_ = true; | 1089 render_view_ready_on_process_launch_ = true; |
| 1090 } | 1090 } |
| 1091 } | 1091 } |
| 1092 | 1092 |
| 1093 void RenderViewHostImpl::RenderViewReady() { | 1093 void RenderViewHostImpl::RenderViewReady() { |
| 1094 delegate_->RenderViewReady(this); | 1094 delegate_->RenderViewReady(this); |
| 1095 } | 1095 } |
| 1096 | 1096 |
| 1097 } // namespace content | 1097 } // namespace content |
| OLD | NEW |