Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: content/renderer/render_view.cc

Issue 6990072: The first step for enabling off-the-spot IME on Pepper on ChromeOS/Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698