summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_process_impl.h
diff options
context:
space:
mode:
authorbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-08 17:46:13 +0000
committerbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-08 17:46:13 +0000
commit1b2db1a0c769664ffb0997406e739e8e91da0b32 (patch)
tree4a633b7f473d70e8165439f6d6e4ec80e4469c0b /chrome/browser/browser_process_impl.h
parent47572b229b76188daff74cf1571e2f423448c374 (diff)
downloadchromium_src-1b2db1a0c769664ffb0997406e739e8e91da0b32.zip
chromium_src-1b2db1a0c769664ffb0997406e739e8e91da0b32.tar.gz
chromium_src-1b2db1a0c769664ffb0997406e739e8e91da0b32.tar.bz2
Tweaks to make the opaque frame look better including adding support for app windows. Document the constants in the non-client view. Make the OTR frame work. Add a check to browser process that we use to check if we're using the new frames so we can disable various functionality that isn't appropriate.
B=1031854 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@573 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_process_impl.h')
-rw-r--r--chrome/browser/browser_process_impl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/browser_process_impl.h b/chrome/browser/browser_process_impl.h
index 726b0c0..3683277 100644
--- a/chrome/browser/browser_process_impl.h
+++ b/chrome/browser/browser_process_impl.h
@@ -38,6 +38,7 @@
#include <string>
#include "base/basictypes.h"
+#include "base/command_line.h"
#include "base/message_loop.h"
#include "base/non_thread_safe.h"
#include "base/ref_counted.h"
@@ -196,6 +197,16 @@ class BrowserProcessImpl : public BrowserProcess, public NonThreadSafe {
return suspend_controller_.get();
}
+ // TODO(beng): remove once XPFrame/VistaFrame are gone.
+ virtual bool IsUsingNewFrames() {
+ DCHECK(CalledOnValidThread());
+ if (!checked_for_new_frames_) {
+ using_new_frames_ = CommandLine().HasSwitch(L"magic_browzR");
+ checked_for_new_frames_ = true;
+ }
+ return using_new_frames_;
+ }
+
private:
void CreateResourceDispatcherHost();
void CreatePrefService();
@@ -267,6 +278,9 @@ class BrowserProcessImpl : public BrowserProcess, public NonThreadSafe {
scoped_refptr<SuspendController> suspend_controller_;
+ bool checked_for_new_frames_;
+ bool using_new_frames_;
+
DISALLOW_EVIL_CONSTRUCTORS(BrowserProcessImpl);
};