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

Unified Diff: ui/app_list/search_result_view_delegate.h

Issue 10872099: ash: Add support for additional icons in apps search list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile Created 8 years, 4 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 | « ui/app_list/search_result_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/search_result_view_delegate.h
diff --git a/ui/app_list/search_result_view_delegate.h b/ui/app_list/search_result_view_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..9b4b467c8fb90d807ad4d558488920b709b620a8
--- /dev/null
+++ b/ui/app_list/search_result_view_delegate.h
@@ -0,0 +1,34 @@
+// 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 UI_APP_LIST_SEARCH_RESULT_VIEW_DELEGATE_H_
+#define UI_APP_LIST_SEARCH_RESULT_VIEW_DELEGATE_H_
+
+namespace ui {
+class Event;
+}
+
+namespace app_list {
+
+class SearchResultView;
+
+class SearchResultViewDelegate {
+ public:
+ // Called when the search result is activated.
+ virtual void SearchResultActivated(SearchResultView* view,
+ const ui::Event& event) = 0;
+
+ // Called when one of the search result's optional action icons is activated.
+ // |action_index| contains the 0-based index of the action.
+ virtual void SearchResultActionActivated(SearchResultView* view,
+ int action_index,
+ const ui::Event& event) = 0;
+
+ protected:
+ virtual ~SearchResultViewDelegate() {}
+};
+
+} // namespace ash
+
+#endif // UI_APP_LIST_SEARCH_RESULT_VIEW_DELEGATE_H_
« no previous file with comments | « ui/app_list/search_result_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698