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 #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 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 } | 811 } |
812 | 812 |
813 bool BrowserView::IsModal() const { | 813 bool BrowserView::IsModal() const { |
814 return false; | 814 return false; |
815 } | 815 } |
816 | 816 |
817 std::wstring BrowserView::GetWindowTitle() const { | 817 std::wstring BrowserView::GetWindowTitle() const { |
818 return browser_->GetCurrentPageTitle(); | 818 return browser_->GetCurrentPageTitle(); |
819 } | 819 } |
820 | 820 |
821 views::View* BrowserView::GetInitiallyFocusedView() const { | 821 views::View* BrowserView::GetInitiallyFocusedView() { |
822 return toolbar_->GetLocationBarView(); | 822 return toolbar_->GetLocationBarView(); |
823 } | 823 } |
824 | 824 |
825 bool BrowserView::ShouldShowWindowTitle() const { | 825 bool BrowserView::ShouldShowWindowTitle() const { |
826 return SupportsWindowFeature(FEATURE_TITLEBAR); | 826 return SupportsWindowFeature(FEATURE_TITLEBAR); |
827 } | 827 } |
828 | 828 |
829 SkBitmap BrowserView::GetWindowIcon() { | 829 SkBitmap BrowserView::GetWindowIcon() { |
830 if (browser_->type() == Browser::TYPE_APP) | 830 if (browser_->type() == Browser::TYPE_APP) |
831 return browser_->GetCurrentPageIcon(); | 831 return browser_->GetCurrentPageIcon(); |
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1487 | 1487 |
1488 // static | 1488 // static |
1489 void BrowserView::InitClass() { | 1489 void BrowserView::InitClass() { |
1490 static bool initialized = false; | 1490 static bool initialized = false; |
1491 if (!initialized) { | 1491 if (!initialized) { |
1492 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 1492 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
1493 default_favicon_ = *rb.GetBitmapNamed(IDR_DEFAULT_FAVICON); | 1493 default_favicon_ = *rb.GetBitmapNamed(IDR_DEFAULT_FAVICON); |
1494 initialized = true; | 1494 initialized = true; |
1495 } | 1495 } |
1496 } | 1496 } |
OLD | NEW |