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

Unified Diff: ash/launcher/app_list_launcher_item_delegate.h

Issue 22429004: Refactor LauncherDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for OpenBrowserUsingShelfOnOhterDisplay fail Created 7 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
Index: ash/launcher/app_list_launcher_item_delegate.h
diff --git a/ash/launcher/app_list_launcher_item_delegate.h b/ash/launcher/app_list_launcher_item_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..6452c6e8e260a13c5a3a8a1a04d2ea720c34840e
--- /dev/null
+++ b/ash/launcher/app_list_launcher_item_delegate.h
@@ -0,0 +1,42 @@
+// 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 ASH_LAUNCHER_APP_LIST_LAUNCHER_ITEM_DELEGATE_H_
+#define ASH_LAUNCHER_APP_LIST_LAUNCHER_ITEM_DELEGATE_H_
+
+#include "ash/launcher/launcher_item_delegate.h"
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+
+namespace ash {
+namespace internal {
+
+// LauncherItemDelegate for TYPE_APP_LIST.
+class AppListLauncherItemDelegate : public LauncherItemDelegate {
+ public:
+ AppListLauncherItemDelegate();
+
+ virtual ~AppListLauncherItemDelegate();
+
+ // ash::LauncherItemDelegate overrides:
+ virtual void ItemSelected(const LauncherItem& item,
+ const ui::Event& event) OVERRIDE;
+ virtual base::string16 GetTitle(const LauncherItem& item) OVERRIDE;
+ virtual ui::MenuModel* CreateContextMenu(
+ const LauncherItem& item,
+ aura::RootWindow* root_window) OVERRIDE;
+ virtual LauncherMenuModel* CreateApplicationMenu(
+ const LauncherItem& item,
+ int event_flags) OVERRIDE;
+ virtual bool IsDraggable(const LauncherItem& item) OVERRIDE;
+ virtual bool ShouldShowTooltip(const LauncherItem& item) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(AppListLauncherItemDelegate);
+};
+
+} // namespace internal
+} // namespace ash
+
+#endif // ASH_LAUNCHER_APP_LIST_LAUNCHER_ITEM_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698