| 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 "ui/views/controls/textfield/native_textfield_win.h" | 5 #include "ui/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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 void NativeTextfieldWin::HandleFocus() { | 401 void NativeTextfieldWin::HandleFocus() { |
| 402 } | 402 } |
| 403 | 403 |
| 404 void NativeTextfieldWin::HandleBlur() { | 404 void NativeTextfieldWin::HandleBlur() { |
| 405 } | 405 } |
| 406 | 406 |
| 407 ui::TextInputClient* NativeTextfieldWin::GetTextInputClient() { | 407 ui::TextInputClient* NativeTextfieldWin::GetTextInputClient() { |
| 408 return NULL; | 408 return NULL; |
| 409 } | 409 } |
| 410 | 410 |
| 411 void NativeTextfieldWin::ApplyStyleRange(const gfx::StyleRange& style) { | 411 void NativeTextfieldWin::SetColor(SkColor value) { |
| 412 NOTREACHED(); | 412 NOTREACHED(); |
| 413 } | 413 } |
| 414 | 414 |
| 415 void NativeTextfieldWin::ApplyDefaultStyle() { | 415 void NativeTextfieldWin::ApplyColor(SkColor value, const ui::Range& range) { |
| 416 NOTREACHED(); | 416 NOTREACHED(); |
| 417 } | 417 } |
| 418 | 418 |
| 419 void NativeTextfieldWin::SetStyle(gfx::TextStyle style, bool value) { |
| 420 NOTREACHED(); |
| 421 } |
| 422 |
| 423 void NativeTextfieldWin::ApplyStyle(gfx::TextStyle style, |
| 424 bool value, |
| 425 const ui::Range& range) { |
| 426 NOTREACHED(); |
| 427 } |
| 428 |
| 419 void NativeTextfieldWin::ClearEditHistory() { | 429 void NativeTextfieldWin::ClearEditHistory() { |
| 420 NOTREACHED(); | 430 NOTREACHED(); |
| 421 } | 431 } |
| 422 | 432 |
| 423 int NativeTextfieldWin::GetFontHeight() { | 433 int NativeTextfieldWin::GetFontHeight() { |
| 424 return textfield_->font().GetHeight(); | 434 return textfield_->font().GetHeight(); |
| 425 } | 435 } |
| 426 | 436 |
| 427 int NativeTextfieldWin::GetTextfieldBaseline() const { | 437 int NativeTextfieldWin::GetTextfieldBaseline() const { |
| 428 return textfield_->font().GetBaseline(); | 438 return textfield_->font().GetBaseline(); |
| (...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1279 context_menu_contents_->AddSeparator(ui::NORMAL_SEPARATOR); | 1289 context_menu_contents_->AddSeparator(ui::NORMAL_SEPARATOR); |
| 1280 context_menu_contents_->AddItemWithStringId(IDS_APP_CUT, IDS_APP_CUT); | 1290 context_menu_contents_->AddItemWithStringId(IDS_APP_CUT, IDS_APP_CUT); |
| 1281 context_menu_contents_->AddItemWithStringId(IDS_APP_COPY, IDS_APP_COPY); | 1291 context_menu_contents_->AddItemWithStringId(IDS_APP_COPY, IDS_APP_COPY); |
| 1282 context_menu_contents_->AddItemWithStringId(IDS_APP_PASTE, IDS_APP_PASTE); | 1292 context_menu_contents_->AddItemWithStringId(IDS_APP_PASTE, IDS_APP_PASTE); |
| 1283 context_menu_contents_->AddSeparator(ui::NORMAL_SEPARATOR); | 1293 context_menu_contents_->AddSeparator(ui::NORMAL_SEPARATOR); |
| 1284 context_menu_contents_->AddItemWithStringId(IDS_APP_SELECT_ALL, | 1294 context_menu_contents_->AddItemWithStringId(IDS_APP_SELECT_ALL, |
| 1285 IDS_APP_SELECT_ALL); | 1295 IDS_APP_SELECT_ALL); |
| 1286 } | 1296 } |
| 1287 | 1297 |
| 1288 } // namespace views | 1298 } // namespace views |
| OLD | NEW |