| 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 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 161 |
| 162 // Handles the Next Track Media shortcut key. | 162 // Handles the Next Track Media shortcut key. |
| 163 virtual void HandleMediaNextTrack() = 0; | 163 virtual void HandleMediaNextTrack() = 0; |
| 164 | 164 |
| 165 // Handles the Play/Pause Toggle Media shortcut key. | 165 // Handles the Play/Pause Toggle Media shortcut key. |
| 166 virtual void HandleMediaPlayPause() = 0; | 166 virtual void HandleMediaPlayPause() = 0; |
| 167 | 167 |
| 168 // Handles the Previous Track Media shortcut key. | 168 // Handles the Previous Track Media shortcut key. |
| 169 virtual void HandleMediaPrevTrack() = 0; | 169 virtual void HandleMediaPrevTrack() = 0; |
| 170 | 170 |
| 171 // Produces l10n-ed text of remaining time, e.g.: "13 mins left" or | |
| 172 // "13 Minuten übrig". | |
| 173 // Used, for example, to display the remaining battery life. | |
| 174 virtual string16 GetTimeRemainingString(base::TimeDelta delta) = 0; | |
| 175 | |
| 176 // Saves the zoom scale of the full screen magnifier. | 171 // Saves the zoom scale of the full screen magnifier. |
| 177 virtual void SaveScreenMagnifierScale(double scale) = 0; | 172 virtual void SaveScreenMagnifierScale(double scale) = 0; |
| 178 | 173 |
| 179 // Gets a saved value of the zoom scale of full screen magnifier. If a value | 174 // Gets a saved value of the zoom scale of full screen magnifier. If a value |
| 180 // is not saved, return a negative value. | 175 // is not saved, return a negative value. |
| 181 virtual double GetSavedScreenMagnifierScale() = 0; | 176 virtual double GetSavedScreenMagnifierScale() = 0; |
| 182 | 177 |
| 183 // Creates a menu model of the context for the |root_window|. | 178 // Creates a menu model of the context for the |root_window|. |
| 184 virtual ui::MenuModel* CreateContextMenu(aura::RootWindow* root_window) = 0; | 179 virtual ui::MenuModel* CreateContextMenu(aura::RootWindow* root_window) = 0; |
| 185 }; | 180 }; |
| 186 | 181 |
| 187 } // namespace ash | 182 } // namespace ash |
| 188 | 183 |
| 189 #endif // ASH_SHELL_DELEGATE_H_ | 184 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |