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

Unified Diff: ui/app_list/search_result_list_view_delegate.h

Issue 10386224: app_list: Add search box and search result view for v2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_aura Created 8 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 side-by-side diff with in-line comments
Download patch
Index: ui/app_list/search_result_list_view_delegate.h
diff --git a/ui/app_list/search_result_list_view_delegate.h b/ui/app_list/search_result_list_view_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..f0596dc7bb66ad0b2183cc425612e2b85ed159bb
--- /dev/null
+++ b/ui/app_list/search_result_list_view_delegate.h
@@ -0,0 +1,29 @@
+// 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_LIST_VIEW_DELEGATE_H_
+#define UI_APP_LIST_SEARCH_RESULT_LIST_VIEW_DELEGATE_H_
+#pragma once
+
+#include "ui/app_list/app_list_export.h"
+
+namespace app_list {
+
+class SearchResult;
+
+class APP_LIST_EXPORT SearchResultListViewDelegate {
+ public:
+ // Invoked to open given |result|. |event_flags| contains the flags of the
+ // keyboard/mouse event that triggers the "open" request. Delegate could use
+ // the |event_flags| information to choose different ways to open the result.
+ virtual void OpenResult(const SearchResult& result,
+ int event_flags) = 0;
+
+ protected:
+ virtual ~SearchResultListViewDelegate() {}
+};
+
+} // namespace app_list
+
+#endif // UI_APP_LIST_SEARCH_RESULT_LIST_VIEW_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698