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 <string> | 8 #include <string> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 UMA_ACCEL_LOCK_SCREEN_L, | 55 UMA_ACCEL_LOCK_SCREEN_L, |
56 UMA_ACCEL_LOCK_SCREEN_LOCK_BUTTON, | 56 UMA_ACCEL_LOCK_SCREEN_LOCK_BUTTON, |
57 UMA_ACCEL_LOCK_SCREEN_POWER_BUTTON, | 57 UMA_ACCEL_LOCK_SCREEN_POWER_BUTTON, |
58 UMA_ACCEL_FULLSCREEN_F4, | 58 UMA_ACCEL_FULLSCREEN_F4, |
59 UMA_ACCEL_MAXIMIZE_RESTORE_F4, | 59 UMA_ACCEL_MAXIMIZE_RESTORE_F4, |
60 UMA_ACCEL_NEWTAB_T, | 60 UMA_ACCEL_NEWTAB_T, |
61 UMA_ACCEL_NEXTWINDOW_F5, | 61 UMA_ACCEL_NEXTWINDOW_F5, |
62 UMA_ACCEL_NEXTWINDOW_TAB, | 62 UMA_ACCEL_NEXTWINDOW_TAB, |
63 UMA_ACCEL_PREVWINDOW_F5, | 63 UMA_ACCEL_PREVWINDOW_F5, |
64 UMA_ACCEL_PREVWINDOW_TAB, | 64 UMA_ACCEL_PREVWINDOW_TAB, |
| 65 UMA_ACCEL_EXIT_FIRST_Q, |
| 66 UMA_ACCEL_EXIT_SECOND_Q, |
65 UMA_ACCEL_SEARCH_LWIN, | 67 UMA_ACCEL_SEARCH_LWIN, |
66 UMA_ACCEL_SHUT_DOWN_POWER_BUTTON, | 68 UMA_ACCEL_SHUT_DOWN_POWER_BUTTON, |
67 UMA_CLOSE_THROUGH_CONTEXT_MENU, | 69 UMA_CLOSE_THROUGH_CONTEXT_MENU, |
68 UMA_LAUNCHER_CLICK_ON_APP, | 70 UMA_LAUNCHER_CLICK_ON_APP, |
69 UMA_LAUNCHER_CLICK_ON_APPLIST_BUTTON, | 71 UMA_LAUNCHER_CLICK_ON_APPLIST_BUTTON, |
70 UMA_MINIMIZE_PER_KEY, | 72 UMA_MINIMIZE_PER_KEY, |
71 UMA_MOUSE_DOWN, | 73 UMA_MOUSE_DOWN, |
72 UMA_TOGGLE_MAXIMIZE_CAPTION_CLICK, | 74 UMA_TOGGLE_MAXIMIZE_CAPTION_CLICK, |
73 UMA_TOGGLE_MAXIMIZE_CAPTION_GESTURE, | 75 UMA_TOGGLE_MAXIMIZE_CAPTION_GESTURE, |
74 UMA_TOUCHSCREEN_TAP_DOWN, | 76 UMA_TOUCHSCREEN_TAP_DOWN, |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 // Handles the Next Track Media shortcut key. | 225 // Handles the Next Track Media shortcut key. |
224 virtual void HandleMediaNextTrack() = 0; | 226 virtual void HandleMediaNextTrack() = 0; |
225 | 227 |
226 // Handles the Play/Pause Toggle Media shortcut key. | 228 // Handles the Play/Pause Toggle Media shortcut key. |
227 virtual void HandleMediaPlayPause() = 0; | 229 virtual void HandleMediaPlayPause() = 0; |
228 | 230 |
229 // Handles the Previous Track Media shortcut key. | 231 // Handles the Previous Track Media shortcut key. |
230 virtual void HandleMediaPrevTrack() = 0; | 232 virtual void HandleMediaPrevTrack() = 0; |
231 | 233 |
232 // Produces l10n-ed text of remaining time, e.g.: "13 minutes left" or | 234 // Produces l10n-ed text of remaining time, e.g.: "13 minutes left" or |
233 // "13 Minuten übrig". | 235 // "13 Minuten links". |
234 // Used, for example, to display the remaining battery life. | 236 // Used, for example, to display the remaining battery life. |
235 virtual base::string16 GetTimeRemainingString(base::TimeDelta delta) = 0; | 237 virtual base::string16 GetTimeRemainingString(base::TimeDelta delta) = 0; |
236 | 238 |
237 // Produces l10n-ed text for time duration, e.g.: "13 minutes" or "2 hours". | 239 // Produces l10n-ed text for time duration, e.g.: "13 minutes" or "2 hours". |
238 virtual base::string16 GetTimeDurationLongString(base::TimeDelta delta) = 0; | 240 virtual base::string16 GetTimeDurationLongString(base::TimeDelta delta) = 0; |
239 | 241 |
240 // Saves the zoom scale of the full screen magnifier. | 242 // Saves the zoom scale of the full screen magnifier. |
241 virtual void SaveScreenMagnifierScale(double scale) = 0; | 243 virtual void SaveScreenMagnifierScale(double scale) = 0; |
242 | 244 |
243 // Gets a saved value of the zoom scale of full screen magnifier. If a value | 245 // Gets a saved value of the zoom scale of full screen magnifier. If a value |
244 // is not saved, return a negative value. | 246 // is not saved, return a negative value. |
245 virtual double GetSavedScreenMagnifierScale() = 0; | 247 virtual double GetSavedScreenMagnifierScale() = 0; |
246 | 248 |
247 // Creates a menu model of the context for the |root_window|. | 249 // Creates a menu model of the context for the |root_window|. |
248 virtual ui::MenuModel* CreateContextMenu(aura::RootWindow* root_window) = 0; | 250 virtual ui::MenuModel* CreateContextMenu(aura::RootWindow* root_window) = 0; |
249 | 251 |
250 // Creates a root window host factory. Shell takes ownership of the returned | 252 // Creates a root window host factory. Shell takes ownership of the returned |
251 // value. | 253 // value. |
252 virtual RootWindowHostFactory* CreateRootWindowHostFactory() = 0; | 254 virtual RootWindowHostFactory* CreateRootWindowHostFactory() = 0; |
253 | 255 |
254 // Get the product name. | 256 // Get the product name. |
255 virtual base::string16 GetProductName() const = 0; | 257 virtual base::string16 GetProductName() const = 0; |
256 }; | 258 }; |
257 | 259 |
258 } // namespace ash | 260 } // namespace ash |
259 | 261 |
260 #endif // ASH_SHELL_DELEGATE_H_ | 262 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |