| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ASH_SYSTEM_IME_MENU_IME_LIST_VIEW_H_ | 5 #ifndef ASH_SYSTEM_IME_MENU_IME_LIST_VIEW_H_ |
| 6 #define ASH_SYSTEM_IME_MENU_IME_LIST_VIEW_H_ | 6 #define ASH_SYSTEM_IME_MENU_IME_LIST_VIEW_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/system/tray/ime_info.h" | 9 #include "ash/system/tray/ime_info.h" |
| 10 #include "ash/system/tray/tray_details_view.h" | 10 #include "ash/system/tray/tray_details_view.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 const IMEPropertyInfoList& property_list, | 37 const IMEPropertyInfoList& property_list, |
| 38 bool show_keyboard_toggle, | 38 bool show_keyboard_toggle, |
| 39 SingleImeBehavior single_ime_behavior); | 39 SingleImeBehavior single_ime_behavior); |
| 40 | 40 |
| 41 // Removes (and destroys) all child views. | 41 // Removes (and destroys) all child views. |
| 42 virtual void ResetImeListView(); | 42 virtual void ResetImeListView(); |
| 43 | 43 |
| 44 // Closes the view. | 44 // Closes the view. |
| 45 void CloseImeListView(); | 45 void CloseImeListView(); |
| 46 | 46 |
| 47 // Scrolls contents such that |item_view| is visible. |
| 48 void ScrollItemToVisible(views::View* item_view); |
| 49 |
| 47 void set_last_item_selected_with_keyboard( | 50 void set_last_item_selected_with_keyboard( |
| 48 bool last_item_selected_with_keyboard) { | 51 bool last_item_selected_with_keyboard) { |
| 49 last_item_selected_with_keyboard_ = last_item_selected_with_keyboard; | 52 last_item_selected_with_keyboard_ = last_item_selected_with_keyboard; |
| 50 } | 53 } |
| 51 | 54 |
| 52 void set_should_focus_ime_after_selection_with_keyboard( | 55 void set_should_focus_ime_after_selection_with_keyboard( |
| 53 const bool focus_current_ime) { | 56 const bool focus_current_ime) { |
| 54 should_focus_ime_after_selection_with_keyboard_ = focus_current_ime; | 57 should_focus_ime_after_selection_with_keyboard_ = focus_current_ime; |
| 55 } | 58 } |
| 56 | 59 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 117 |
| 115 private: | 118 private: |
| 116 ImeListView* ime_list_view_; | 119 ImeListView* ime_list_view_; |
| 117 | 120 |
| 118 DISALLOW_COPY_AND_ASSIGN(ImeListViewTestApi); | 121 DISALLOW_COPY_AND_ASSIGN(ImeListViewTestApi); |
| 119 }; | 122 }; |
| 120 | 123 |
| 121 } // namespace ash | 124 } // namespace ash |
| 122 | 125 |
| 123 #endif // ASH_SYSTEM_IME_MENU_IME_LIST_VIEW_H_ | 126 #endif // ASH_SYSTEM_IME_MENU_IME_LIST_VIEW_H_ |
| OLD | NEW |