summaryrefslogtreecommitdiffstats
path: root/chrome/browser/frame_util.h
diff options
context:
space:
mode:
authornsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-18 03:48:01 +0000
committernsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-18 03:48:01 +0000
commit276ae6d3b89a1b521f54277669e73ed8e548fdb1 (patch)
tree2e81baca1aed143c3781409e2cd00aaab6608625 /chrome/browser/frame_util.h
parent4c561633e8eab426db0f94f3f03543e94c57ff77 (diff)
downloadchromium_src-276ae6d3b89a1b521f54277669e73ed8e548fdb1.zip
chromium_src-276ae6d3b89a1b521f54277669e73ed8e548fdb1.tar.gz
chromium_src-276ae6d3b89a1b521f54277669e73ed8e548fdb1.tar.bz2
Revert change 5596 because it broke the build
Review URL: http://codereview.chromium.org/11439 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5598 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/frame_util.h')
-rw-r--r--chrome/browser/frame_util.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/chrome/browser/frame_util.h b/chrome/browser/frame_util.h
new file mode 100644
index 0000000..1adaa7f
--- /dev/null
+++ b/chrome/browser/frame_util.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2006-2008 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_FRAME_UTIL_H_
+#define CHROME_BROWSER_FRAME_UTIL_H_
+
+#include <windows.h>
+
+class BrowserWindow;
+
+// Static helpers for frames. Basically shared code until Magic Browzr lands.
+class FrameUtil {
+ public:
+ // Return a ChromeFrame instance given an hwnd.
+ static BrowserWindow* GetBrowserWindowForHWND(HWND hwnd);
+
+ // Invoked when windows is shutting down (or the user is logging off). When
+ // this method returns windows is going to kill our process. As such, this
+ // blocks until the shut-down has been marked as clean.
+ static void EndSession();
+};
+
+#endif // #ifndef CHROME_BROWSER_FRAME_UTIL_H__
+