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

Unified Diff: ui/app_list/search_provider.h

Issue 645853013: Remove some platform specific stuff from views. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 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_controller.cc ('k') | ui/app_list/search_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/search_provider.h
diff --git a/ui/app_list/search_provider.h b/ui/app_list/search_provider.h
deleted file mode 100644
index d092c7ee9bb670d0dbe3d7a766cfabb74b5ce365..0000000000000000000000000000000000000000
--- a/ui/app_list/search_provider.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2014 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_PROVIDER_H_
-#define UI_APP_LIST_SEARCH_PROVIDER_H_
-
-#include "base/basictypes.h"
-#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/memory/scoped_vector.h"
-#include "base/strings/string16.h"
-#include "ui/app_list/app_list_export.h"
-
-namespace app_list {
-
-class SearchResult;
-
-class APP_LIST_EXPORT SearchProvider {
- public:
- typedef ScopedVector<SearchResult> Results;
- typedef base::Closure ResultChangedCallback;
-
- SearchProvider();
- virtual ~SearchProvider();
-
- // Invoked to start a query.
- virtual void Start(const base::string16& query) = 0;
-
- // Invoked to stop the current query and no more results changes.
- virtual void Stop() = 0;
-
- void set_result_changed_callback(const ResultChangedCallback& callback) {
- result_changed_callback_ = callback;
- }
-
- const Results& results() const { return results_; }
-
- protected:
- // Interface for the derived class to generate search results.
- void Add(scoped_ptr<SearchResult> result);
- void ClearResults();
-
- private:
- void FireResultChanged();
-
- ResultChangedCallback result_changed_callback_;
- Results results_;
-
- DISALLOW_COPY_AND_ASSIGN(SearchProvider);
-};
-
-} // namespace app_list
-
-#endif // UI_APP_LIST_SEARCH_PROVIDER_H_
« no previous file with comments | « ui/app_list/search_controller.cc ('k') | ui/app_list/search_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698