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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 | 378 |
379 void NativeTextfieldWin::ApplyTextStyle(const TextStyle* style, | 379 void NativeTextfieldWin::ApplyTextStyle(const TextStyle* style, |
380 const ui::Range& range) { | 380 const ui::Range& range) { |
381 NOTREACHED(); | 381 NOTREACHED(); |
382 } | 382 } |
383 | 383 |
384 void NativeTextfieldWin::ClearAllTextStyles() { | 384 void NativeTextfieldWin::ClearAllTextStyles() { |
385 NOTREACHED(); | 385 NOTREACHED(); |
386 } | 386 } |
387 | 387 |
| 388 void NativeTextfieldWin::ClearEditHistory() { |
| 389 NOTREACHED(); |
| 390 } |
| 391 |
388 //////////////////////////////////////////////////////////////////////////////// | 392 //////////////////////////////////////////////////////////////////////////////// |
389 // NativeTextfieldWin, ui::SimpleMenuModel::Delegate implementation: | 393 // NativeTextfieldWin, ui::SimpleMenuModel::Delegate implementation: |
390 | 394 |
391 bool NativeTextfieldWin::IsCommandIdChecked(int command_id) const { | 395 bool NativeTextfieldWin::IsCommandIdChecked(int command_id) const { |
392 return false; | 396 return false; |
393 } | 397 } |
394 | 398 |
395 bool NativeTextfieldWin::IsCommandIdEnabled(int command_id) const { | 399 bool NativeTextfieldWin::IsCommandIdEnabled(int command_id) const { |
396 switch (command_id) { | 400 switch (command_id) { |
397 case IDS_APP_UNDO: return !textfield_->read_only() && !!CanUndo(); | 401 case IDS_APP_UNDO: return !textfield_->read_only() && !!CanUndo(); |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper( | 1163 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper( |
1160 Textfield* field) { | 1164 Textfield* field) { |
1161 if (NativeTextfieldViews::IsTextfieldViewsEnabled()) { | 1165 if (NativeTextfieldViews::IsTextfieldViewsEnabled()) { |
1162 return new NativeTextfieldViews(field); | 1166 return new NativeTextfieldViews(field); |
1163 } else { | 1167 } else { |
1164 return new NativeTextfieldWin(field); | 1168 return new NativeTextfieldWin(field); |
1165 } | 1169 } |
1166 } | 1170 } |
1167 | 1171 |
1168 } // namespace views | 1172 } // namespace views |
OLD | NEW |