summaryrefslogtreecommitdiffstats
path: root/ash/shell_delegate.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-16 03:01:31 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-16 03:01:31 +0000
commit16f2d3fc202e6950aa1bd145d9f71106fa779e49 (patch)
treef45e74cb6c5cf8f288c300d6c7b9fe530f627d93 /ash/shell_delegate.h
parentc39c9229daf3995a6d1cec55ae1f89021fd4eb66 (diff)
downloadchromium_src-16f2d3fc202e6950aa1bd145d9f71106fa779e49.zip
chromium_src-16f2d3fc202e6950aa1bd145d9f71106fa779e49.tar.gz
chromium_src-16f2d3fc202e6950aa1bd145d9f71106fa779e49.tar.bz2
Refactors launcher related ShellDelegate methods into standalone
class. BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/9403002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122227 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell_delegate.h')
-rw-r--r--ash/shell_delegate.h23
1 files changed, 4 insertions, 19 deletions
diff --git a/ash/shell_delegate.h b/ash/shell_delegate.h
index c574cd1..f268346 100644
--- a/ash/shell_delegate.h
+++ b/ash/shell_delegate.h
@@ -16,10 +16,6 @@ namespace aura {
class Window;
}
-namespace gfx {
-class Rect;
-}
-
namespace views {
class Widget;
}
@@ -28,6 +24,7 @@ namespace ash {
class AppListModel;
class AppListViewDelegate;
+class LauncherDelegate;
struct LauncherItem;
// Delegate of the Shell.
@@ -77,21 +74,9 @@ class ASH_EXPORT ShellDelegate {
CycleSource source,
CycleOrder order) const = 0;
- // Launcher related methods --------------------------------------------------
-
- // Invoked when the user clicks on button in the launcher to create a new
- // window.
- virtual void CreateNewWindow() = 0;
-
- // Invoked when the user clicks on a window entry in the launcher.
- virtual void LauncherItemClicked(const LauncherItem& item) = 0;
-
- // Returns the resource id of the image to show on the browser shortcut
- // button.
- virtual int GetBrowserShortcutResourceId() = 0;
-
- // Returns the title to display for the specified launcher item.
- virtual string16 GetLauncherItemTitle(const LauncherItem& item) = 0;
+ // Creates a new LauncherDelegate. Shell takes ownership of the returned
+ // value.
+ virtual LauncherDelegate* CreateLauncherDelegate() = 0;
};
} // namespace ash