OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROME_BROWSER_APP_MODE_APP_MODE_UTILS_H_ | 5 #ifndef CHROME_BROWSER_APP_MODE_APP_MODE_UTILS_H_ |
6 #define CHROME_BROWSER_APP_MODE_APP_MODE_UTILS_H_ | 6 #define CHROME_BROWSER_APP_MODE_APP_MODE_UTILS_H_ |
7 | 7 |
8 namespace chrome { | 8 namespace chrome { |
9 | 9 |
10 // Return true if browser process is run in kiosk or forces app mode. | 10 // Returns true if the given browser command is allowed in app mode. |
| 11 bool IsCommandAllowedInAppMode(int command_id); |
| 12 |
| 13 // Return true if browser process is run in kiosk or forced app mode. |
11 bool IsRunningInAppMode(); | 14 bool IsRunningInAppMode(); |
12 | 15 |
| 16 // Return true if browser process is run in forced app mode. |
| 17 bool IsRunningInForcedAppMode(); |
| 18 |
13 } // namespace switches | 19 } // namespace switches |
14 | 20 |
15 #endif // CHROME_BROWSER_APP_MODE_APP_MODE_UTILS_H_ | 21 #endif // CHROME_BROWSER_APP_MODE_APP_MODE_UTILS_H_ |
OLD | NEW |