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

Unified Diff: chrome/browser/metro_utils/metro_chrome_win.h

Issue 14617003: Make chrome.exe rendezvous with existing chrome process earlier. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: respond to comments Created 7 years, 7 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/browser/metro_utils/metro_chrome_win.h
diff --git a/chrome/browser/metro_utils/metro_chrome_win.h b/chrome/browser/metro_utils/metro_chrome_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..79b578232876cd62292fde381f832b4b55924280
--- /dev/null
+++ b/chrome/browser/metro_utils/metro_chrome_win.h
@@ -0,0 +1,19 @@
+// Copyright 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_METRO_UTILS_METRO_CHROME_WIN_H_
+#define CHROME_BROWSER_METRO_UTILS_METRO_CHROME_WIN_H_
+
+namespace chrome {
+
+// Using IApplicationActivationManager::ActivateApplication, activate the
+// Chrome window running in Metro mode. Returns true if the activation was
+// successful. Note that this can not be called nested in another COM
+// SendMessage (results in error RPC_E_CANTCALLOUT_ININPUTSYNCCALL), so use
+// PostTask to handle that case.
+bool ActivateMetroChrome();
+
+} // namespace chrome
+
+#endif // CHROME_BROWSER_METRO_UTILS_METRO_CHROME_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698