| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 ASH_SHELL_DELEGATE_H_ | 5 #ifndef ASH_SHELL_DELEGATE_H_ |
| 6 #define ASH_SHELL_DELEGATE_H_ | 6 #define ASH_SHELL_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // The Shell owns the delegate. | 49 // The Shell owns the delegate. |
| 50 virtual ~ShellDelegate() {} | 50 virtual ~ShellDelegate() {} |
| 51 | 51 |
| 52 // Invoked when the user clicks on button in the launcher to create a new | 52 // Invoked when the user clicks on button in the launcher to create a new |
| 53 // window. | 53 // window. |
| 54 virtual void CreateNewWindow() = 0; | 54 virtual void CreateNewWindow() = 0; |
| 55 | 55 |
| 56 // Invoked to create a new status area. Can return NULL. | 56 // Invoked to create a new status area. Can return NULL. |
| 57 virtual views::Widget* CreateStatusArea() = 0; | 57 virtual views::Widget* CreateStatusArea() = 0; |
| 58 | 58 |
| 59 // Invoked when a user uses Ctrl-Shift-Q to close chrome. |
| 60 virtual void Exit() = 0; |
| 61 |
| 59 // Invoked to ask the delegate to populate the |model|. | 62 // Invoked to ask the delegate to populate the |model|. |
| 60 virtual void BuildAppListModel(AppListModel* model) = 0; | 63 virtual void BuildAppListModel(AppListModel* model) = 0; |
| 61 | 64 |
| 62 // Invoked to create an AppListViewDelegate. Shell takes the ownership of | 65 // Invoked to create an AppListViewDelegate. Shell takes the ownership of |
| 63 // the created delegate. | 66 // the created delegate. |
| 64 virtual AppListViewDelegate* CreateAppListViewDelegate() = 0; | 67 virtual AppListViewDelegate* CreateAppListViewDelegate() = 0; |
| 65 | 68 |
| 66 // Returns a list of windows to cycle with keyboard shortcuts (e.g. alt-tab | 69 // Returns a list of windows to cycle with keyboard shortcuts (e.g. alt-tab |
| 67 // or the window switching key). If |order_by_activity| is true then windows | 70 // or the window switching key). If |order_by_activity| is true then windows |
| 68 // are returned in most-recently-used order with the currently active window | 71 // are returned in most-recently-used order with the currently active window |
| (...skipping 12 matching lines...) Expand all Loading... |
| 81 virtual bool ConfigureLauncherItem(LauncherItem* item) = 0; | 84 virtual bool ConfigureLauncherItem(LauncherItem* item) = 0; |
| 82 | 85 |
| 83 // Returns the resource id of the image to show on the browser shortcut | 86 // Returns the resource id of the image to show on the browser shortcut |
| 84 // button. | 87 // button. |
| 85 virtual int GetBrowserShortcutResourceId() = 0; | 88 virtual int GetBrowserShortcutResourceId() = 0; |
| 86 }; | 89 }; |
| 87 | 90 |
| 88 } // namespace ash | 91 } // namespace ash |
| 89 | 92 |
| 90 #endif // ASH_SHELL_DELEGATE_H_ | 93 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |