| 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 <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/base_paths.h" | 11 #include "base/base_paths.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
| 15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
| 16 #include "base/scoped_ptr.h" | 16 #include "base/scoped_ptr.h" |
| 17 #include "base/singleton.h" | 17 #include "base/singleton.h" |
| 18 #include "base/string_util.h" | 18 #include "base/string_util.h" |
| 19 #include "base/time.h" | 19 #include "base/time.h" |
| 20 #include "base/utf_string_conversions.h" | 20 #include "base/utf_string_conversions.h" |
| 21 #include "chrome/app/chrome_command_ids.h" | 21 #include "chrome/app/chrome_command_ids.h" |
| 22 #include "chrome/browser/autocomplete/autocomplete_edit_view.h" | 22 #include "chrome/browser/autocomplete/autocomplete_edit_view.h" |
| 23 #include "chrome/browser/bookmarks/bookmark_utils.h" | 23 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 24 #include "chrome/browser/browser_list.h" | 24 #include "chrome/browser/browser_list.h" |
| 25 #include "chrome/browser/browser_process.h" | 25 #include "chrome/browser/browser_process.h" |
| 26 #include "chrome/browser/debugger/devtools_window.h" | 26 #include "chrome/browser/debugger/devtools_window.h" |
| 27 #include "chrome/browser/dom_ui/bug_report_ui.h" | |
| 28 #include "chrome/browser/download/download_item_model.h" | 27 #include "chrome/browser/download/download_item_model.h" |
| 29 #include "chrome/browser/download/download_manager.h" | 28 #include "chrome/browser/download/download_manager.h" |
| 30 #include "chrome/browser/page_info_window.h" | 29 #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/profiles/profile.h" | 31 #include "chrome/browser/profiles/profile.h" |
| 33 #include "chrome/browser/tab_contents/tab_contents.h" | 32 #include "chrome/browser/tab_contents/tab_contents.h" |
| 34 #include "chrome/browser/tab_contents/tab_contents_view.h" | 33 #include "chrome/browser/tab_contents/tab_contents_view.h" |
| 35 #include "chrome/browser/tabs/tab_strip_model.h" | 34 #include "chrome/browser/tabs/tab_strip_model.h" |
| 36 #include "chrome/browser/themes/browser_theme_provider.h" | 35 #include "chrome/browser/themes/browser_theme_provider.h" |
| 37 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h" | 36 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 68 #include "chrome/browser/ui/gtk/repost_form_warning_gtk.h" | 67 #include "chrome/browser/ui/gtk/repost_form_warning_gtk.h" |
| 69 #include "chrome/browser/ui/gtk/status_bubble_gtk.h" | 68 #include "chrome/browser/ui/gtk/status_bubble_gtk.h" |
| 70 #include "chrome/browser/ui/gtk/tab_contents_container_gtk.h" | 69 #include "chrome/browser/ui/gtk/tab_contents_container_gtk.h" |
| 71 #include "chrome/browser/ui/gtk/tabs/tab_strip_gtk.h" | 70 #include "chrome/browser/ui/gtk/tabs/tab_strip_gtk.h" |
| 72 #include "chrome/browser/ui/gtk/task_manager_gtk.h" | 71 #include "chrome/browser/ui/gtk/task_manager_gtk.h" |
| 73 #include "chrome/browser/ui/gtk/theme_install_bubble_view_gtk.h" | 72 #include "chrome/browser/ui/gtk/theme_install_bubble_view_gtk.h" |
| 74 #include "chrome/browser/ui/gtk/update_recommended_dialog.h" | 73 #include "chrome/browser/ui/gtk/update_recommended_dialog.h" |
| 75 #include "chrome/browser/ui/omnibox/location_bar.h" | 74 #include "chrome/browser/ui/omnibox/location_bar.h" |
| 76 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 75 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 77 #include "chrome/browser/ui/window_sizer.h" | 76 #include "chrome/browser/ui/window_sizer.h" |
| 77 #include "chrome/browser/webui/bug_report_ui.h" |
| 78 #include "chrome/common/chrome_switches.h" | 78 #include "chrome/common/chrome_switches.h" |
| 79 #include "chrome/common/native_web_keyboard_event.h" | 79 #include "chrome/common/native_web_keyboard_event.h" |
| 80 #include "chrome/common/notification_service.h" | 80 #include "chrome/common/notification_service.h" |
| 81 #include "chrome/common/pref_names.h" | 81 #include "chrome/common/pref_names.h" |
| 82 #include "grit/app_resources.h" | 82 #include "grit/app_resources.h" |
| 83 #include "grit/chromium_strings.h" | 83 #include "grit/chromium_strings.h" |
| 84 #include "grit/generated_resources.h" | 84 #include "grit/generated_resources.h" |
| 85 #include "grit/theme_resources.h" | 85 #include "grit/theme_resources.h" |
| 86 #include "ui/base/keycodes/keyboard_codes.h" | 86 #include "ui/base/keycodes/keyboard_codes.h" |
| 87 #include "ui/base/l10n/l10n_util.h" | 87 #include "ui/base/l10n/l10n_util.h" |
| (...skipping 2167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2255 // special-case the ones where the custom frame should be used. These names | 2255 // special-case the ones where the custom frame should be used. These names |
| 2256 // are taken from the WMs' source code. | 2256 // are taken from the WMs' source code. |
| 2257 return (wm_name == "Blackbox" || | 2257 return (wm_name == "Blackbox" || |
| 2258 wm_name == "compiz" || | 2258 wm_name == "compiz" || |
| 2259 wm_name == "e16" || // Enlightenment DR16 | 2259 wm_name == "e16" || // Enlightenment DR16 |
| 2260 wm_name == "Metacity" || | 2260 wm_name == "Metacity" || |
| 2261 wm_name == "Mutter" || | 2261 wm_name == "Mutter" || |
| 2262 wm_name == "Openbox" || | 2262 wm_name == "Openbox" || |
| 2263 wm_name == "Xfwm4"); | 2263 wm_name == "Xfwm4"); |
| 2264 } | 2264 } |
| OLD | NEW |