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

Side by Side Diff: chrome/browser/ui/gtk/browser_window_gtk.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/gtk/browser_window_gtk.h" 5 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 8
9 #include <dlfcn.h> 9 #include <dlfcn.h>
10 #include <string> 10 #include <string>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 #include "chrome/browser/ui/gtk/infobars/infobar_gtk.h" 60 #include "chrome/browser/ui/gtk/infobars/infobar_gtk.h"
61 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h" 61 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h"
62 #include "chrome/browser/ui/gtk/nine_box.h" 62 #include "chrome/browser/ui/gtk/nine_box.h"
63 #include "chrome/browser/ui/gtk/page_info_window.h" 63 #include "chrome/browser/ui/gtk/page_info_window.h"
64 #include "chrome/browser/ui/gtk/reload_button_gtk.h" 64 #include "chrome/browser/ui/gtk/reload_button_gtk.h"
65 #include "chrome/browser/ui/gtk/repost_form_warning_gtk.h" 65 #include "chrome/browser/ui/gtk/repost_form_warning_gtk.h"
66 #include "chrome/browser/ui/gtk/status_bubble_gtk.h" 66 #include "chrome/browser/ui/gtk/status_bubble_gtk.h"
67 #include "chrome/browser/ui/gtk/tab_contents_container_gtk.h" 67 #include "chrome/browser/ui/gtk/tab_contents_container_gtk.h"
68 #include "chrome/browser/ui/gtk/tabs/tab_strip_gtk.h" 68 #include "chrome/browser/ui/gtk/tabs/tab_strip_gtk.h"
69 #include "chrome/browser/ui/gtk/task_manager_gtk.h" 69 #include "chrome/browser/ui/gtk/task_manager_gtk.h"
70 #include "chrome/browser/ui/gtk/theme_install_bubble_view_gtk.h"
71 #include "chrome/browser/ui/gtk/update_recommended_dialog.h" 70 #include "chrome/browser/ui/gtk/update_recommended_dialog.h"
72 #include "chrome/browser/ui/omnibox/location_bar.h" 71 #include "chrome/browser/ui/omnibox/location_bar.h"
73 #include "chrome/browser/ui/omnibox/omnibox_view.h" 72 #include "chrome/browser/ui/omnibox/omnibox_view.h"
74 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 73 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
75 #include "chrome/browser/ui/webui/bug_report_ui.h" 74 #include "chrome/browser/ui/webui/bug_report_ui.h"
76 #include "chrome/browser/ui/webui/task_manager_dialog.h" 75 #include "chrome/browser/ui/webui/task_manager_dialog.h"
77 #include "chrome/browser/ui/window_sizer.h" 76 #include "chrome/browser/ui/window_sizer.h"
78 #include "chrome/browser/web_applications/web_app.h" 77 #include "chrome/browser/web_applications/web_app.h"
79 #include "chrome/common/chrome_notification_types.h" 78 #include "chrome/common/chrome_notification_types.h"
80 #include "chrome/common/chrome_switches.h" 79 #include "chrome/common/chrome_switches.h"
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 1021
1023 void BrowserWindowGtk::ShowRepostFormWarningDialog(TabContents* tab_contents) { 1022 void BrowserWindowGtk::ShowRepostFormWarningDialog(TabContents* tab_contents) {
1024 new RepostFormWarningGtk(GetNativeHandle(), tab_contents); 1023 new RepostFormWarningGtk(GetNativeHandle(), tab_contents);
1025 } 1024 }
1026 1025
1027 void BrowserWindowGtk::ShowCollectedCookiesDialog(TabContentsWrapper* wrapper) { 1026 void BrowserWindowGtk::ShowCollectedCookiesDialog(TabContentsWrapper* wrapper) {
1028 // Deletes itself on close. 1027 // Deletes itself on close.
1029 new CollectedCookiesGtk(GetNativeHandle(), wrapper); 1028 new CollectedCookiesGtk(GetNativeHandle(), wrapper);
1030 } 1029 }
1031 1030
1032 void BrowserWindowGtk::ShowThemeInstallBubble() {
1033 ThemeInstallBubbleViewGtk::Show(window_);
1034 }
1035
1036 void BrowserWindowGtk::UserChangedTheme() { 1031 void BrowserWindowGtk::UserChangedTheme() {
1037 SetBackgroundColor(); 1032 SetBackgroundColor();
1038 InvalidateWindow(); 1033 InvalidateWindow();
1039 UpdateWindowShape(bounds_.width(), bounds_.height()); 1034 UpdateWindowShape(bounds_.width(), bounds_.height());
1040 } 1035 }
1041 1036
1042 int BrowserWindowGtk::GetExtraRenderViewHeight() const { 1037 int BrowserWindowGtk::GetExtraRenderViewHeight() const {
1043 int sum = infobar_container_->TotalHeightOfAnimatingBars(); 1038 int sum = infobar_container_->TotalHeightOfAnimatingBars();
1044 if (IsBookmarkBarSupported() && bookmark_bar_->IsAnimating()) 1039 if (IsBookmarkBarSupported() && bookmark_bar_->IsAnimating())
1045 sum += bookmark_bar_->GetHeight(); 1040 sum += bookmark_bar_->GetHeight();
(...skipping 1361 matching lines...) Expand 10 before | Expand all | Expand 10 after
2407 wm_name == "Openbox" || 2402 wm_name == "Openbox" ||
2408 wm_name == "Xfwm4"); 2403 wm_name == "Xfwm4");
2409 } 2404 }
2410 2405
2411 // static 2406 // static
2412 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { 2407 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) {
2413 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); 2408 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser);
2414 browser_window_gtk->Init(); 2409 browser_window_gtk->Init();
2415 return browser_window_gtk; 2410 return browser_window_gtk;
2416 } 2411 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698