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