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

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

Issue 2982453002: New AppListView Scroll Behavior. (Closed)
Patch Set: 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
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 84 // Swaps the google icon with the back button.
85 void ShowBackOrGoogleIcon(bool show_back_button); 85 void ShowBackOrGoogleIcon(bool show_back_button);
86 86
87 // Overridden from views::View: 87 // Overridden from views::View:
88 void OnMouseEvent(ui::MouseEvent* event) override;
88 bool OnMouseWheel(const ui::MouseWheelEvent& event) override; 89 bool OnMouseWheel(const ui::MouseWheelEvent& event) override;
89 void OnEnabledChanged() override; 90 void OnEnabledChanged() override;
90 const char* GetClassName() const override; 91 const char* GetClassName() const override;
91 92
92 private: 93 private:
93 // Updates model text and selection model with current Textfield info. 94 // Updates model text and selection model with current Textfield info.
94 void UpdateModel(); 95 void UpdateModel();
95 96
96 // Fires query change notification. 97 // Fires query change notification.
97 void NotifyQueryChanged(); 98 void NotifyQueryChanged();
98 99
99 // Overridden from views::TextfieldController: 100 // Overridden from views::TextfieldController:
100 void ContentsChanged(views::Textfield* sender, 101 void ContentsChanged(views::Textfield* sender,
101 const base::string16& new_contents) override; 102 const base::string16& new_contents) override;
102 bool HandleKeyEvent(views::Textfield* sender, 103 bool HandleKeyEvent(views::Textfield* sender,
103 const ui::KeyEvent& key_event) override; 104 const ui::KeyEvent& key_event) override;
105 bool HandleMouseEvent(views::Textfield* sender,
106 const ui::MouseEvent& mouse_event) override;
104 107
105 // Overridden from views::ButtonListener: 108 // Overridden from views::ButtonListener:
106 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 109 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
107 110
108 // Overridden from SearchBoxModelObserver: 111 // Overridden from SearchBoxModelObserver:
109 void SpeechRecognitionButtonPropChanged() override; 112 void SpeechRecognitionButtonPropChanged() override;
110 void HintTextChanged() override; 113 void HintTextChanged() override;
111 void SelectionModelChanged() override; 114 void SelectionModelChanged() override;
112 void Update() override; 115 void Update() override;
113 void WallpaperProminentColorsChanged() override; 116 void WallpaperProminentColorsChanged() override;
(...skipping 18 matching lines...) Expand all
132 135
133 // Whether the fullscreen app list feature is enabled. 136 // Whether the fullscreen app list feature is enabled.
134 const bool is_fullscreen_app_list_enabled_; 137 const bool is_fullscreen_app_list_enabled_;
135 138
136 DISALLOW_COPY_AND_ASSIGN(SearchBoxView); 139 DISALLOW_COPY_AND_ASSIGN(SearchBoxView);
137 }; 140 };
138 141
139 } // namespace app_list 142 } // namespace app_list
140 143
141 #endif // UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_ 144 #endif // UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698