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/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 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "app/keyboard_codes.h" | |
12 #include "app/l10n_util.h" | 11 #include "app/l10n_util.h" |
13 #include "base/base_paths.h" | 12 #include "base/base_paths.h" |
14 #include "base/command_line.h" | 13 #include "base/command_line.h" |
15 #include "base/logging.h" | 14 #include "base/logging.h" |
16 #include "base/message_loop.h" | 15 #include "base/message_loop.h" |
17 #include "base/path_service.h" | 16 #include "base/path_service.h" |
18 #include "base/scoped_ptr.h" | 17 #include "base/scoped_ptr.h" |
19 #include "base/singleton.h" | 18 #include "base/singleton.h" |
20 #include "base/string_util.h" | 19 #include "base/string_util.h" |
21 #include "base/time.h" | 20 #include "base/time.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 #include "chrome/common/native_web_keyboard_event.h" | 79 #include "chrome/common/native_web_keyboard_event.h" |
81 #include "chrome/common/notification_service.h" | 80 #include "chrome/common/notification_service.h" |
82 #include "chrome/common/pref_names.h" | 81 #include "chrome/common/pref_names.h" |
83 #include "gfx/gtk_util.h" | 82 #include "gfx/gtk_util.h" |
84 #include "gfx/rect.h" | 83 #include "gfx/rect.h" |
85 #include "gfx/skia_utils_gtk.h" | 84 #include "gfx/skia_utils_gtk.h" |
86 #include "grit/app_resources.h" | 85 #include "grit/app_resources.h" |
87 #include "grit/chromium_strings.h" | 86 #include "grit/chromium_strings.h" |
88 #include "grit/generated_resources.h" | 87 #include "grit/generated_resources.h" |
89 #include "grit/theme_resources.h" | 88 #include "grit/theme_resources.h" |
| 89 #include "ui/base/keycodes/keyboard_codes.h" |
90 | 90 |
91 namespace { | 91 namespace { |
92 | 92 |
93 // The number of milliseconds between loading animation frames. | 93 // The number of milliseconds between loading animation frames. |
94 const int kLoadingAnimationFrameTimeMs = 30; | 94 const int kLoadingAnimationFrameTimeMs = 30; |
95 | 95 |
96 // Default height of dev tools pane when docked to the browser window. This | 96 // Default height of dev tools pane when docked to the browser window. This |
97 // matches the value in Views. | 97 // matches the value in Views. |
98 const int kDefaultDevToolsHeight = 200; | 98 const int kDefaultDevToolsHeight = 200; |
99 | 99 |
(...skipping 2142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2242 // special-case the ones where the custom frame should be used. These names | 2242 // special-case the ones where the custom frame should be used. These names |
2243 // are taken from the WMs' source code. | 2243 // are taken from the WMs' source code. |
2244 return (wm_name == "Blackbox" || | 2244 return (wm_name == "Blackbox" || |
2245 wm_name == "compiz" || | 2245 wm_name == "compiz" || |
2246 wm_name == "e16" || // Enlightenment DR16 | 2246 wm_name == "e16" || // Enlightenment DR16 |
2247 wm_name == "Metacity" || | 2247 wm_name == "Metacity" || |
2248 wm_name == "Mutter" || | 2248 wm_name == "Mutter" || |
2249 wm_name == "Openbox" || | 2249 wm_name == "Openbox" || |
2250 wm_name == "Xfwm4"); | 2250 wm_name == "Xfwm4"); |
2251 } | 2251 } |
OLD | NEW |