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

Unified Diff: ash/launcher/launcher_delegate.h

Issue 9703026: Makes the maximize/restore button handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback Created 8 years, 9 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 | « ash/launcher/launcher_button.cc ('k') | ash/launcher/launcher_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_delegate.h
diff --git a/ash/launcher/launcher_delegate.h b/ash/launcher/launcher_delegate.h
index cdc16344283b50e269e543adc352e228e347251b..674f557a690b7da2f808387aaf654ce6e3ef2a04 100644
--- a/ash/launcher/launcher_delegate.h
+++ b/ash/launcher/launcher_delegate.h
@@ -7,6 +7,7 @@
#pragma once
#include "ash/ash_export.h"
+#include "ash/launcher/launcher_types.h"
#include "base/string16.h"
namespace ui {
@@ -15,8 +16,6 @@ class MenuModel;
namespace ash {
-struct LauncherItem;
-
// Delegate for the Launcher.
class ASH_EXPORT LauncherDelegate {
public:
@@ -40,6 +39,10 @@ class ASH_EXPORT LauncherDelegate {
// should be no context menu. The caller takes ownership of the returned
// model.
virtual ui::MenuModel* CreateContextMenu(const LauncherItem& item) = 0;
+
+ // Returns the id of the item associated with the specified window, or 0 if
+ // there isn't one.
+ virtual ash::LauncherID GetIDByWindow(aura::Window* window) = 0;
};
} // namespace ash
« no previous file with comments | « ash/launcher/launcher_button.cc ('k') | ash/launcher/launcher_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698