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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 bool NativeTextfieldWin::HandleKeyReleased(const views::KeyEvent& event) { | 367 bool NativeTextfieldWin::HandleKeyReleased(const views::KeyEvent& event) { |
368 return false; | 368 return false; |
369 } | 369 } |
370 | 370 |
371 void NativeTextfieldWin::HandleFocus() { | 371 void NativeTextfieldWin::HandleFocus() { |
372 } | 372 } |
373 | 373 |
374 void NativeTextfieldWin::HandleBlur() { | 374 void NativeTextfieldWin::HandleBlur() { |
375 } | 375 } |
376 | 376 |
377 ui::TextInputClient* NativeTextfieldWin::GetTextInputClient() { | 377 TextInputClient* NativeTextfieldWin::GetTextInputClient() { |
378 return NULL; | 378 return NULL; |
379 } | 379 } |
380 | 380 |
381 void NativeTextfieldWin::ApplyStyleRange(const gfx::StyleRange& style) { | 381 void NativeTextfieldWin::ApplyStyleRange(const gfx::StyleRange& style) { |
382 NOTREACHED(); | 382 NOTREACHED(); |
383 } | 383 } |
384 | 384 |
385 void NativeTextfieldWin::ApplyDefaultStyle() { | 385 void NativeTextfieldWin::ApplyDefaultStyle() { |
386 NOTREACHED(); | 386 NOTREACHED(); |
387 } | 387 } |
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 | 1159 |
1160 // static | 1160 // static |
1161 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper( | 1161 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper( |
1162 Textfield* field) { | 1162 Textfield* field) { |
1163 if (views::Widget::IsPureViews()) | 1163 if (views::Widget::IsPureViews()) |
1164 return new NativeTextfieldViews(field); | 1164 return new NativeTextfieldViews(field); |
1165 return new NativeTextfieldWin(field); | 1165 return new NativeTextfieldWin(field); |
1166 } | 1166 } |
1167 | 1167 |
1168 } // namespace views | 1168 } // namespace views |
OLD | NEW |