OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <dlfcn.h> | 7 #include <dlfcn.h> |
8 #include <gdk/gdkkeysyms.h> | 8 #include <gdk/gdkkeysyms.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1216 else | 1216 else |
1217 gtk_window_activate_key(window_, os_event); | 1217 gtk_window_activate_key(window_, os_event); |
1218 } | 1218 } |
1219 | 1219 |
1220 void BrowserWindowGtk::ShowCreateWebAppShortcutsDialog( | 1220 void BrowserWindowGtk::ShowCreateWebAppShortcutsDialog( |
1221 TabContentsWrapper* tab_contents) { | 1221 TabContentsWrapper* tab_contents) { |
1222 CreateWebApplicationShortcutsDialogGtk::Show(window_, tab_contents); | 1222 CreateWebApplicationShortcutsDialogGtk::Show(window_, tab_contents); |
1223 } | 1223 } |
1224 | 1224 |
1225 void BrowserWindowGtk::ShowCreateChromeAppShortcutsDialog( | 1225 void BrowserWindowGtk::ShowCreateChromeAppShortcutsDialog( |
1226 Profile* profile, const Extension* app) { | 1226 Profile* profile, const extensions::Extension* app) { |
1227 CreateChromeApplicationShortcutsDialogGtk::Show(window_, profile, app); | 1227 CreateChromeApplicationShortcutsDialogGtk::Show(window_, profile, app); |
1228 } | 1228 } |
1229 | 1229 |
1230 void BrowserWindowGtk::Cut() { | 1230 void BrowserWindowGtk::Cut() { |
1231 gtk_util::DoCut(this); | 1231 gtk_util::DoCut(this); |
1232 } | 1232 } |
1233 | 1233 |
1234 void BrowserWindowGtk::Copy() { | 1234 void BrowserWindowGtk::Copy() { |
1235 gtk_util::DoCopy(this); | 1235 gtk_util::DoCopy(this); |
1236 } | 1236 } |
(...skipping 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2585 wm_type == ui::WM_OPENBOX || | 2585 wm_type == ui::WM_OPENBOX || |
2586 wm_type == ui::WM_XFWM4); | 2586 wm_type == ui::WM_XFWM4); |
2587 } | 2587 } |
2588 | 2588 |
2589 // static | 2589 // static |
2590 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 2590 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
2591 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); | 2591 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); |
2592 browser_window_gtk->Init(); | 2592 browser_window_gtk->Init(); |
2593 return browser_window_gtk; | 2593 return browser_window_gtk; |
2594 } | 2594 } |
OLD | NEW |