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 #include "chrome/browser/views/frame/browser_view.h" | 5 #include "chrome/browser/views/frame/browser_view.h" |
6 | 6 |
7 #if defined(OS_LINUX) | 7 #if defined(OS_LINUX) |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 } | 810 } |
811 | 811 |
812 void BrowserView::ToggleBookmarkBar() { | 812 void BrowserView::ToggleBookmarkBar() { |
813 bookmark_utils::ToggleWhenVisible(browser_->profile()); | 813 bookmark_utils::ToggleWhenVisible(browser_->profile()); |
814 } | 814 } |
815 | 815 |
816 void BrowserView::ShowAboutChromeDialog() { | 816 void BrowserView::ShowAboutChromeDialog() { |
817 browser::ShowAboutChromeView(GetWidget(), browser_->profile()); | 817 browser::ShowAboutChromeView(GetWidget(), browser_->profile()); |
818 } | 818 } |
819 | 819 |
| 820 void BrowserView::ShowTaskManager() { |
| 821 browser::ShowTaskManager(); |
| 822 } |
| 823 |
820 void BrowserView::ShowBookmarkManager() { | 824 void BrowserView::ShowBookmarkManager() { |
821 browser::ShowBookmarkManagerView(browser_->profile()); | 825 browser::ShowBookmarkManagerView(browser_->profile()); |
822 } | 826 } |
823 | 827 |
824 void BrowserView::ShowBookmarkBubble(const GURL& url, bool already_bookmarked) { | 828 void BrowserView::ShowBookmarkBubble(const GURL& url, bool already_bookmarked) { |
825 toolbar_->star_button()->ShowStarBubble(url, !already_bookmarked); | 829 toolbar_->star_button()->ShowStarBubble(url, !already_bookmarked); |
826 } | 830 } |
827 | 831 |
828 void BrowserView::SetDownloadShelfVisible(bool visible) { | 832 void BrowserView::SetDownloadShelfVisible(bool visible) { |
829 // This can be called from the superclass destructor, when it destroys our | 833 // This can be called from the superclass destructor, when it destroys our |
(...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1804 | 1808 |
1805 // static | 1809 // static |
1806 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { | 1810 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { |
1807 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); | 1811 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); |
1808 } | 1812 } |
1809 | 1813 |
1810 // static | 1814 // static |
1811 void BrowserList::AllBrowsersClosed() { | 1815 void BrowserList::AllBrowsersClosed() { |
1812 views::Window::CloseAllSecondaryWindows(); | 1816 views::Window::CloseAllSecondaryWindows(); |
1813 } | 1817 } |
OLD | NEW |