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

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

Issue 185623002: Add Hide and Show to the app list SearchBoxView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ares_contents_switcher
Patch Set: Created 6 years, 9 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 "ui/app_list/search_box_model_observer.h" 10 #include "ui/app_list/search_box_model_observer.h"
(...skipping 29 matching lines...) Expand all
40 public SpeechUIModelObserver { 40 public SpeechUIModelObserver {
41 public: 41 public:
42 SearchBoxView(SearchBoxViewDelegate* delegate, 42 SearchBoxView(SearchBoxViewDelegate* delegate,
43 AppListViewDelegate* view_delegate); 43 AppListViewDelegate* view_delegate);
44 virtual ~SearchBoxView(); 44 virtual ~SearchBoxView();
45 45
46 void ModelChanged(); 46 void ModelChanged();
47 bool HasSearch() const; 47 bool HasSearch() const;
48 void ClearSearch(); 48 void ClearSearch();
49 void InvalidateMenu(); 49 void InvalidateMenu();
50 void Show();
51 void Hide();
50 52
51 views::Textfield* search_box() { return search_box_; } 53 views::Textfield* search_box() { return search_box_; }
52 54
53 void set_contents_view(views::View* contents_view) { 55 void set_contents_view(views::View* contents_view) {
54 contents_view_ = contents_view; 56 contents_view_ = contents_view;
55 } 57 }
56 58
57 // Overridden from views::View: 59 // Overridden from views::View:
58 virtual gfx::Size GetPreferredSize() OVERRIDE; 60 virtual gfx::Size GetPreferredSize() OVERRIDE;
59 virtual void Layout() OVERRIDE; 61 virtual void Layout() OVERRIDE;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 views::MenuButton* menu_button_; // Owned by views hierarchy. 104 views::MenuButton* menu_button_; // Owned by views hierarchy.
103 views::Textfield* search_box_; // Owned by views hierarchy. 105 views::Textfield* search_box_; // Owned by views hierarchy.
104 views::View* contents_view_; // Owned by views hierarchy. 106 views::View* contents_view_; // Owned by views hierarchy.
105 107
106 DISALLOW_COPY_AND_ASSIGN(SearchBoxView); 108 DISALLOW_COPY_AND_ASSIGN(SearchBoxView);
107 }; 109 };
108 110
109 } // namespace app_list 111 } // namespace app_list
110 112
111 #endif // UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_ 113 #endif // UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698