OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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.h" | 5 #include "content/renderer/render_view.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 3918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3929 (*plugin_it)->SetWindowFocus(true); | 3929 (*plugin_it)->SetWindowFocus(true); |
3930 #endif | 3930 #endif |
3931 (*plugin_it)->SetContentAreaFocus(enable); | 3931 (*plugin_it)->SetContentAreaFocus(enable); |
3932 } | 3932 } |
3933 | 3933 |
3934 // Notify all Pepper plugins. | 3934 // Notify all Pepper plugins. |
3935 pepper_delegate_.OnSetFocus(enable); | 3935 pepper_delegate_.OnSetFocus(enable); |
3936 } | 3936 } |
3937 } | 3937 } |
3938 | 3938 |
| 3939 void RenderView::PpapiPluginFocusChanged(bool focused) { |
| 3940 IPC::Message* msg = new ViewHostMsg_PpapiPluginFocusChanged(routing_id(), |
| 3941 focused); |
| 3942 Send(msg); |
| 3943 } |
| 3944 |
3939 #if defined(OS_MACOSX) | 3945 #if defined(OS_MACOSX) |
3940 void RenderView::PluginFocusChanged(bool focused, int plugin_id) { | 3946 void RenderView::PluginFocusChanged(bool focused, int plugin_id) { |
3941 IPC::Message* msg = new ViewHostMsg_PluginFocusChanged(routing_id(), | 3947 IPC::Message* msg = new ViewHostMsg_PluginFocusChanged(routing_id(), |
3942 focused, plugin_id); | 3948 focused, plugin_id); |
3943 Send(msg); | 3949 Send(msg); |
3944 } | 3950 } |
3945 | 3951 |
3946 void RenderView::StartPluginIme() { | 3952 void RenderView::StartPluginIme() { |
3947 IPC::Message* msg = new ViewHostMsg_StartPluginIme(routing_id()); | 3953 IPC::Message* msg = new ViewHostMsg_StartPluginIme(routing_id()); |
3948 // This message can be sent during event-handling, and needs to be delivered | 3954 // This message can be sent during event-handling, and needs to be delivered |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4179 const webkit_glue::CustomContextMenuContext& custom_context) { | 4185 const webkit_glue::CustomContextMenuContext& custom_context) { |
4180 if (custom_context.is_pepper_menu) | 4186 if (custom_context.is_pepper_menu) |
4181 pepper_delegate_.OnContextMenuClosed(custom_context); | 4187 pepper_delegate_.OnContextMenuClosed(custom_context); |
4182 else | 4188 else |
4183 context_menu_node_.reset(); | 4189 context_menu_node_.reset(); |
4184 } | 4190 } |
4185 | 4191 |
4186 void RenderView::OnNetworkStateChanged(bool online) { | 4192 void RenderView::OnNetworkStateChanged(bool online) { |
4187 WebNetworkStateNotifier::setOnLine(online); | 4193 WebNetworkStateNotifier::setOnLine(online); |
4188 } | 4194 } |
OLD | NEW |