Chromium Code Reviews| Index: ash/common/system/chromeos/ime_menu/ime_list_view.cc |
| diff --git a/ash/common/system/chromeos/ime_menu/ime_list_view.cc b/ash/common/system/chromeos/ime_menu/ime_list_view.cc |
| index c038ebeb401b6c465f3337b44dda06427e24f432..717450fc198997e1e274bd277d318fd0491124e8 100644 |
| --- a/ash/common/system/chromeos/ime_menu/ime_list_view.cc |
| +++ b/ash/common/system/chromeos/ime_menu/ime_list_view.cc |
| @@ -180,7 +180,7 @@ class MaterialKeyboardStatusRowView : public views::View { |
| ~MaterialKeyboardStatusRowView() override {} |
| - const views::Button* toggle() const { return toggle_; } |
| + views::Button* toggle() const { return toggle_; } |
| bool is_toggled() const { return toggle_->is_on(); } |
| protected: |
| @@ -455,4 +455,16 @@ void ImeListView::FocusCurrentImeIfNeeded() { |
| } |
| } |
| +ImeListViewTestApi::ImeListViewTestApi(ImeListView* ime_list_view) |
| + : ime_list_view_(ime_list_view) {} |
| + |
| +ImeListViewTestApi::~ImeListViewTestApi() {} |
| + |
| +views::View* ImeListViewTestApi::GetToggleView() const { |
| + if (MaterialDesignController::IsSystemTrayMenuMaterial()) |
| + return ime_list_view_->material_keyboard_status_view_->toggle(); |
| + |
| + return ime_list_view_->keyboard_status_; |
|
tdanderson
2017/02/07 23:27:57
Since none of the tests are being run in non-MD an
mohsen
2017/02/08 02:13:50
Right. Done.
|
| +} |
| + |
| } // namespace ash |