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 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1041 bool RenderWidgetHostViewWin::CanComposeInline() const { | 1041 bool RenderWidgetHostViewWin::CanComposeInline() const { |
1042 if (!base::win::IsTSFAwareRequired()) { | 1042 if (!base::win::IsTSFAwareRequired()) { |
1043 NOTREACHED(); | 1043 NOTREACHED(); |
1044 return false; | 1044 return false; |
1045 } | 1045 } |
1046 // TODO(nona): Implement this function. | 1046 // TODO(nona): Implement this function. |
1047 NOTIMPLEMENTED(); | 1047 NOTIMPLEMENTED(); |
1048 return false; | 1048 return false; |
1049 } | 1049 } |
1050 | 1050 |
| 1051 ui::TextInputMode RenderWidgetHostViewWin::GetTextInputMode() const { |
| 1052 if (!base::win::IsTSFAwareRequired()) { |
| 1053 NOTREACHED(); |
| 1054 return ui::TEXT_INPUT_MODE_DEFAULT; |
| 1055 } |
| 1056 return ui::TEXT_INPUT_MODE_DEFAULT; |
| 1057 } |
| 1058 |
1051 gfx::Rect RenderWidgetHostViewWin::GetCaretBounds() { | 1059 gfx::Rect RenderWidgetHostViewWin::GetCaretBounds() { |
1052 if (!base::win::IsTSFAwareRequired()) { | 1060 if (!base::win::IsTSFAwareRequired()) { |
1053 NOTREACHED(); | 1061 NOTREACHED(); |
1054 return gfx::Rect(0, 0, 0, 0); | 1062 return gfx::Rect(0, 0, 0, 0); |
1055 } | 1063 } |
1056 RECT tmp_rect = caret_rect_.ToRECT(); | 1064 RECT tmp_rect = caret_rect_.ToRECT(); |
1057 ClientToScreen(&tmp_rect); | 1065 ClientToScreen(&tmp_rect); |
1058 return gfx::Rect(tmp_rect); | 1066 return gfx::Rect(tmp_rect); |
1059 } | 1067 } |
1060 | 1068 |
(...skipping 2116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3177 return new RenderWidgetHostViewWin(widget); | 3185 return new RenderWidgetHostViewWin(widget); |
3178 } | 3186 } |
3179 | 3187 |
3180 // static | 3188 // static |
3181 void RenderWidgetHostViewPort::GetDefaultScreenInfo( | 3189 void RenderWidgetHostViewPort::GetDefaultScreenInfo( |
3182 WebKit::WebScreenInfo* results) { | 3190 WebKit::WebScreenInfo* results) { |
3183 GetScreenInfoForWindow(0, results); | 3191 GetScreenInfoForWindow(0, results); |
3184 } | 3192 } |
3185 | 3193 |
3186 } // namespace content | 3194 } // namespace content |
OLD | NEW |