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

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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 #include "chrome/browser/ui/views/frame/browser_view_layout.h" 57 #include "chrome/browser/ui/views/frame/browser_view_layout.h"
58 #include "chrome/browser/ui/views/frame/contents_container.h" 58 #include "chrome/browser/ui/views/frame/contents_container.h"
59 #include "chrome/browser/ui/views/fullscreen_exit_bubble_views.h" 59 #include "chrome/browser/ui/views/fullscreen_exit_bubble_views.h"
60 #include "chrome/browser/ui/views/infobars/infobar_container_view.h" 60 #include "chrome/browser/ui/views/infobars/infobar_container_view.h"
61 #include "chrome/browser/ui/views/location_bar/location_icon_view.h" 61 #include "chrome/browser/ui/views/location_bar/location_icon_view.h"
62 #include "chrome/browser/ui/views/page_info_window.h" 62 #include "chrome/browser/ui/views/page_info_window.h"
63 #include "chrome/browser/ui/views/status_bubble_views.h" 63 #include "chrome/browser/ui/views/status_bubble_views.h"
64 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" 64 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h"
65 #include "chrome/browser/ui/views/tabs/browser_tab_strip_controller.h" 65 #include "chrome/browser/ui/views/tabs/browser_tab_strip_controller.h"
66 #include "chrome/browser/ui/views/tabs/tab_strip_factory.h" 66 #include "chrome/browser/ui/views/tabs/tab_strip_factory.h"
67 #include "chrome/browser/ui/views/theme_install_bubble_view.h"
68 #include "chrome/browser/ui/views/toolbar_view.h" 67 #include "chrome/browser/ui/views/toolbar_view.h"
69 #include "chrome/browser/ui/views/update_recommended_message_box.h" 68 #include "chrome/browser/ui/views/update_recommended_message_box.h"
70 #include "chrome/browser/ui/views/window.h" 69 #include "chrome/browser/ui/views/window.h"
71 #include "chrome/browser/ui/webui/bug_report_ui.h" 70 #include "chrome/browser/ui/webui/bug_report_ui.h"
72 #include "chrome/browser/ui/webui/task_manager_dialog.h" 71 #include "chrome/browser/ui/webui/task_manager_dialog.h"
73 #include "chrome/browser/ui/window_sizer.h" 72 #include "chrome/browser/ui/window_sizer.h"
74 #include "chrome/common/chrome_notification_types.h" 73 #include "chrome/common/chrome_notification_types.h"
75 #include "chrome/common/chrome_switches.h" 74 #include "chrome/common/chrome_switches.h"
76 #include "chrome/common/extensions/extension_resource.h" 75 #include "chrome/common/extensions/extension_resource.h"
77 #include "chrome/common/pref_names.h" 76 #include "chrome/common/pref_names.h"
(...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after
1116 } 1115 }
1117 1116
1118 void BrowserView::ShowRepostFormWarningDialog(TabContents* tab_contents) { 1117 void BrowserView::ShowRepostFormWarningDialog(TabContents* tab_contents) {
1119 browser::ShowRepostFormWarningDialog(GetNativeHandle(), tab_contents); 1118 browser::ShowRepostFormWarningDialog(GetNativeHandle(), tab_contents);
1120 } 1119 }
1121 1120
1122 void BrowserView::ShowCollectedCookiesDialog(TabContentsWrapper* wrapper) { 1121 void BrowserView::ShowCollectedCookiesDialog(TabContentsWrapper* wrapper) {
1123 browser::ShowCollectedCookiesDialog(GetNativeHandle(), wrapper); 1122 browser::ShowCollectedCookiesDialog(GetNativeHandle(), wrapper);
1124 } 1123 }
1125 1124
1126 void BrowserView::ShowThemeInstallBubble() {
1127 TabContents* tab_contents = browser_->GetSelectedTabContents();
1128 if (!tab_contents)
1129 return;
1130 ThemeInstallBubbleView::Show(tab_contents);
1131 }
1132
1133 void BrowserView::ConfirmBrowserCloseWithPendingDownloads() { 1125 void BrowserView::ConfirmBrowserCloseWithPendingDownloads() {
1134 DownloadInProgressDialogView* view = 1126 DownloadInProgressDialogView* view =
1135 new DownloadInProgressDialogView(browser_.get()); 1127 new DownloadInProgressDialogView(browser_.get());
1136 browser::CreateViewsWindow(GetNativeHandle(), view)->Show(); 1128 browser::CreateViewsWindow(GetNativeHandle(), view)->Show();
1137 } 1129 }
1138 1130
1139 void BrowserView::ShowCreateWebAppShortcutsDialog( 1131 void BrowserView::ShowCreateWebAppShortcutsDialog(
1140 TabContentsWrapper* tab_contents) { 1132 TabContentsWrapper* tab_contents) {
1141 browser::ShowCreateWebAppShortcutsDialog(GetNativeHandle(), tab_contents); 1133 browser::ShowCreateWebAppShortcutsDialog(GetNativeHandle(), tab_contents);
1142 } 1134 }
(...skipping 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after
2624 Bubble::Show(this->GetWidget(), bounds, 2616 Bubble::Show(this->GetWidget(), bounds,
2625 views::BubbleBorder::TOP_RIGHT, 2617 views::BubbleBorder::TOP_RIGHT,
2626 bubble_view, bubble_view); 2618 bubble_view, bubble_view);
2627 } 2619 }
2628 2620
2629 void BrowserView::ShowAvatarBubbleFromAvatarButton() { 2621 void BrowserView::ShowAvatarBubbleFromAvatarButton() {
2630 AvatarMenuButton* button = frame_->GetAvatarMenuButton(); 2622 AvatarMenuButton* button = frame_->GetAvatarMenuButton();
2631 if (button) 2623 if (button)
2632 button->ShowAvatarBubble(); 2624 button->ShowAvatarBubble();
2633 } 2625 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/browser/ui/views/theme_install_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698