diff options
author | timsteele@google.com <timsteele@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-15 18:46:34 +0000 |
---|---|---|
committer | timsteele@google.com <timsteele@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-15 18:46:34 +0000 |
commit | 3a453fa1f16dfa4168e52790e329148366abb05f (patch) | |
tree | a8bbab89ec883a838600e0b63d92fad4361e5dfb /chrome/browser/xp_frame.h | |
parent | 173de1be12780200c62bae5c01965d51ac0eaa31 (diff) | |
download | chromium_src-3a453fa1f16dfa4168e52790e329148366abb05f.zip chromium_src-3a453fa1f16dfa4168e52790e329148366abb05f.tar.gz chromium_src-3a453fa1f16dfa4168e52790e329148366abb05f.tar.bz2 |
Copy from http://chrome-reviews.prom.corp.google.com/1237 (new gcl changelist model).
Description was:
Conditionally include personalization/ code by surrounding
the hooks into this module with #ifdef CHROME_PERSONALIZATION
in various .h/.cc files.
Building with the module requires adding this macro as a preprocessor
definition in build/internal/essential.vsprops, and adding it to the
VCResourceCompiler tool's command line (using /d). We will try and
make this easier in the future.
TBR=darin
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@955 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/xp_frame.h')
-rw-r--r-- | chrome/browser/xp_frame.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/chrome/browser/xp_frame.h b/chrome/browser/xp_frame.h index 92a1ef1..aa4eacb 100644 --- a/chrome/browser/xp_frame.h +++ b/chrome/browser/xp_frame.h @@ -46,6 +46,9 @@ #include "chrome/views/hwnd_view.h" #include "chrome/views/root_view.h" #include "chrome/views/image_view.h" +#ifdef CHROME_PERSONALIZATION +#include "chrome/personalization/personalization.h" +#endif #define XP_FRAME_CLASSNAME L"Chrome_XPFrame" @@ -225,6 +228,16 @@ class XPFrame : public BrowserWindow, // returns true. virtual bool IsToolBarVisible() const { return true; } +#ifdef CHROME_PERSONALIZATION + virtual bool PersonalizationEnabled() const { + return personalization_enabled_; + } + + void EnablePersonalization(bool enable_personalization) { + personalization_enabled_ = enable_personalization; + } +#endif + // Return the frame view. ChromeViews::View* GetFrameView() { return frame_view_; } @@ -509,6 +522,11 @@ class XPFrame : public BrowserWindow, // Whether this frame represents an off the record session. bool is_off_the_record_; +#ifdef CHROME_PERSONALIZATION + FramePersonalization personalization_; + bool personalization_enabled_; +#endif + // Set during layout. Total height of the title bar. int title_bar_height_; |