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

Side by Side Diff: ui/views/controls/textfield/textfield_test_api.h

Issue 2709633003: Fix: Cursor of Omnibox stays in LTR mode after setting to RTL mode (Closed)
Patch Set: address comments Created 3 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_TEST_API_H_ 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_TEST_API_H_
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_TEST_API_H_ 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_TEST_API_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/views/controls/textfield/textfield.h" 9 #include "ui/views/controls/textfield/textfield.h"
10 10
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 39
40 ui::TextEditCommand scheduled_text_edit_command() const { 40 ui::TextEditCommand scheduled_text_edit_command() const {
41 return textfield_->scheduled_text_edit_command_; 41 return textfield_->scheduled_text_edit_command_;
42 } 42 }
43 43
44 bool IsCursorBlinkTimerRunning() const { 44 bool IsCursorBlinkTimerRunning() const {
45 return textfield_->cursor_blink_timer_.IsRunning(); 45 return textfield_->cursor_blink_timer_.IsRunning();
46 } 46 }
47 47
48 gfx::Point GetCursorViewOrigin() { return textfield_->cursor_view_.origin(); }
49
48 private: 50 private:
49 Textfield* textfield_; 51 Textfield* textfield_;
50 52
51 DISALLOW_COPY_AND_ASSIGN(TextfieldTestApi); 53 DISALLOW_COPY_AND_ASSIGN(TextfieldTestApi);
52 }; 54 };
53 55
54 } // namespace views 56 } // namespace views
55 57
56 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_TEST_API_H_ 58 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_TEST_API_H_
OLDNEW
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | ui/views/controls/textfield/textfield_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698