OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 COMPONENTS_ARC_ARC_UTIL_H_ | 5 #ifndef COMPONENTS_ARC_ARC_UTIL_H_ |
6 #define COMPONENTS_ARC_ARC_UTIL_H_ | 6 #define COMPONENTS_ARC_ARC_UTIL_H_ |
7 | 7 |
8 // This file contains utility to see ARC functionality status controlled by | 8 // This file contains utility to see ARC functionality status controlled by |
9 // outside of ARC, e.g. CommandLine flag, attribute of global data/state, | 9 // outside of ARC, e.g. CommandLine flag, attribute of global data/state, |
10 // users' preferences, and FeatureList. | 10 // users' preferences, and FeatureList. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 bool IsArcKioskMode(); | 63 bool IsArcKioskMode(); |
64 | 64 |
65 // Checks if opt-in verification was disabled by switch in command line. | 65 // Checks if opt-in verification was disabled by switch in command line. |
66 // In most cases, it is disabled for testing purpose. | 66 // In most cases, it is disabled for testing purpose. |
67 bool IsArcOptInVerificationDisabled(); | 67 bool IsArcOptInVerificationDisabled(); |
68 | 68 |
69 // Returns true if the |window|'s aura::client::kAppType is ARC_APP. When | 69 // Returns true if the |window|'s aura::client::kAppType is ARC_APP. When |
70 // |window| is nullptr, returns false. | 70 // |window| is nullptr, returns false. |
71 bool IsArcAppWindow(aura::Window* window); | 71 bool IsArcAppWindow(aura::Window* window); |
72 | 72 |
| 73 // Sets CPU restriction for ARC to prioritize the container. |
| 74 void PrioritizeArcContainer(); |
| 75 |
73 } // namespace arc | 76 } // namespace arc |
74 | 77 |
75 #endif // COMPONENTS_ARC_ARC_UTIL_H_ | 78 #endif // COMPONENTS_ARC_ARC_UTIL_H_ |
OLD | NEW |