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

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

Issue 22794002: Support inputmode using InputScope for Windows8 desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 4 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
« no previous file with comments | « no previous file | no next file » | 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 3162 matching lines...) Expand 10 before | Expand all | Expand 10 after
3173 } 3173 }
3174 3174
3175 void RenderWidgetHostViewWin::UpdateInputScopeIfNecessary( 3175 void RenderWidgetHostViewWin::UpdateInputScopeIfNecessary(
3176 ui::TextInputType text_input_type) { 3176 ui::TextInputType text_input_type) {
3177 // The text store is responsible for handling input scope when TSF-aware is 3177 // The text store is responsible for handling input scope when TSF-aware is
3178 // required. 3178 // required.
3179 if (base::win::IsTSFAwareRequired()) 3179 if (base::win::IsTSFAwareRequired())
3180 return; 3180 return;
3181 3181
3182 ui::tsf_inputscope::SetInputScopeForTsfUnawareWindow( 3182 ui::tsf_inputscope::SetInputScopeForTsfUnawareWindow(
3183 m_hWnd, text_input_type, ui::TEXT_INPUT_MODE_DEFAULT); 3183 m_hWnd, text_input_type, text_input_mode_);
3184 } 3184 }
3185 3185
3186 //////////////////////////////////////////////////////////////////////////////// 3186 ////////////////////////////////////////////////////////////////////////////////
3187 // RenderWidgetHostView, public: 3187 // RenderWidgetHostView, public:
3188 3188
3189 // static 3189 // static
3190 RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget( 3190 RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget(
3191 RenderWidgetHost* widget) { 3191 RenderWidgetHost* widget) {
3192 return new RenderWidgetHostViewWin(widget); 3192 return new RenderWidgetHostViewWin(widget);
3193 } 3193 }
3194 3194
3195 // static 3195 // static
3196 void RenderWidgetHostViewPort::GetDefaultScreenInfo( 3196 void RenderWidgetHostViewPort::GetDefaultScreenInfo(
3197 WebKit::WebScreenInfo* results) { 3197 WebKit::WebScreenInfo* results) {
3198 GetScreenInfoForWindow(0, results); 3198 GetScreenInfoForWindow(0, results);
3199 } 3199 }
3200 3200
3201 } // namespace content 3201 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698