OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_ |
6 #define UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 // Moves focus forward/backwards in response to TAB. | 75 // Moves focus forward/backwards in response to TAB. |
76 bool MoveTabFocus(bool move_backwards); | 76 bool MoveTabFocus(bool move_backwards); |
77 | 77 |
78 // Moves focus to contents or SearchBox and unselects buttons. | 78 // Moves focus to contents or SearchBox and unselects buttons. |
79 void ResetTabFocus(bool on_contents); | 79 void ResetTabFocus(bool on_contents); |
80 | 80 |
81 // Sets voice label for Back button depending on whether a folder is open. | 81 // Sets voice label for Back button depending on whether a folder is open. |
82 void SetBackButtonLabel(bool folder); | 82 void SetBackButtonLabel(bool folder); |
83 | 83 |
| 84 // Swaps the google icon with the back button. |
| 85 void ShowBackOrGoogleIcon(bool show_back_button); |
| 86 |
84 // Overridden from views::View: | 87 // Overridden from views::View: |
85 bool OnMouseWheel(const ui::MouseWheelEvent& event) override; | 88 bool OnMouseWheel(const ui::MouseWheelEvent& event) override; |
86 void OnEnabledChanged() override; | 89 void OnEnabledChanged() override; |
87 const char* GetClassName() const override; | 90 const char* GetClassName() const override; |
88 | 91 |
89 private: | 92 private: |
90 // Updates model text and selection model with current Textfield info. | 93 // Updates model text and selection model with current Textfield info. |
91 void UpdateModel(); | 94 void UpdateModel(); |
92 | 95 |
93 // Fires query change notification. | 96 // Fires query change notification. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 131 |
129 // Whether the fullscreen app list feature is enabled. | 132 // Whether the fullscreen app list feature is enabled. |
130 const bool is_fullscreen_app_list_enabled_; | 133 const bool is_fullscreen_app_list_enabled_; |
131 | 134 |
132 DISALLOW_COPY_AND_ASSIGN(SearchBoxView); | 135 DISALLOW_COPY_AND_ASSIGN(SearchBoxView); |
133 }; | 136 }; |
134 | 137 |
135 } // namespace app_list | 138 } // namespace app_list |
136 | 139 |
137 #endif // UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_ | 140 #endif // UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_ |
OLD | NEW |