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

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

Issue 2865553002: Naming more views and windows to simplify debugging. (Closed)
Patch Set: Created 3 years, 7 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // Moves focus to contents or SearchBox and unselects buttons. 75 // Moves focus to contents or SearchBox and unselects buttons.
76 void ResetTabFocus(bool on_contents); 76 void ResetTabFocus(bool on_contents);
77 77
78 // Sets voice label for Back button depending on whether a folder is open. 78 // Sets voice label for Back button depending on whether a folder is open.
79 void SetBackButtonLabel(bool folder); 79 void SetBackButtonLabel(bool folder);
80 80
81 // Overridden from views::View: 81 // Overridden from views::View:
82 gfx::Size GetPreferredSize() const override; 82 gfx::Size GetPreferredSize() const override;
83 bool OnMouseWheel(const ui::MouseWheelEvent& event) override; 83 bool OnMouseWheel(const ui::MouseWheelEvent& event) override;
84 void OnEnabledChanged() override; 84 void OnEnabledChanged() override;
85 const char* GetClassName() const override;
85 86
86 private: 87 private:
87 // Updates model text and selection model with current Textfield info. 88 // Updates model text and selection model with current Textfield info.
88 void UpdateModel(); 89 void UpdateModel();
89 90
90 // Fires query change notification. 91 // Fires query change notification.
91 void NotifyQueryChanged(); 92 void NotifyQueryChanged();
92 93
93 // Overridden from views::TextfieldController: 94 // Overridden from views::TextfieldController:
94 void ContentsChanged(views::Textfield* sender, 95 void ContentsChanged(views::Textfield* sender,
(...skipping 25 matching lines...) Expand all
120 views::View* contents_view_; // Owned by views hierarchy. 121 views::View* contents_view_; // Owned by views hierarchy.
121 122
122 SearchBoxFocus focused_view_; // Which element has TAB'd focus. 123 SearchBoxFocus focused_view_; // Which element has TAB'd focus.
123 124
124 DISALLOW_COPY_AND_ASSIGN(SearchBoxView); 125 DISALLOW_COPY_AND_ASSIGN(SearchBoxView);
125 }; 126 };
126 127
127 } // namespace app_list 128 } // namespace app_list
128 129
129 #endif // UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_ 130 #endif // UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698