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

Unified Diff: chrome/browser/ui/views/app_list/linux/app_list_controller_delegate_linux.h

Issue 262643003: Revert of Refactor views app list services to allow more code sharing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/views/app_list/linux/app_list_controller_delegate_linux.h
diff --git a/chrome/browser/ui/views/app_list/linux/app_list_controller_delegate_linux.h b/chrome/browser/ui/views/app_list/linux/app_list_controller_delegate_linux.h
new file mode 100644
index 0000000000000000000000000000000000000000..13ee9a4161aac29d506d9e8033934a49c762d01c
--- /dev/null
+++ b/chrome/browser/ui/views/app_list/linux/app_list_controller_delegate_linux.h
@@ -0,0 +1,38 @@
+// Copyright 2013 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 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_
+
+#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;
+
+namespace extensions {
+class Extension;
+}
+
+// Linux-specific configuration and behaviour for the AppList.
+class AppListControllerDelegateLinux : public AppListControllerDelegateImpl {
+ public:
+ explicit AppListControllerDelegateLinux(AppListServiceLinux* service);
+ virtual ~AppListControllerDelegateLinux();
+
+ // AppListControllerDelegate overrides:
+ virtual void ViewClosing() OVERRIDE;
+ virtual void OnShowExtensionPrompt() OVERRIDE;
+ virtual void OnCloseExtensionPrompt() OVERRIDE;
+ virtual bool CanDoCreateShortcutsFlow() OVERRIDE;
+
+ private:
+ AppListServiceLinux* service_;
+
+ DISALLOW_COPY_AND_ASSIGN(AppListControllerDelegateLinux);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_APP_LIST_LINUX_APP_LIST_CONTROLLER_DELEGATE_LINUX_H_

Powered by Google App Engine
This is Rietveld 408576698