OLD | NEW |
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 3148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3159 imm32_manager_.SetTextInputMode(m_hWnd, text_input_mode_); | 3159 imm32_manager_.SetTextInputMode(m_hWnd, text_input_mode_); |
3160 } | 3160 } |
3161 | 3161 |
3162 void RenderWidgetHostViewWin::UpdateInputScopeIfNecessary( | 3162 void RenderWidgetHostViewWin::UpdateInputScopeIfNecessary( |
3163 ui::TextInputType text_input_type) { | 3163 ui::TextInputType text_input_type) { |
3164 // The text store is responsible for handling input scope when TSF-aware is | 3164 // The text store is responsible for handling input scope when TSF-aware is |
3165 // required. | 3165 // required. |
3166 if (base::win::IsTSFAwareRequired()) | 3166 if (base::win::IsTSFAwareRequired()) |
3167 return; | 3167 return; |
3168 | 3168 |
3169 ui::tsf_inputscope::SetInputScopeForTsfUnawareWindow(m_hWnd, | 3169 ui::tsf_inputscope::SetInputScopeForTsfUnawareWindow( |
3170 text_input_type); | 3170 m_hWnd, text_input_type, ui::TEXT_INPUT_MODE_DEFAULT); |
3171 } | 3171 } |
3172 | 3172 |
3173 //////////////////////////////////////////////////////////////////////////////// | 3173 //////////////////////////////////////////////////////////////////////////////// |
3174 // RenderWidgetHostView, public: | 3174 // RenderWidgetHostView, public: |
3175 | 3175 |
3176 // static | 3176 // static |
3177 RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget( | 3177 RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget( |
3178 RenderWidgetHost* widget) { | 3178 RenderWidgetHost* widget) { |
3179 return new RenderWidgetHostViewWin(widget); | 3179 return new RenderWidgetHostViewWin(widget); |
3180 } | 3180 } |
3181 | 3181 |
3182 // static | 3182 // static |
3183 void RenderWidgetHostViewPort::GetDefaultScreenInfo( | 3183 void RenderWidgetHostViewPort::GetDefaultScreenInfo( |
3184 WebKit::WebScreenInfo* results) { | 3184 WebKit::WebScreenInfo* results) { |
3185 GetScreenInfoForWindow(0, results); | 3185 GetScreenInfoForWindow(0, results); |
3186 } | 3186 } |
3187 | 3187 |
3188 } // namespace content | 3188 } // namespace content |
OLD | NEW |