Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include <Cocoa/Cocoa.h> | |
| 6 | |
| 7 void SetProcessToFront() { | |
| 8 ProcessSerialNumber psn = {0, kCurrentProcess}; | |
| 9 TransformProcessType(&psn, kProcessTransformToForegroundApplication); | |
|
tapted
2016/10/16 23:48:01
I'm pretty sure this duplicates what [NSApp setAct
Patti Lor
2016/10/17 23:26:09
Done.
| |
| 10 [[NSApplication sharedApplication] activateIgnoringOtherApps:YES]; | |
| 11 } | |
| OLD | NEW |