| OLD | NEW |
| 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_ |
| OLD | NEW |