| // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROME_BROWSER_APP_MODE_APP_MODE_UTILS_H_ |
| #define CHROME_BROWSER_APP_MODE_APP_MODE_UTILS_H_ |
| |
| #include <string> |
| |
| namespace chrome { |
| |
| // Returns true if the given browser command is allowed in app mode. |
| bool IsCommandAllowedInAppMode(int command_id); |
| |
| // Returns true if the browser process is run in kiosk or forced app mode. |
| bool IsRunningInAppMode(); |
| |
| // Returns true if the browser process is run in forced app mode. Note: On |
| // Chrome OS devices this is functionally equivalent to IsRunningInAppMode. |
| bool IsRunningInForcedAppMode(); |
| |
| // Returns true if browser process is run in forced app mode for Chrome app |
| // with the provided id. |
| bool IsRunningInForcedAppModeForApp(const std::string& app_id); |
| |
| } // namespace chrome |
| |
| #endif // CHROME_BROWSER_APP_MODE_APP_MODE_UTILS_H_ |