Chromium Code Reviews| Index: chrome/test/base/move_test_process_to_front_mac.mm |
| diff --git a/chrome/test/base/move_test_process_to_front_mac.mm b/chrome/test/base/move_test_process_to_front_mac.mm |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c4c1d745c90dde57afee403c863b4a17180644cf |
| --- /dev/null |
| +++ b/chrome/test/base/move_test_process_to_front_mac.mm |
| @@ -0,0 +1,11 @@ |
| +// Copyright 2016 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. |
| + |
| +#include <Cocoa/Cocoa.h> |
| + |
| +void SetProcessToFront() { |
| + ProcessSerialNumber psn = { 0, kCurrentProcess }; |
| + TransformProcessType(&psn, kProcessTransformToForegroundApplication); |
| + SetFrontProcess(&psn); |
|
tapted
2016/10/13 00:53:34
some of these apis might be deprecated...
Patti Lor
2016/10/13 05:39:21
You're right, the documentation seems to have disa
|
| +} |