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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 void NativeTextfieldWin::HandleFocus() { | 406 void NativeTextfieldWin::HandleFocus() { |
407 } | 407 } |
408 | 408 |
409 void NativeTextfieldWin::HandleBlur() { | 409 void NativeTextfieldWin::HandleBlur() { |
410 } | 410 } |
411 | 411 |
412 ui::TextInputClient* NativeTextfieldWin::GetTextInputClient() { | 412 ui::TextInputClient* NativeTextfieldWin::GetTextInputClient() { |
413 return NULL; | 413 return NULL; |
414 } | 414 } |
415 | 415 |
416 void NativeTextfieldWin::ApplyStyleRange(const gfx::StyleRange& style) { | 416 void NativeTextfieldWin::SetColor(SkColor value) { |
417 NOTREACHED(); | 417 NOTREACHED(); |
418 } | 418 } |
419 | 419 |
420 void NativeTextfieldWin::ApplyDefaultStyle() { | 420 void NativeTextfieldWin::ApplyColor(SkColor value, const ui::Range& range) { |
421 NOTREACHED(); | 421 NOTREACHED(); |
422 } | 422 } |
423 | 423 |
| 424 void NativeTextfieldWin::SetStyle(gfx::TextStyle style, bool value) { |
| 425 NOTREACHED(); |
| 426 } |
| 427 |
| 428 void NativeTextfieldWin::ApplyStyle(gfx::TextStyle style, |
| 429 bool value, |
| 430 const ui::Range& range) { |
| 431 NOTREACHED(); |
| 432 } |
| 433 |
424 void NativeTextfieldWin::ClearEditHistory() { | 434 void NativeTextfieldWin::ClearEditHistory() { |
425 NOTREACHED(); | 435 NOTREACHED(); |
426 } | 436 } |
427 | 437 |
428 int NativeTextfieldWin::GetFontHeight() { | 438 int NativeTextfieldWin::GetFontHeight() { |
429 return textfield_->font().GetHeight(); | 439 return textfield_->font().GetHeight(); |
430 } | 440 } |
431 | 441 |
432 int NativeTextfieldWin::GetTextfieldBaseline() const { | 442 int NativeTextfieldWin::GetTextfieldBaseline() const { |
433 return textfield_->font().GetBaseline(); | 443 return textfield_->font().GetBaseline(); |
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1306 return true; | 1316 return true; |
1307 MSG msg(*GetCurrentMessage()); | 1317 MSG msg(*GetCurrentMessage()); |
1308 // ATL doesn't set the |time| field. | 1318 // ATL doesn't set the |time| field. |
1309 if (!msg.time) | 1319 if (!msg.time) |
1310 msg.time = GetMessageTime(); | 1320 msg.time = GetMessageTime(); |
1311 ui::MouseEvent mouse_event(msg); | 1321 ui::MouseEvent mouse_event(msg); |
1312 return !controller->HandleMouseEvent(textfield_, mouse_event); | 1322 return !controller->HandleMouseEvent(textfield_, mouse_event); |
1313 } | 1323 } |
1314 | 1324 |
1315 } // namespace views | 1325 } // namespace views |
OLD | NEW |