| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 // Returns a list of windows to cycle with keyboard shortcuts (e.g. alt-tab | 71 // Returns a list of windows to cycle with keyboard shortcuts (e.g. alt-tab |
| 72 // or the window switching key). If |order_by_activity| is true then windows | 72 // or the window switching key). If |order_by_activity| is true then windows |
| 73 // are returned in most-recently-used order with the currently active window | 73 // are returned in most-recently-used order with the currently active window |
| 74 // at the front of the list. Otherwise any order may be returned. The list | 74 // at the front of the list. Otherwise any order may be returned. The list |
| 75 // does not contain NULL pointers. | 75 // does not contain NULL pointers. |
| 76 virtual std::vector<aura::Window*> GetCycleWindowList( | 76 virtual std::vector<aura::Window*> GetCycleWindowList( |
| 77 CycleSource source, | 77 CycleSource source, |
| 78 CycleOrder order) const = 0; | 78 CycleOrder order) const = 0; |
| 79 | 79 |
| 80 virtual void RotateFocus(bool forward) = 0; |
| 81 |
| 80 // Launcher related methods -------------------------------------------------- | 82 // Launcher related methods -------------------------------------------------- |
| 81 | 83 |
| 82 // Invoked when the user clicks on button in the launcher to create a new | 84 // Invoked when the user clicks on button in the launcher to create a new |
| 83 // window. | 85 // window. |
| 84 virtual void CreateNewWindow() = 0; | 86 virtual void CreateNewWindow() = 0; |
| 85 | 87 |
| 86 // Invoked when the user clicks on a window entry in the launcher. | 88 // Invoked when the user clicks on a window entry in the launcher. |
| 87 virtual void LauncherItemClicked(const LauncherItem& item) = 0; | 89 virtual void LauncherItemClicked(const LauncherItem& item) = 0; |
| 88 | 90 |
| 89 // Returns the resource id of the image to show on the browser shortcut | 91 // Returns the resource id of the image to show on the browser shortcut |
| 90 // button. | 92 // button. |
| 91 virtual int GetBrowserShortcutResourceId() = 0; | 93 virtual int GetBrowserShortcutResourceId() = 0; |
| 92 | 94 |
| 93 // Returns the title to display for the specified launcher item. | 95 // Returns the title to display for the specified launcher item. |
| 94 virtual string16 GetLauncherItemTitle(const LauncherItem& item) = 0; | 96 virtual string16 GetLauncherItemTitle(const LauncherItem& item) = 0; |
| 95 }; | 97 }; |
| 96 | 98 |
| 97 } // namespace ash | 99 } // namespace ash |
| 98 | 100 |
| 99 #endif // ASH_SHELL_DELEGATE_H_ | 101 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |