Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: services/keyboard_native/text_update_key.cc

Issue 1327033004: Allow building mojo_shell and non-graphical apps/services on a Mac (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: review feedback Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/keyboard_native/text_update_key.h ('k') | services/prediction/dictionary_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « services/keyboard_native/text_update_key.h ('k') | services/prediction/dictionary_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698