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

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

Issue 2024003002: Add GetTextDirection to ui::TextInputClient API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 } 57 }
58 58
59 ui::TextInputType PrefixSelector::GetTextInputType() const { 59 ui::TextInputType PrefixSelector::GetTextInputType() const {
60 return ui::TEXT_INPUT_TYPE_TEXT; 60 return ui::TEXT_INPUT_TYPE_TEXT;
61 } 61 }
62 62
63 ui::TextInputMode PrefixSelector::GetTextInputMode() const { 63 ui::TextInputMode PrefixSelector::GetTextInputMode() const {
64 return ui::TEXT_INPUT_MODE_DEFAULT; 64 return ui::TEXT_INPUT_MODE_DEFAULT;
65 } 65 }
66 66
67 base::i18n::TextDirection PrefixSelector::GetTextDirection() const {
68 return base::i18n::UNKNOWN_DIRECTION;
69 }
70
67 int PrefixSelector::GetTextInputFlags() const { 71 int PrefixSelector::GetTextInputFlags() const {
68 return 0; 72 return 0;
69 } 73 }
70 74
71 bool PrefixSelector::CanComposeInline() const { 75 bool PrefixSelector::CanComposeInline() const {
72 return false; 76 return false;
73 } 77 }
74 78
75 gfx::Rect PrefixSelector::GetCaretBounds() const { 79 gfx::Rect PrefixSelector::GetCaretBounds() const {
76 gfx::Rect rect(prefix_delegate_->GetVisibleBounds().origin(), gfx::Size()); 80 gfx::Rect rect(prefix_delegate_->GetVisibleBounds().origin(), gfx::Size());
(...skipping 110 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