OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 |
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1078 // | 1078 // |
1079 // It's not necessary to care about the keyboard layout, as | 1079 // It's not necessary to care about the keyboard layout, as |
1080 // gtk_window_activate_key() takes care of it automatically. | 1080 // gtk_window_activate_key() takes care of it automatically. |
1081 int id = GetCustomCommandId(os_event); | 1081 int id = GetCustomCommandId(os_event); |
1082 if (id != -1) | 1082 if (id != -1) |
1083 ExecuteBrowserCommand(id); | 1083 ExecuteBrowserCommand(id); |
1084 else | 1084 else |
1085 gtk_window_activate_key(window_, os_event); | 1085 gtk_window_activate_key(window_, os_event); |
1086 } | 1086 } |
1087 | 1087 |
1088 void BrowserWindowGtk::ShowCreateShortcutsDialog(TabContents* tab_contents) { | 1088 void BrowserWindowGtk::ShowCreateWebAppShortcutsDialog( |
1089 CreateApplicationShortcutsDialogGtk::Show(window_, tab_contents); | 1089 TabContents* tab_contents) { |
| 1090 CreateWebApplicationShortcutsDialogGtk::Show(window_, tab_contents); |
| 1091 } |
| 1092 |
| 1093 void BrowserWindowGtk::ShowCreateChromeAppShortcutsDialog( |
| 1094 Profile* profile, const Extension* app) { |
| 1095 CreateChromeApplicationShortcutsDialogGtk::Show(window_, app); |
1090 } | 1096 } |
1091 | 1097 |
1092 void BrowserWindowGtk::Cut() { | 1098 void BrowserWindowGtk::Cut() { |
1093 gtk_util::DoCut(this); | 1099 gtk_util::DoCut(this); |
1094 } | 1100 } |
1095 | 1101 |
1096 void BrowserWindowGtk::Copy() { | 1102 void BrowserWindowGtk::Copy() { |
1097 gtk_util::DoCopy(this); | 1103 gtk_util::DoCopy(this); |
1098 } | 1104 } |
1099 | 1105 |
(...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2227 // special-case the ones where the custom frame should be used. These names | 2233 // special-case the ones where the custom frame should be used. These names |
2228 // are taken from the WMs' source code. | 2234 // are taken from the WMs' source code. |
2229 return (wm_name == "Blackbox" || | 2235 return (wm_name == "Blackbox" || |
2230 wm_name == "compiz" || | 2236 wm_name == "compiz" || |
2231 wm_name == "e16" || // Enlightenment DR16 | 2237 wm_name == "e16" || // Enlightenment DR16 |
2232 wm_name == "Metacity" || | 2238 wm_name == "Metacity" || |
2233 wm_name == "Mutter" || | 2239 wm_name == "Mutter" || |
2234 wm_name == "Openbox" || | 2240 wm_name == "Openbox" || |
2235 wm_name == "Xfwm4"); | 2241 wm_name == "Xfwm4"); |
2236 } | 2242 } |
OLD | NEW |