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

Side by Side Diff: ui/views/controls/prefix_selector.cc

Issue 739323002: Requests for tabs permission for VirtualKeyboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | « ui/views/controls/prefix_selector.h ('k') | ui/views/controls/textfield/textfield.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/prefix_selector.h" 5 #include "ui/views/controls/prefix_selector.h"
6 6
7 #include "base/i18n/case_conversion.h" 7 #include "base/i18n/case_conversion.h"
8 #include "ui/base/ime/input_method.h" 8 #include "ui/base/ime/input_method.h"
9 #include "ui/base/ime/text_input_type.h" 9 #include "ui/base/ime/text_input_type.h"
10 #include "ui/gfx/range/range.h" 10 #include "ui/gfx/range/range.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 bool PrefixSelector::GetSelectionRange(gfx::Range* range) const { 105 bool PrefixSelector::GetSelectionRange(gfx::Range* range) const {
106 *range = gfx::Range(); 106 *range = gfx::Range();
107 return false; 107 return false;
108 } 108 }
109 109
110 bool PrefixSelector::SetSelectionRange(const gfx::Range& range) { 110 bool PrefixSelector::SetSelectionRange(const gfx::Range& range) {
111 return false; 111 return false;
112 } 112 }
113 113
114 uint32 PrefixSelector::GetSelectionOffset() const {
115 return 0;
116 }
117
114 bool PrefixSelector::DeleteRange(const gfx::Range& range) { 118 bool PrefixSelector::DeleteRange(const gfx::Range& range) {
115 return false; 119 return false;
116 } 120 }
117 121
118 bool PrefixSelector::GetTextFromRange(const gfx::Range& range, 122 bool PrefixSelector::GetTextFromRange(const gfx::Range& range,
119 base::string16* text) const { 123 base::string16* text) const {
120 return false; 124 return false;
121 } 125 }
122 126
123 void PrefixSelector::OnInputMethodChanged() { 127 void PrefixSelector::OnInputMethodChanged() {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 return (model_text.size() >= lower_text.size()) && 191 return (model_text.size() >= lower_text.size()) &&
188 (model_text.compare(0, lower_text.size(), lower_text) == 0); 192 (model_text.compare(0, lower_text.size(), lower_text) == 0);
189 } 193 }
190 194
191 void PrefixSelector::ClearText() { 195 void PrefixSelector::ClearText() {
192 current_text_.clear(); 196 current_text_.clear();
193 time_of_last_key_ = base::TimeTicks(); 197 time_of_last_key_ = base::TimeTicks();
194 } 198 }
195 199
196 } // namespace views 200 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/prefix_selector.h ('k') | ui/views/controls/textfield/textfield.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698