| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/browser.h" | 8 #include "chrome/browser/browser.h" |
| 9 #include "chrome/browser/browser_window.h" | 9 #include "chrome/browser/browser_window.h" |
| 10 #include "chrome/browser/hang_monitor/hung_plugin_action.h" | 10 #include "chrome/browser/hang_monitor/hung_plugin_action.h" |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 // Called right before displaying the system menu to allow the BrowserView | 151 // Called right before displaying the system menu to allow the BrowserView |
| 152 // to add or delete entries. | 152 // to add or delete entries. |
| 153 void PrepareToRunSystemMenu(HMENU menu); | 153 void PrepareToRunSystemMenu(HMENU menu); |
| 154 | 154 |
| 155 // Returns true if the Browser object associated with this BrowserView is a | 155 // Returns true if the Browser object associated with this BrowserView is a |
| 156 // normal-type window (i.e. a browser window, not an app or popup). | 156 // normal-type window (i.e. a browser window, not an app or popup). |
| 157 bool IsBrowserTypeNormal() const { | 157 bool IsBrowserTypeNormal() const { |
| 158 return browser_->type() == Browser::TYPE_NORMAL; | 158 return browser_->type() == Browser::TYPE_NORMAL; |
| 159 } | 159 } |
| 160 | 160 |
| 161 // Returns true if the frame containing this BrowserView should show the |
| 162 // distributor logo. |
| 163 bool ShouldShowDistributorLogo() const { |
| 164 return browser_->ShouldShowDistributorLogo(); |
| 165 } |
| 166 |
| 161 // Register preferences specific to this view. | 167 // Register preferences specific to this view. |
| 162 static void RegisterBrowserViewPrefs(PrefService* prefs); | 168 static void RegisterBrowserViewPrefs(PrefService* prefs); |
| 163 | 169 |
| 164 // Overridden from BrowserWindow: | 170 // Overridden from BrowserWindow: |
| 165 virtual void Show(); | 171 virtual void Show(); |
| 166 virtual void SetBounds(const gfx::Rect& bounds); | 172 virtual void SetBounds(const gfx::Rect& bounds); |
| 167 virtual void Close(); | 173 virtual void Close(); |
| 168 virtual void Activate(); | 174 virtual void Activate(); |
| 169 virtual bool IsActive() const; | 175 virtual bool IsActive() const; |
| 170 virtual void FlashFrame(); | 176 virtual void FlashFrame(); |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 // P13N stuff | 433 // P13N stuff |
| 428 #ifdef CHROME_PERSONALIZATION | 434 #ifdef CHROME_PERSONALIZATION |
| 429 FramePersonalization personalization_; | 435 FramePersonalization personalization_; |
| 430 bool personalization_enabled_; | 436 bool personalization_enabled_; |
| 431 #endif | 437 #endif |
| 432 | 438 |
| 433 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 439 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
| 434 }; | 440 }; |
| 435 | 441 |
| 436 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ | 442 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ |
| OLD | NEW |