Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Unified Diff: chrome/test/base/move_test_process_to_front_mac.mm

Issue 2382963002: Views: Add two disabled tests for invoking the CC unmask prompt dialog. (Closed)
Patch Set: Rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..5796c1519490e7b1e0bde59aaacba3127470a313
--- /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);
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.
+ [[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
+}

Powered by Google App Engine
This is Rietveld 408576698