| 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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 | 860 |
| 861 void BrowserView::ShowReportBugDialog() { | 861 void BrowserView::ShowReportBugDialog() { |
| 862 // Retrieve the URL for the current tab (if any) and tell the BugReportView | 862 // Retrieve the URL for the current tab (if any) and tell the BugReportView |
| 863 TabContents* current_tab = browser_->GetSelectedTabContents(); | 863 TabContents* current_tab = browser_->GetSelectedTabContents(); |
| 864 if (!current_tab) | 864 if (!current_tab) |
| 865 return; | 865 return; |
| 866 browser::ShowBugReportView(GetWidget(), browser_->profile(), current_tab); | 866 browser::ShowBugReportView(GetWidget(), browser_->profile(), current_tab); |
| 867 } | 867 } |
| 868 | 868 |
| 869 void BrowserView::ShowClearBrowsingDataDialog() { | 869 void BrowserView::ShowClearBrowsingDataDialog() { |
| 870 browser::ShowClearBrowsingDataView(GetWidget(), browser_->profile()); | 870 browser::ShowClearBrowsingDataView(GetWindow()->GetNativeWindow(), |
| 871 browser_->profile()); |
| 871 } | 872 } |
| 872 | 873 |
| 873 void BrowserView::ShowImportDialog() { | 874 void BrowserView::ShowImportDialog() { |
| 874 browser::ShowImporterView(GetWidget(), browser_->profile()); | 875 browser::ShowImporterView(GetWidget(), browser_->profile()); |
| 875 } | 876 } |
| 876 | 877 |
| 877 void BrowserView::ShowSearchEnginesDialog() { | 878 void BrowserView::ShowSearchEnginesDialog() { |
| 878 browser::ShowKeywordEditorView(browser_->profile()); | 879 browser::ShowKeywordEditorView(browser_->profile()); |
| 879 } | 880 } |
| 880 | 881 |
| (...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1801 | 1802 |
| 1802 // static | 1803 // static |
| 1803 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { | 1804 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { |
| 1804 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); | 1805 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); |
| 1805 } | 1806 } |
| 1806 | 1807 |
| 1807 // static | 1808 // static |
| 1808 void BrowserList::AllBrowsersClosed() { | 1809 void BrowserList::AllBrowsersClosed() { |
| 1809 views::Window::CloseAllSecondaryWindows(); | 1810 views::Window::CloseAllSecondaryWindows(); |
| 1810 } | 1811 } |
| OLD | NEW |