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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/app_list/search_box_view.h
diff --git a/ash/app_list/search_box_view.h b/ash/app_list/search_box_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..f2634a9a315cf1b9de58c0228bca098356775b5d
--- /dev/null
+++ b/ash/app_list/search_box_view.h
@@ -0,0 +1,51 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_APP_LIST_SEARCH_BOX_VIEW_H_
+#define ASH_APP_LIST_SEARCH_BOX_VIEW_H_
+#pragma once
+
+#include "base/timer.h"
+#include "ui/views/view.h"
+#include "ui/views/controls/textfield/textfield_controller.h"
+
+namespace views {
+class ImageView;
+class Textfield;
+} // namespace views
+
+namespace ash {
+
+class SearchBoxView : public views::View,
+ public views::TextfieldController {
+ public:
+ SearchBoxView();
+
+ views::Textfield* search_box() const {
+ return search_box_;
+ }
+
+ std::string search_text() const;
+
+ private:
+ // Overridden from views::View:
+ virtual void Layout() OVERRIDE;
+
+ // Overridden from views::TextfieldController:
+ virtual void ContentsChanged(views::Textfield* sender,
+ const string16& new_contents) OVERRIDE;
+ virtual bool HandleKeyEvent(views::Textfield* sender,
+ const views::KeyEvent& key_event) OVERRIDE;
+
+ views::ImageView* white_search_;
+ views::Textfield* search_box_;
+
+ base::OneShotTimer<SearchBoxView> query_timer_;
+
+ DISALLOW_COPY_AND_ASSIGN(SearchBoxView);
+};
+
+} // namespace ash
+
+#endif // ASH_APP_LIST_SEARCH_BOX_VIEW_H_
« 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