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

Unified Diff: chrome/browser/ui/app_list/app_list_controller_delegate_views.h

Issue 225053004: Refactor views app list services to allow more code sharing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+sim30 Created 6 years, 8 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: chrome/browser/ui/app_list/app_list_controller_delegate_views.h
diff --git a/chrome/browser/ui/views/app_list/linux/app_list_controller_delegate_linux.h b/chrome/browser/ui/app_list/app_list_controller_delegate_views.h
similarity index 40%
rename from chrome/browser/ui/views/app_list/linux/app_list_controller_delegate_linux.h
rename to chrome/browser/ui/app_list/app_list_controller_delegate_views.h
index 2235aa6c4568f319fa06287a45dd72bfda08c320..c17d042737a80f693f0e5fce9cea1b946faa6ebe 100644
--- a/chrome/browser/ui/views/app_list/linux/app_list_controller_delegate_linux.h
+++ b/chrome/browser/ui/app_list/app_list_controller_delegate_views.h
@@ -2,26 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_VIEWS_APP_LIST_LINUX_APP_LIST_CONTROLLER_DELEGATE_LINUX_H_
-#define CHROME_BROWSER_UI_VIEWS_APP_LIST_LINUX_APP_LIST_CONTROLLER_DELEGATE_LINUX_H_
+#ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_VIEWS_H_
+#define CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_VIEWS_H_
-#include "base/files/file_path.h"
#include "chrome/browser/ui/app_list/app_list_controller_delegate_impl.h"
-#include "ui/gfx/image/image_skia.h"
-#include "ui/gfx/native_widget_types.h"
-class AppListServiceLinux;
-class Profile;
+class AppListServiceViews;
-namespace extensions {
-class Extension;
-}
-
-// Linux-specific configuration and behaviour for the AppList.
-class AppListControllerDelegateLinux : public AppListControllerDelegateImpl {
+// Conveys messages from a views-backed app list to the AppListService that
+// created it.
+class AppListControllerDelegateViews : public AppListControllerDelegateImpl {
public:
- explicit AppListControllerDelegateLinux(AppListServiceLinux* service);
- virtual ~AppListControllerDelegateLinux();
+ explicit AppListControllerDelegateViews(AppListServiceViews* service);
+ virtual ~AppListControllerDelegateViews();
// AppListControllerDelegate overrides:
virtual void ViewClosing() OVERRIDE;
@@ -30,9 +23,9 @@ class AppListControllerDelegateLinux : public AppListControllerDelegateImpl {
virtual bool CanDoCreateShortcutsFlow() OVERRIDE;
private:
- AppListServiceLinux* service_;
+ AppListServiceViews* service_; // Weak. Owns us.
- DISALLOW_COPY_AND_ASSIGN(AppListControllerDelegateLinux);
+ DISALLOW_COPY_AND_ASSIGN(AppListControllerDelegateViews);
};
-#endif // CHROME_BROWSER_UI_VIEWS_APP_LIST_LINUX_APP_LIST_CONTROLLER_DELEGATE_LINUX_H_
+#endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_VIEWS_H_
« no previous file with comments | « chrome/browser/ui/app_list/app_list.h ('k') | chrome/browser/ui/app_list/app_list_controller_delegate_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698