Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: chrome/browser/views/frame/browser_view.cc

Issue 28072: Make non-glass popups match new mockup from Glen.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include "base/command_line.h" 5 #include "base/command_line.h"
6 6
7 #include "chrome/browser/views/frame/browser_view.h" 7 #include "chrome/browser/views/frame/browser_view.h"
8 8
9 #include "base/file_version_info.h" 9 #include "base/file_version_info.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 258
259 bool BrowserView::IsToolbarVisible() const { 259 bool BrowserView::IsToolbarVisible() const {
260 return SupportsWindowFeature(FEATURE_TOOLBAR) || 260 return SupportsWindowFeature(FEATURE_TOOLBAR) ||
261 SupportsWindowFeature(FEATURE_LOCATIONBAR); 261 SupportsWindowFeature(FEATURE_LOCATIONBAR);
262 } 262 }
263 263
264 bool BrowserView::IsTabStripVisible() const { 264 bool BrowserView::IsTabStripVisible() const {
265 return SupportsWindowFeature(FEATURE_TABSTRIP); 265 return SupportsWindowFeature(FEATURE_TABSTRIP);
266 } 266 }
267 267
268 bool BrowserView::IsToolbarDisplayModeNormal() const {
269 return toolbar_->IsDisplayModeNormal();
270 }
271
272 bool BrowserView::IsOffTheRecord() const { 268 bool BrowserView::IsOffTheRecord() const {
273 return browser_->profile()->IsOffTheRecord(); 269 return browser_->profile()->IsOffTheRecord();
274 } 270 }
275 271
276 bool BrowserView::ShouldShowOffTheRecordAvatar() const { 272 bool BrowserView::ShouldShowOffTheRecordAvatar() const {
277 return IsOffTheRecord() && browser_->type() == Browser::TYPE_NORMAL; 273 return IsOffTheRecord() && browser_->type() == Browser::TYPE_NORMAL;
278 } 274 }
279 275
280 bool BrowserView::AcceleratorPressed(const views::Accelerator& accelerator) { 276 bool BrowserView::AcceleratorPressed(const views::Accelerator& accelerator) {
281 DCHECK(accelerator_table_.get()); 277 DCHECK(accelerator_table_.get());
(...skipping 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after
1555 1551
1556 // static 1552 // static
1557 void BrowserView::InitClass() { 1553 void BrowserView::InitClass() {
1558 static bool initialized = false; 1554 static bool initialized = false;
1559 if (!initialized) { 1555 if (!initialized) {
1560 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 1556 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
1561 default_favicon_ = *rb.GetBitmapNamed(IDR_DEFAULT_FAVICON); 1557 default_favicon_ = *rb.GetBitmapNamed(IDR_DEFAULT_FAVICON);
1562 initialized = true; 1558 initialized = true;
1563 } 1559 }
1564 } 1560 }
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/browser_view.h ('k') | chrome/browser/views/frame/opaque_non_client_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698