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

Unified Diff: chrome/browser/app_controller_cppsafe_mac.h

Issue 340023: Fix window restore behaviour on Mac. (Closed)
Patch Set: Fix namespace naming Created 11 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
« no previous file with comments | « no previous file | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/app_controller_cppsafe_mac.h
diff --git a/chrome/browser/app_controller_cppsafe_mac.h b/chrome/browser/app_controller_cppsafe_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..da2aefb9e29580a25221742fb829123eba031aed
--- /dev/null
+++ b/chrome/browser/app_controller_cppsafe_mac.h
@@ -0,0 +1,19 @@
+// Copyright (c) 2009 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_APP_CONTROLLER_CPPSAFE_MAC_H_
+#define CHROME_BROWSER_APP_CONTROLLER_CPPSAFE_MAC_H_
+
+// We declare this in a separate file that is safe for including in C++ code.
+
+namespace app_controller_mac {
+
+// True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in
+// SessionService::Observe() to get around windows/linux and mac having
+// different models of application lifetime.
+bool IsOpeningNewWindow();
+
+} // namespace app_controller_mac
+
+#endif // CHROME_BROWSER_APP_CONTROLLER_CPPSAFE_MAC_H_
« no previous file with comments | « no previous file | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698