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 3162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |