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

Side by Side Diff: ui/app_list/views/search_box_view.h

Issue 2951903004: Added back button when in folder view. (Closed)
Patch Set: Addressed comments and cached the feature flag. Created 3 years, 5 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
« no previous file with comments | « ui/app_list/views/contents_view.cc ('k') | ui/app_list/views/search_box_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/app_list/views/contents_view.cc ('k') | ui/app_list/views/search_box_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698