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

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

Issue 7082034: Send IME events to windowless plug-ins (Chromium side) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 3978 matching lines...) Expand 10 before | Expand all | Expand 10 after
3989 WebKit::WebTextInputType RenderView::GetTextInputType() { 3989 WebKit::WebTextInputType RenderView::GetTextInputType() {
3990 if (pepper_delegate_.IsPluginFocused()) { 3990 if (pepper_delegate_.IsPluginFocused()) {
3991 // TODO(kinaba) Until PPAPI has an interface for handling IME events, we 3991 // TODO(kinaba) Until PPAPI has an interface for handling IME events, we
3992 // consider all the parts of PPAPI plugins are accepting text inputs. 3992 // consider all the parts of PPAPI plugins are accepting text inputs.
3993 return WebKit::WebTextInputTypeText; 3993 return WebKit::WebTextInputTypeText;
3994 } else { 3994 } else {
3995 return RenderWidget::GetTextInputType(); 3995 return RenderWidget::GetTextInputType();
3996 } 3996 }
3997 } 3997 }
3998 3998
3999 #if defined(OS_WIN)
4000 void RenderView::UpdatePluginIMEStatus(int input_type,
4001 const gfx::Rect& caret_rect) {
4002 Send(new ViewHostMsg_ImeUpdateTextInputState(routing_id(),
4003 static_cast<WebKit::WebTextInputType>(input_type), caret_rect));
4004 }
4005 #endif
4006
3999 #if defined(OS_MACOSX) 4007 #if defined(OS_MACOSX)
4000 void RenderView::PluginFocusChanged(bool focused, int plugin_id) { 4008 void RenderView::PluginFocusChanged(bool focused, int plugin_id) {
4001 IPC::Message* msg = new ViewHostMsg_PluginFocusChanged(routing_id(), 4009 IPC::Message* msg = new ViewHostMsg_PluginFocusChanged(routing_id(),
4002 focused, plugin_id); 4010 focused, plugin_id);
4003 Send(msg); 4011 Send(msg);
4004 } 4012 }
4005 4013
4006 void RenderView::StartPluginIme() { 4014 void RenderView::StartPluginIme() {
4007 IPC::Message* msg = new ViewHostMsg_StartPluginIme(routing_id()); 4015 IPC::Message* msg = new ViewHostMsg_StartPluginIme(routing_id());
4008 // This message can be sent during event-handling, and needs to be delivered 4016 // This message can be sent during event-handling, and needs to be delivered
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
4246 const webkit_glue::CustomContextMenuContext& custom_context) { 4254 const webkit_glue::CustomContextMenuContext& custom_context) {
4247 if (custom_context.is_pepper_menu) 4255 if (custom_context.is_pepper_menu)
4248 pepper_delegate_.OnContextMenuClosed(custom_context); 4256 pepper_delegate_.OnContextMenuClosed(custom_context);
4249 else 4257 else
4250 context_menu_node_.reset(); 4258 context_menu_node_.reset();
4251 } 4259 }
4252 4260
4253 void RenderView::OnNetworkStateChanged(bool online) { 4261 void RenderView::OnNetworkStateChanged(bool online) {
4254 WebNetworkStateNotifier::setOnLine(online); 4262 WebNetworkStateNotifier::setOnLine(online);
4255 } 4263 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698