Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: ash/system/tray/system_tray_delegate.h

Issue 2888983003: chromeos: Remove ash::SystemTrayDelegate::CreateTrayRotationLock (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/system_tray_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
7 7
8 #include <memory>
9 #include <string> 8 #include <string>
10 #include <vector> 9 #include <vector>
11 10
12 #include "ash/ash_export.h" 11 #include "ash/ash_export.h"
13 #include "base/callback_forward.h"
14 #include "base/files/file_path.h"
15 #include "base/i18n/time_formatting.h" 12 #include "base/i18n/time_formatting.h"
16 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
17 14
18 namespace base { 15 namespace base {
19 class TimeDelta; 16 class TimeDelta;
20 class TimeTicks; 17 class TimeTicks;
21 } 18 }
22 19
23 namespace ash { 20 namespace ash {
24 struct IMEInfo; 21 struct IMEInfo;
25 struct IMEPropertyInfo; 22 struct IMEPropertyInfo;
26 23
27 class SystemTray;
28 class SystemTrayItem;
29
30 using IMEInfoList = std::vector<IMEInfo>; 24 using IMEInfoList = std::vector<IMEInfo>;
31 using IMEPropertyInfoList = std::vector<IMEPropertyInfo>; 25 using IMEPropertyInfoList = std::vector<IMEPropertyInfo>;
32 26
33 class NetworkingConfigDelegate; 27 class NetworkingConfigDelegate;
34 28
35 // SystemTrayDelegate is intended for delegating tasks in the System Tray to the 29 // SystemTrayDelegate is intended for delegating tasks in the System Tray to the
36 // application (e.g. Chrome). These tasks should be limited to application 30 // application (e.g. Chrome). These tasks should be limited to application
37 // (browser) specific tasks. For non application specific tasks, where possible, 31 // (browser) specific tasks. For non application specific tasks, where possible,
38 // components/, chromeos/, device/, etc., code should be used directly. 32 // components/, chromeos/, device/, etc., code should be used directly.
39 // 33 //
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // Retrieves the session length limit. Returns |false| if no limit is set. 71 // Retrieves the session length limit. Returns |false| if no limit is set.
78 virtual bool GetSessionLengthLimit(base::TimeDelta* session_length_limit); 72 virtual bool GetSessionLengthLimit(base::TimeDelta* session_length_limit);
79 73
80 // The active user has been changed. This will be called when the UI is ready 74 // The active user has been changed. This will be called when the UI is ready
81 // to be switched to the new user. 75 // to be switched to the new user.
82 // Note: This will happen after SessionObserver::ActiveUserChanged fires. 76 // Note: This will happen after SessionObserver::ActiveUserChanged fires.
83 virtual void ActiveUserWasChanged(); 77 virtual void ActiveUserWasChanged();
84 78
85 // Returns true when the Search key is configured to be treated as Caps Lock. 79 // Returns true when the Search key is configured to be treated as Caps Lock.
86 virtual bool IsSearchKeyMappedToCapsLock(); 80 virtual bool IsSearchKeyMappedToCapsLock();
87
88 // Creates a system tray item for display rotation lock.
89 // TODO(jamescook): Remove this when mus has support for display management
90 // and we have a DisplayManager equivalent. See http://crbug.com/548429
91 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem(
92 SystemTray* tray);
93 }; 81 };
94 82
95 } // namespace ash 83 } // namespace ash
96 84
97 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 85 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698