| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/gtk/browser_window_gtk.h" | 5 #include "chrome/browser/gtk/browser_window_gtk.h" |
| 6 | 6 |
| 7 #include <gdk/gdkkeysyms.h> | 7 #include <gdk/gdkkeysyms.h> |
| 8 #include <X11/XF86keysym.h> | 8 #include <X11/XF86keysym.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 #include "chrome/browser/download/download_manager.h" | 36 #include "chrome/browser/download/download_manager.h" |
| 37 #include "chrome/browser/find_bar_controller.h" | 37 #include "chrome/browser/find_bar_controller.h" |
| 38 #include "chrome/browser/gtk/about_chrome_dialog.h" | 38 #include "chrome/browser/gtk/about_chrome_dialog.h" |
| 39 #include "chrome/browser/gtk/active_window_watcher.h" | 39 #include "chrome/browser/gtk/active_window_watcher.h" |
| 40 #include "chrome/browser/gtk/bookmark_bar_gtk.h" | 40 #include "chrome/browser/gtk/bookmark_bar_gtk.h" |
| 41 #include "chrome/browser/gtk/bookmark_manager_gtk.h" | 41 #include "chrome/browser/gtk/bookmark_manager_gtk.h" |
| 42 #include "chrome/browser/gtk/browser_titlebar.h" | 42 #include "chrome/browser/gtk/browser_titlebar.h" |
| 43 #include "chrome/browser/gtk/browser_toolbar_gtk.h" | 43 #include "chrome/browser/gtk/browser_toolbar_gtk.h" |
| 44 #include "chrome/browser/gtk/cairo_cached_surface.h" | 44 #include "chrome/browser/gtk/cairo_cached_surface.h" |
| 45 #include "chrome/browser/gtk/clear_browsing_data_dialog_gtk.h" | 45 #include "chrome/browser/gtk/clear_browsing_data_dialog_gtk.h" |
| 46 #include "chrome/browser/gtk/download_in_progress_dialog_gtk.h" |
| 46 #include "chrome/browser/gtk/download_shelf_gtk.h" | 47 #include "chrome/browser/gtk/download_shelf_gtk.h" |
| 47 #include "chrome/browser/gtk/edit_search_engine_dialog.h" | 48 #include "chrome/browser/gtk/edit_search_engine_dialog.h" |
| 48 #include "chrome/browser/gtk/extension_shelf_gtk.h" | 49 #include "chrome/browser/gtk/extension_shelf_gtk.h" |
| 49 #include "chrome/browser/gtk/find_bar_gtk.h" | 50 #include "chrome/browser/gtk/find_bar_gtk.h" |
| 50 #include "chrome/browser/gtk/go_button_gtk.h" | 51 #include "chrome/browser/gtk/go_button_gtk.h" |
| 51 #include "chrome/browser/gtk/gtk_theme_provider.h" | 52 #include "chrome/browser/gtk/gtk_theme_provider.h" |
| 52 #include "chrome/browser/gtk/import_dialog_gtk.h" | 53 #include "chrome/browser/gtk/import_dialog_gtk.h" |
| 53 #include "chrome/browser/gtk/info_bubble_gtk.h" | 54 #include "chrome/browser/gtk/info_bubble_gtk.h" |
| 54 #include "chrome/browser/gtk/infobar_container_gtk.h" | 55 #include "chrome/browser/gtk/infobar_container_gtk.h" |
| 55 #include "chrome/browser/gtk/keyword_editor_view.h" | 56 #include "chrome/browser/gtk/keyword_editor_view.h" |
| (...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1133 browser::ShowPageInfo(window_, profile, url, ssl, show_history); | 1134 browser::ShowPageInfo(window_, profile, url, ssl, show_history); |
| 1134 } | 1135 } |
| 1135 | 1136 |
| 1136 void BrowserWindowGtk::ShowPageMenu() { | 1137 void BrowserWindowGtk::ShowPageMenu() { |
| 1137 } | 1138 } |
| 1138 | 1139 |
| 1139 void BrowserWindowGtk::ShowAppMenu() { | 1140 void BrowserWindowGtk::ShowAppMenu() { |
| 1140 } | 1141 } |
| 1141 | 1142 |
| 1142 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() { | 1143 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() { |
| 1143 NOTIMPLEMENTED(); | 1144 new DownloadInProgressDialogGtk(browser()); |
| 1144 browser_->InProgressDownloadResponse(false); | |
| 1145 } | 1145 } |
| 1146 | 1146 |
| 1147 void BrowserWindowGtk::Observe(NotificationType type, | 1147 void BrowserWindowGtk::Observe(NotificationType type, |
| 1148 const NotificationSource& source, | 1148 const NotificationSource& source, |
| 1149 const NotificationDetails& details) { | 1149 const NotificationDetails& details) { |
| 1150 switch (type.value) { | 1150 switch (type.value) { |
| 1151 case NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED: | 1151 case NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED: |
| 1152 MaybeShowBookmarkBar(browser_->GetSelectedTabContents(), true); | 1152 MaybeShowBookmarkBar(browser_->GetSelectedTabContents(), true); |
| 1153 break; | 1153 break; |
| 1154 | 1154 |
| (...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2195 // special-case the ones where the custom frame should be used. These names | 2195 // special-case the ones where the custom frame should be used. These names |
| 2196 // are taken from the WMs' source code. | 2196 // are taken from the WMs' source code. |
| 2197 return (wm_name == "Blackbox" || | 2197 return (wm_name == "Blackbox" || |
| 2198 wm_name == "compiz" || | 2198 wm_name == "compiz" || |
| 2199 wm_name == "e16" || // Enlightenment DR16 | 2199 wm_name == "e16" || // Enlightenment DR16 |
| 2200 wm_name == "KWin" || | 2200 wm_name == "KWin" || |
| 2201 wm_name == "Metacity" || | 2201 wm_name == "Metacity" || |
| 2202 wm_name == "Openbox" || | 2202 wm_name == "Openbox" || |
| 2203 wm_name == "Xfwm4"); | 2203 wm_name == "Xfwm4"); |
| 2204 } | 2204 } |
| OLD | NEW |