| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "services/keyboard_native/text_update_key.h" | 7 #include "services/keyboard_native/text_update_key.h" |
| 8 #include "third_party/skia/include/core/SkCanvas.h" | 8 #include "third_party/skia/include/core/SkCanvas.h" |
| 9 #include "third_party/skia/include/core/SkPaint.h" | 9 #include "third_party/skia/include/core/SkPaint.h" |
| 10 #include "third_party/skia/include/core/SkScalar.h" | 10 #include "third_party/skia/include/core/SkScalar.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 return text_char; | 67 return text_char; |
| 68 } | 68 } |
| 69 | 69 |
| 70 void TextUpdateKey::OnTouchUp() { | 70 void TextUpdateKey::OnTouchUp() { |
| 71 touch_up_callback_.Run(*this); | 71 touch_up_callback_.Run(*this); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void TextUpdateKey::ChangeText(std::string new_text) { | 74 void TextUpdateKey::ChangeText(std::string new_text) { |
| 75 text_ = new_text; | 75 text_ = new_text; |
| 76 } | 76 } |
| 77 } // namespace keyboard | 77 |
| 78 } // namespace keyboard |
| OLD | NEW |