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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_win.cc

Issue 23542003: Support inputmode using InputScope for Windows8 metro. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
« no previous file with comments | « no previous file | ui/base/ime/win/tsf_text_store.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_widget_host_view_win.h" 5 #include "content/browser/renderer_host/render_widget_host_view_win.h"
6 6
7 #include <InputScope.h> 7 #include <InputScope.h>
8 #include <wtsapi32.h> 8 #include <wtsapi32.h>
9 #pragma comment(lib, "wtsapi32.lib") 9 #pragma comment(lib, "wtsapi32.lib")
10 10
(...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after
1043 return ui::TEXT_INPUT_TYPE_NONE; 1043 return ui::TEXT_INPUT_TYPE_NONE;
1044 } 1044 }
1045 return text_input_type_; 1045 return text_input_type_;
1046 } 1046 }
1047 1047
1048 ui::TextInputMode RenderWidgetHostViewWin::GetTextInputMode() const { 1048 ui::TextInputMode RenderWidgetHostViewWin::GetTextInputMode() const {
1049 if (!base::win::IsTSFAwareRequired()) { 1049 if (!base::win::IsTSFAwareRequired()) {
1050 NOTREACHED(); 1050 NOTREACHED();
1051 return ui::TEXT_INPUT_MODE_DEFAULT; 1051 return ui::TEXT_INPUT_MODE_DEFAULT;
1052 } 1052 }
1053 return ui::TEXT_INPUT_MODE_DEFAULT; 1053 return text_input_mode_;
1054 } 1054 }
1055 1055
1056 bool RenderWidgetHostViewWin::CanComposeInline() const { 1056 bool RenderWidgetHostViewWin::CanComposeInline() const {
1057 if (!base::win::IsTSFAwareRequired()) { 1057 if (!base::win::IsTSFAwareRequired()) {
1058 NOTREACHED(); 1058 NOTREACHED();
1059 return false; 1059 return false;
1060 } 1060 }
1061 // TODO(nona): Implement this function. 1061 // TODO(nona): Implement this function.
1062 NOTIMPLEMENTED(); 1062 NOTIMPLEMENTED();
1063 return false; 1063 return false;
(...skipping 2130 matching lines...) Expand 10 before | Expand all | Expand 10 after
3194 return new RenderWidgetHostViewWin(widget); 3194 return new RenderWidgetHostViewWin(widget);
3195 } 3195 }
3196 3196
3197 // static 3197 // static
3198 void RenderWidgetHostViewPort::GetDefaultScreenInfo( 3198 void RenderWidgetHostViewPort::GetDefaultScreenInfo(
3199 WebKit::WebScreenInfo* results) { 3199 WebKit::WebScreenInfo* results) {
3200 GetScreenInfoForWindow(0, results); 3200 GetScreenInfoForWindow(0, results);
3201 } 3201 }
3202 3202
3203 } // namespace content 3203 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | ui/base/ime/win/tsf_text_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698