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

Unified Diff: content/renderer/render_view.cc

Issue 7041003: Show composition text on IME panel when Pepper plugin is focused (Linux). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added COMPILE_ASSERT 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_view.h ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view.cc
diff --git a/content/renderer/render_view.cc b/content/renderer/render_view.cc
index 0d1e8e06135343697d8d0c522435b7a83ab9063f..cb37e1db180fd3f9f88c52a3de093d38339169a6 100644
--- a/content/renderer/render_view.cc
+++ b/content/renderer/render_view.cc
@@ -3977,14 +3977,22 @@ void RenderView::OnImeConfirmComposition(const string16& text) {
}
}
-WebKit::WebTextInputType RenderView::GetTextInputType() {
+ui::TextInputType RenderView::GetTextInputType() {
if (pepper_delegate_.IsPluginFocused()) {
// TODO(kinaba) Until PPAPI has an interface for handling IME events, we
// consider all the parts of PPAPI plugins are accepting text inputs.
- return WebKit::WebTextInputTypeText;
- } else {
- return RenderWidget::GetTextInputType();
+ return ui::TEXT_INPUT_TYPE_TEXT;
}
+ return RenderWidget::GetTextInputType();
+}
+
+bool RenderView::CanComposeInline() {
+ if (pepper_delegate_.IsPluginFocused()) {
+ // TODO(kinaba) Until PPAPI has an interface for handling IME events, we
+ // consider all the parts of PPAPI plugins are accepting text inputs.
brettw 2011/06/16 17:39:43 I don't quite follow this comment. To me, consider
kochi 2011/06/17 03:47:21 Maybe like this: Until PPAPI has an interface for
kinaba 2011/06/17 04:12:25 Done.
+ return false;
+ }
+ return true;
}
#if defined(OS_MACOSX)
« no previous file with comments | « content/renderer/render_view.h ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698