| 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/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> |
| 11 | 11 |
| 12 #include "base/base_paths.h" | 12 #include "base/base_paths.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/environment.h" | 14 #include "base/environment.h" |
| 15 #include "base/i18n/file_util_icu.h" | 15 #include "base/i18n/file_util_icu.h" |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
| 18 #include "base/memory/singleton.h" | 18 #include "base/memory/singleton.h" |
| 19 #include "base/message_loop.h" | 19 #include "base/message_loop.h" |
| 20 #include "base/nix/xdg_util.h" | 20 #include "base/nix/xdg_util.h" |
| 21 #include "base/path_service.h" | 21 #include "base/path_service.h" |
| 22 #include "base/string_util.h" | 22 #include "base/string_util.h" |
| 23 #include "base/time.h" | 23 #include "base/time.h" |
| 24 #include "base/utf_string_conversions.h" | 24 #include "base/utf_string_conversions.h" |
| 25 #include "chrome/app/chrome_command_ids.h" | 25 #include "chrome/app/chrome_command_ids.h" |
| 26 #include "chrome/browser/bookmarks/bookmark_utils.h" | 26 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 27 #include "chrome/browser/browser_process.h" | 27 #include "chrome/browser/browser_process.h" |
| 28 #include "chrome/browser/debugger/devtools_window.h" | 28 #include "chrome/browser/debugger/devtools_window.h" |
| 29 #include "chrome/browser/download/download_item_model.h" | 29 #include "chrome/browser/download/download_item_model.h" |
| 30 #include "chrome/browser/page_info_window.h" | |
| 31 #include "chrome/browser/prefs/pref_service.h" | 30 #include "chrome/browser/prefs/pref_service.h" |
| 32 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 31 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
| 33 #include "chrome/browser/profiles/profile.h" | 32 #include "chrome/browser/profiles/profile.h" |
| 34 #include "chrome/browser/tabs/tab_strip_model.h" | 33 #include "chrome/browser/tabs/tab_strip_model.h" |
| 35 #include "chrome/browser/themes/theme_service.h" | 34 #include "chrome/browser/themes/theme_service.h" |
| 36 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h" | 35 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h" |
| 37 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" | 36 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" |
| 38 #include "chrome/browser/ui/browser.h" | 37 #include "chrome/browser/ui/browser.h" |
| 39 #include "chrome/browser/ui/browser_dialogs.h" | 38 #include "chrome/browser/ui/browser_dialogs.h" |
| 40 #include "chrome/browser/ui/browser_list.h" | 39 #include "chrome/browser/ui/browser_list.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 53 #include "chrome/browser/ui/gtk/edit_search_engine_dialog.h" | 52 #include "chrome/browser/ui/gtk/edit_search_engine_dialog.h" |
| 54 #include "chrome/browser/ui/gtk/find_bar_gtk.h" | 53 #include "chrome/browser/ui/gtk/find_bar_gtk.h" |
| 55 #include "chrome/browser/ui/gtk/fullscreen_exit_bubble_gtk.h" | 54 #include "chrome/browser/ui/gtk/fullscreen_exit_bubble_gtk.h" |
| 56 #include "chrome/browser/ui/gtk/global_menu_bar.h" | 55 #include "chrome/browser/ui/gtk/global_menu_bar.h" |
| 57 #include "chrome/browser/ui/gtk/gtk_theme_service.h" | 56 #include "chrome/browser/ui/gtk/gtk_theme_service.h" |
| 58 #include "chrome/browser/ui/gtk/gtk_util.h" | 57 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 59 #include "chrome/browser/ui/gtk/infobars/infobar_container_gtk.h" | 58 #include "chrome/browser/ui/gtk/infobars/infobar_container_gtk.h" |
| 60 #include "chrome/browser/ui/gtk/infobars/infobar_gtk.h" | 59 #include "chrome/browser/ui/gtk/infobars/infobar_gtk.h" |
| 61 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h" | 60 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h" |
| 62 #include "chrome/browser/ui/gtk/nine_box.h" | 61 #include "chrome/browser/ui/gtk/nine_box.h" |
| 62 #include "chrome/browser/ui/gtk/page_info_window.h" |
| 63 #include "chrome/browser/ui/gtk/reload_button_gtk.h" | 63 #include "chrome/browser/ui/gtk/reload_button_gtk.h" |
| 64 #include "chrome/browser/ui/gtk/repost_form_warning_gtk.h" | 64 #include "chrome/browser/ui/gtk/repost_form_warning_gtk.h" |
| 65 #include "chrome/browser/ui/gtk/status_bubble_gtk.h" | 65 #include "chrome/browser/ui/gtk/status_bubble_gtk.h" |
| 66 #include "chrome/browser/ui/gtk/tab_contents_container_gtk.h" | 66 #include "chrome/browser/ui/gtk/tab_contents_container_gtk.h" |
| 67 #include "chrome/browser/ui/gtk/tabs/tab_strip_gtk.h" | 67 #include "chrome/browser/ui/gtk/tabs/tab_strip_gtk.h" |
| 68 #include "chrome/browser/ui/gtk/task_manager_gtk.h" | 68 #include "chrome/browser/ui/gtk/task_manager_gtk.h" |
| 69 #include "chrome/browser/ui/gtk/theme_install_bubble_view_gtk.h" | 69 #include "chrome/browser/ui/gtk/theme_install_bubble_view_gtk.h" |
| 70 #include "chrome/browser/ui/gtk/update_recommended_dialog.h" | 70 #include "chrome/browser/ui/gtk/update_recommended_dialog.h" |
| 71 #include "chrome/browser/ui/omnibox/location_bar.h" | 71 #include "chrome/browser/ui/omnibox/location_bar.h" |
| 72 #include "chrome/browser/ui/omnibox/omnibox_view.h" | 72 #include "chrome/browser/ui/omnibox/omnibox_view.h" |
| (...skipping 2318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2391 // are taken from the WMs' source code. | 2391 // are taken from the WMs' source code. |
| 2392 return (wm_name == "Blackbox" || | 2392 return (wm_name == "Blackbox" || |
| 2393 wm_name == "compiz" || | 2393 wm_name == "compiz" || |
| 2394 wm_name == "Compiz" || | 2394 wm_name == "Compiz" || |
| 2395 wm_name == "e16" || // Enlightenment DR16 | 2395 wm_name == "e16" || // Enlightenment DR16 |
| 2396 wm_name == "Metacity" || | 2396 wm_name == "Metacity" || |
| 2397 wm_name == "Mutter" || | 2397 wm_name == "Mutter" || |
| 2398 wm_name == "Openbox" || | 2398 wm_name == "Openbox" || |
| 2399 wm_name == "Xfwm4"); | 2399 wm_name == "Xfwm4"); |
| 2400 } | 2400 } |
| OLD | NEW |