| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_type.h" | 8 #include "chrome/browser/browser_type.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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // BrowserView's parent. | 58 // BrowserView's parent. |
| 59 gfx::Rect GetClientAreaBounds() const; | 59 gfx::Rect GetClientAreaBounds() const; |
| 60 | 60 |
| 61 // Returns the preferred height of the TabStrip. Used to position the OTR | 61 // Returns the preferred height of the TabStrip. Used to position the OTR |
| 62 // avatar icon. | 62 // avatar icon. |
| 63 int GetTabStripHeight() const; | 63 int GetTabStripHeight() const; |
| 64 | 64 |
| 65 // Accessor for the TabStrip. | 65 // Accessor for the TabStrip. |
| 66 TabStrip* tabstrip() const { return tabstrip_; } | 66 TabStrip* tabstrip() const { return tabstrip_; } |
| 67 | 67 |
| 68 // Accessor for the Browser. |
| 69 Browser* browser() const { return browser_.get(); } |
| 70 |
| 68 // Returns true if various window components are visible. | 71 // Returns true if various window components are visible. |
| 69 bool IsToolbarVisible() const; | 72 bool IsToolbarVisible() const; |
| 70 bool IsTabStripVisible() const; | 73 bool IsTabStripVisible() const; |
| 71 | 74 |
| 72 // Returns true if the profile associated with this Browser window is | 75 // Returns true if the profile associated with this Browser window is |
| 73 // off the record. | 76 // off the record. |
| 74 bool IsOffTheRecord() const; | 77 bool IsOffTheRecord() const; |
| 75 | 78 |
| 76 // Returns true if the non-client view should render the Off-The-Record | 79 // Returns true if the non-client view should render the Off-The-Record |
| 77 // avatar icon if the window is off the record. | 80 // avatar icon if the window is off the record. |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 // P13N stuff | 398 // P13N stuff |
| 396 #ifdef CHROME_PERSONALIZATION | 399 #ifdef CHROME_PERSONALIZATION |
| 397 FramePersonalization personalization_; | 400 FramePersonalization personalization_; |
| 398 bool personalization_enabled_; | 401 bool personalization_enabled_; |
| 399 #endif | 402 #endif |
| 400 | 403 |
| 401 DISALLOW_EVIL_CONSTRUCTORS(BrowserView); | 404 DISALLOW_EVIL_CONSTRUCTORS(BrowserView); |
| 402 }; | 405 }; |
| 403 | 406 |
| 404 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ | 407 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ |
| OLD | NEW |