| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/views/frame/browser_view.h" | 5 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 6 | 6 |
| 7 #if defined(TOOLKIT_USES_GTK) | 7 #if defined(TOOLKIT_USES_GTK) |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1138 return NULL; | 1138 return NULL; |
| 1139 #else | 1139 #else |
| 1140 if (!download_shelf_.get()) { | 1140 if (!download_shelf_.get()) { |
| 1141 download_shelf_.reset(new DownloadShelfView(browser_.get(), this)); | 1141 download_shelf_.reset(new DownloadShelfView(browser_.get(), this)); |
| 1142 download_shelf_->set_parent_owned(false); | 1142 download_shelf_->set_parent_owned(false); |
| 1143 } | 1143 } |
| 1144 return download_shelf_.get(); | 1144 return download_shelf_.get(); |
| 1145 #endif | 1145 #endif |
| 1146 } | 1146 } |
| 1147 | 1147 |
| 1148 void BrowserView::ShowRepostFormWarningDialog(TabContents* tab_contents) { | |
| 1149 browser::ShowRepostFormWarningDialog(GetNativeHandle(), tab_contents); | |
| 1150 } | |
| 1151 | |
| 1152 void BrowserView::ShowCollectedCookiesDialog(TabContentsWrapper* wrapper) { | 1148 void BrowserView::ShowCollectedCookiesDialog(TabContentsWrapper* wrapper) { |
| 1153 browser::ShowCollectedCookiesDialog(GetNativeHandle(), wrapper); | 1149 browser::ShowCollectedCookiesDialog(GetNativeHandle(), wrapper); |
| 1154 } | 1150 } |
| 1155 | 1151 |
| 1156 void BrowserView::ConfirmBrowserCloseWithPendingDownloads() { | 1152 void BrowserView::ConfirmBrowserCloseWithPendingDownloads() { |
| 1157 DownloadInProgressDialogView* view = | 1153 DownloadInProgressDialogView* view = |
| 1158 new DownloadInProgressDialogView(browser_.get()); | 1154 new DownloadInProgressDialogView(browser_.get()); |
| 1159 browser::CreateViewsWindow(GetNativeHandle(), view, STYLE_GENERIC)->Show(); | 1155 browser::CreateViewsWindow(GetNativeHandle(), view, STYLE_GENERIC)->Show(); |
| 1160 } | 1156 } |
| 1161 | 1157 |
| (...skipping 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2658 browser::CreateViewsBubble(bubble); | 2654 browser::CreateViewsBubble(bubble); |
| 2659 bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE); | 2655 bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE); |
| 2660 bubble->Show(); | 2656 bubble->Show(); |
| 2661 } | 2657 } |
| 2662 | 2658 |
| 2663 void BrowserView::ShowAvatarBubbleFromAvatarButton() { | 2659 void BrowserView::ShowAvatarBubbleFromAvatarButton() { |
| 2664 AvatarMenuButton* button = frame_->GetAvatarMenuButton(); | 2660 AvatarMenuButton* button = frame_->GetAvatarMenuButton(); |
| 2665 if (button) | 2661 if (button) |
| 2666 button->ShowAvatarBubble(); | 2662 button->ShowAvatarBubble(); |
| 2667 } | 2663 } |
| OLD | NEW |