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

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

Issue 22401002: Add GetTextInputMode function to TextInputClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reorder declaration 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
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 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 } 1031 }
1032 1032
1033 ui::TextInputType RenderWidgetHostViewWin::GetTextInputType() const { 1033 ui::TextInputType RenderWidgetHostViewWin::GetTextInputType() const {
1034 if (!base::win::IsTSFAwareRequired()) { 1034 if (!base::win::IsTSFAwareRequired()) {
1035 NOTREACHED(); 1035 NOTREACHED();
1036 return ui::TEXT_INPUT_TYPE_NONE; 1036 return ui::TEXT_INPUT_TYPE_NONE;
1037 } 1037 }
1038 return text_input_type_; 1038 return text_input_type_;
1039 } 1039 }
1040 1040
1041 ui::TextInputMode RenderWidgetHostViewWin::GetTextInputMode() const {
1042 if (!base::win::IsTSFAwareRequired()) {
1043 NOTREACHED();
1044 return ui::TEXT_INPUT_MODE_DEFAULT;
1045 }
1046 return ui::TEXT_INPUT_MODE_DEFAULT;
1047 }
1048
1041 bool RenderWidgetHostViewWin::CanComposeInline() const { 1049 bool RenderWidgetHostViewWin::CanComposeInline() const {
1042 if (!base::win::IsTSFAwareRequired()) { 1050 if (!base::win::IsTSFAwareRequired()) {
1043 NOTREACHED(); 1051 NOTREACHED();
1044 return false; 1052 return false;
1045 } 1053 }
1046 // TODO(nona): Implement this function. 1054 // TODO(nona): Implement this function.
1047 NOTIMPLEMENTED(); 1055 NOTIMPLEMENTED();
1048 return false; 1056 return false;
1049 } 1057 }
1050 1058
(...skipping 2126 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.h ('k') | ui/base/ime/input_method_ibus_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698