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

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

Issue 2273263002: MacViewsBrowser: Fix omnibox crash due to failed DCHECK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile. Created 4 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
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 15 matching lines...) Expand all
26 TextfieldModel* model() const { return textfield_->model_.get(); } 26 TextfieldModel* model() const { return textfield_->model_.get(); }
27 27
28 ui::MenuModel* context_menu_contents() const { 28 ui::MenuModel* context_menu_contents() const {
29 return textfield_->context_menu_contents_.get(); 29 return textfield_->context_menu_contents_.get();
30 } 30 }
31 31
32 ui::TouchEditingControllerDeprecated* touch_selection_controller() const { 32 ui::TouchEditingControllerDeprecated* touch_selection_controller() const {
33 return textfield_->touch_selection_controller_.get(); 33 return textfield_->touch_selection_controller_.get();
34 } 34 }
35 35
36 ui::TextEditCommand scheduled_text_edit_command() const {
37 return textfield_->scheduled_text_edit_command_;
38 }
39
40 bool OnKeyPressed(const ui::KeyEvent& event) {
msw 2016/08/26 07:09:43 Can tests instead call Textfield/View::OnKeyEvent(
karandeepb 2016/08/26 10:05:16 Done.
41 return textfield_->OnKeyPressed(event);
42 }
43
44 bool OnKeyReleased(const ui::KeyEvent& event) {
45 return textfield_->OnKeyReleased(event);
46 }
47
36 private: 48 private:
37 Textfield* textfield_; 49 Textfield* textfield_;
38 50
39 DISALLOW_COPY_AND_ASSIGN(TextfieldTestApi); 51 DISALLOW_COPY_AND_ASSIGN(TextfieldTestApi);
40 }; 52 };
41 53
42 } // namespace views 54 } // namespace views
43 55
44 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_TEST_API_H_ 56 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_TEST_API_H_
OLDNEW
« no previous file with comments | « ui/views/controls/textfield/textfield.h ('k') | ui/views/controls/textfield/textfield_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698