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

Side by Side Diff: ash/app_list/search_box_view.h

Issue 9479031: aura: Implement new app list mock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compilation error Created 8 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « ash/app_list/app_list_view_delegate.h ('k') | ash/app_list/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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_APP_LIST_SEARCH_BOX_VIEW_H_
6 #define ASH_APP_LIST_SEARCH_BOX_VIEW_H_
7 #pragma once
8
9 #include "base/timer.h"
10 #include "ui/views/view.h"
11 #include "ui/views/controls/textfield/textfield_controller.h"
12
13 namespace views {
14 class ImageView;
15 class Textfield;
16 } // namespace views
17
18 namespace ash {
19
20 class SearchBoxView : public views::View,
21 public views::TextfieldController {
22 public:
23 SearchBoxView();
24
25 views::Textfield* search_box() const {
26 return search_box_;
27 }
28
29 std::string search_text() const;
30
31 private:
32 // Overridden from views::View:
33 virtual void Layout() OVERRIDE;
34
35 // Overridden from views::TextfieldController:
36 virtual void ContentsChanged(views::Textfield* sender,
37 const string16& new_contents) OVERRIDE;
38 virtual bool HandleKeyEvent(views::Textfield* sender,
39 const views::KeyEvent& key_event) OVERRIDE;
40
41 views::ImageView* white_search_;
42 views::Textfield* search_box_;
43
44 base::OneShotTimer<SearchBoxView> query_timer_;
45
46 DISALLOW_COPY_AND_ASSIGN(SearchBoxView);
47 };
48
49 } // namespace ash
50
51 #endif // ASH_APP_LIST_SEARCH_BOX_VIEW_H_
OLDNEW
« no previous file with comments | « ash/app_list/app_list_view_delegate.h ('k') | ash/app_list/search_box_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698