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

Side by Side Diff: ui/aura_shell/shell_delegate.h

Issue 8247012: Positions the launcher in the bottom left corner. Adds ShellDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaks Created 9 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/aura_shell/shell.cc ('k') | ui/aura_shell/shell_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_AURA_SHELL_SHELL_DELEGATE_H_ 5 #ifndef UI_AURA_SHELL_SHELL_DELEGATE_H_
6 #define UI_AURA_SHELL_SHELL_DELEGATE_H_ 6 #define UI_AURA_SHELL_SHELL_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/aura_shell/aura_shell_export.h" 9 #include "ui/aura_shell/aura_shell_export.h"
10 10
11 namespace aura_shell { 11 namespace aura_shell {
12 12
13 struct LauncherItem;
14
13 // Delegate of the Shell. 15 // Delegate of the Shell.
14 class AURA_SHELL_EXPORT ShellDelegate { 16 class AURA_SHELL_EXPORT ShellDelegate {
15 public: 17 public:
16 // The Shell owns the delegate. 18 // The Shell owns the delegate.
17 virtual ~ShellDelegate() {} 19 virtual ~ShellDelegate() {}
18 20
19 // Invoked when the user clicks on button in the launcher to create a new 21 // Invoked when the user clicks on button in the launcher to create a new
20 // window. 22 // window.
21 virtual void CreateNewWindow() = 0; 23 virtual void CreateNewWindow() = 0;
22 24
23 // Invoked when the user clicks the app list button on the launcher. 25 // Invoked when the user clicks the app list button on the launcher.
24 virtual void ShowApps() = 0; 26 virtual void ShowApps() = 0;
27
28 // Invoked when the user clicks on a window entry in the launcher.
29 virtual void LauncherItemClicked(const LauncherItem& item) = 0;
30
31 // Invoked when a window is added. If the delegate wants the launcher to show
32 // an entry for |item->window| it should configure |item| appropriately and
33 // return true.
34 virtual bool ConfigureLauncherItem(LauncherItem* item) = 0;
25 }; 35 };
26 36
27 } // namespace aura_shell 37 } // namespace aura_shell
28 38
29 #endif // UI_AURA_SHELL_SHELL_DELEGATE_H_ 39 #endif // UI_AURA_SHELL_SHELL_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/aura_shell/shell.cc ('k') | ui/aura_shell/shell_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698