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

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

Issue 8404007: Delete code for and references to mini-gallery and theme install bubbles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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) 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 #include "chrome/browser/ui/views/frame/browser_view_layout.h" 55 #include "chrome/browser/ui/views/frame/browser_view_layout.h"
56 #include "chrome/browser/ui/views/frame/contents_container.h" 56 #include "chrome/browser/ui/views/frame/contents_container.h"
57 #include "chrome/browser/ui/views/fullscreen_exit_bubble_views.h" 57 #include "chrome/browser/ui/views/fullscreen_exit_bubble_views.h"
58 #include "chrome/browser/ui/views/infobars/infobar_container_view.h" 58 #include "chrome/browser/ui/views/infobars/infobar_container_view.h"
59 #include "chrome/browser/ui/views/location_bar/location_icon_view.h" 59 #include "chrome/browser/ui/views/location_bar/location_icon_view.h"
60 #include "chrome/browser/ui/views/page_info_window.h" 60 #include "chrome/browser/ui/views/page_info_window.h"
61 #include "chrome/browser/ui/views/status_bubble_views.h" 61 #include "chrome/browser/ui/views/status_bubble_views.h"
62 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" 62 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h"
63 #include "chrome/browser/ui/views/tabs/browser_tab_strip_controller.h" 63 #include "chrome/browser/ui/views/tabs/browser_tab_strip_controller.h"
64 #include "chrome/browser/ui/views/tabs/tab_strip_factory.h" 64 #include "chrome/browser/ui/views/tabs/tab_strip_factory.h"
65 #include "chrome/browser/ui/views/theme_install_bubble_view.h"
66 #include "chrome/browser/ui/views/toolbar_view.h" 65 #include "chrome/browser/ui/views/toolbar_view.h"
67 #include "chrome/browser/ui/views/update_recommended_message_box.h" 66 #include "chrome/browser/ui/views/update_recommended_message_box.h"
68 #include "chrome/browser/ui/views/window.h" 67 #include "chrome/browser/ui/views/window.h"
69 #include "chrome/browser/ui/webui/bug_report_ui.h" 68 #include "chrome/browser/ui/webui/bug_report_ui.h"
70 #include "chrome/browser/ui/webui/task_manager_dialog.h" 69 #include "chrome/browser/ui/webui/task_manager_dialog.h"
71 #include "chrome/browser/ui/window_sizer.h" 70 #include "chrome/browser/ui/window_sizer.h"
72 #include "chrome/common/chrome_notification_types.h" 71 #include "chrome/common/chrome_notification_types.h"
73 #include "chrome/common/chrome_switches.h" 72 #include "chrome/common/chrome_switches.h"
74 #include "chrome/common/extensions/extension_resource.h" 73 #include "chrome/common/extensions/extension_resource.h"
75 #include "chrome/common/native_window_notification_source.h" 74 #include "chrome/common/native_window_notification_source.h"
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 } 1114 }
1116 1115
1117 void BrowserView::ShowRepostFormWarningDialog(TabContents* tab_contents) { 1116 void BrowserView::ShowRepostFormWarningDialog(TabContents* tab_contents) {
1118 browser::ShowRepostFormWarningDialog(GetNativeHandle(), tab_contents); 1117 browser::ShowRepostFormWarningDialog(GetNativeHandle(), tab_contents);
1119 } 1118 }
1120 1119
1121 void BrowserView::ShowCollectedCookiesDialog(TabContentsWrapper* wrapper) { 1120 void BrowserView::ShowCollectedCookiesDialog(TabContentsWrapper* wrapper) {
1122 browser::ShowCollectedCookiesDialog(GetNativeHandle(), wrapper); 1121 browser::ShowCollectedCookiesDialog(GetNativeHandle(), wrapper);
1123 } 1122 }
1124 1123
1125 void BrowserView::ShowThemeInstallBubble() {
1126 TabContents* tab_contents = browser_->GetSelectedTabContents();
1127 if (!tab_contents)
1128 return;
1129 ThemeInstallBubbleView::Show(tab_contents);
1130 }
1131
1132 void BrowserView::ConfirmBrowserCloseWithPendingDownloads() { 1124 void BrowserView::ConfirmBrowserCloseWithPendingDownloads() {
1133 DownloadInProgressDialogView* view = 1125 DownloadInProgressDialogView* view =
1134 new DownloadInProgressDialogView(browser_.get()); 1126 new DownloadInProgressDialogView(browser_.get());
1135 browser::CreateViewsWindow(GetNativeHandle(), view)->Show(); 1127 browser::CreateViewsWindow(GetNativeHandle(), view)->Show();
1136 } 1128 }
1137 1129
1138 void BrowserView::ShowCreateWebAppShortcutsDialog( 1130 void BrowserView::ShowCreateWebAppShortcutsDialog(
1139 TabContentsWrapper* tab_contents) { 1131 TabContentsWrapper* tab_contents) {
1140 browser::ShowCreateWebAppShortcutsDialog(GetNativeHandle(), tab_contents); 1132 browser::ShowCreateWebAppShortcutsDialog(GetNativeHandle(), tab_contents);
1141 } 1133 }
(...skipping 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after
2617 views::View::ConvertPointToScreen(GetTabContentsContainerView(), &origin); 2609 views::View::ConvertPointToScreen(GetTabContentsContainerView(), &origin);
2618 gfx::Rect bounds; 2610 gfx::Rect bounds;
2619 bounds.set_origin(origin); 2611 bounds.set_origin(origin);
2620 2612
2621 AvatarMenuBubbleView* bubble_view = new AvatarMenuBubbleView(browser_.get()); 2613 AvatarMenuBubbleView* bubble_view = new AvatarMenuBubbleView(browser_.get());
2622 // Bubble::Show() takes ownership of the view. 2614 // Bubble::Show() takes ownership of the view.
2623 Bubble::Show(this->GetWidget(), bounds, 2615 Bubble::Show(this->GetWidget(), bounds,
2624 views::BubbleBorder::TOP_RIGHT, 2616 views::BubbleBorder::TOP_RIGHT,
2625 bubble_view, bubble_view); 2617 bubble_view, bubble_view);
2626 } 2618 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698