| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "views/controls/textfield/native_textfield_win.h" | 5 #include "views/controls/textfield/native_textfield_win.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/i18n/case_conversion.h" | 9 #include "base/i18n/case_conversion.h" |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 HIMC imm_context = ImmGetContext(m_hWnd); | 329 HIMC imm_context = ImmGetContext(m_hWnd); |
| 330 if (!imm_context) | 330 if (!imm_context) |
| 331 return false; | 331 return false; |
| 332 | 332 |
| 333 const int composition_size = ImmGetCompositionString(imm_context, GCS_COMPSTR, | 333 const int composition_size = ImmGetCompositionString(imm_context, GCS_COMPSTR, |
| 334 NULL, 0); | 334 NULL, 0); |
| 335 ImmReleaseContext(m_hWnd, imm_context); | 335 ImmReleaseContext(m_hWnd, imm_context); |
| 336 return composition_size > 0; | 336 return composition_size > 0; |
| 337 } | 337 } |
| 338 | 338 |
| 339 void NativeTextfieldWin::GetSelectedRange(ui::Range* range) const { |
| 340 NOTREACHED(); |
| 341 } |
| 342 |
| 343 void NativeTextfieldWin::SelectRange(const ui::Range& range) { |
| 344 NOTREACHED(); |
| 345 } |
| 346 |
| 339 void NativeTextfieldWin::GetSelectionModel(gfx::SelectionModel* sel) const { | 347 void NativeTextfieldWin::GetSelectionModel(gfx::SelectionModel* sel) const { |
| 340 NOTREACHED(); | 348 NOTREACHED(); |
| 341 } | 349 } |
| 342 | 350 |
| 343 void NativeTextfieldWin::SelectSelectionModel(const gfx::SelectionModel& sel) { | 351 void NativeTextfieldWin::SelectSelectionModel(const gfx::SelectionModel& sel) { |
| 344 NOTREACHED(); | 352 NOTREACHED(); |
| 345 } | 353 } |
| 346 | 354 |
| 347 size_t NativeTextfieldWin::GetCursorPosition() const { | 355 size_t NativeTextfieldWin::GetCursorPosition() const { |
| 348 NOTREACHED(); | 356 NOTREACHED(); |
| (...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1149 | 1157 |
| 1150 // static | 1158 // static |
| 1151 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper( | 1159 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper( |
| 1152 Textfield* field) { | 1160 Textfield* field) { |
| 1153 if (views::Widget::IsPureViews()) | 1161 if (views::Widget::IsPureViews()) |
| 1154 return new NativeTextfieldViews(field); | 1162 return new NativeTextfieldViews(field); |
| 1155 return new NativeTextfieldWin(field); | 1163 return new NativeTextfieldWin(field); |
| 1156 } | 1164 } |
| 1157 | 1165 |
| 1158 } // namespace views | 1166 } // namespace views |
| OLD | NEW |