Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Side by Side Diff: chrome/browser/ui/gtk/browser_window_gtk.cc

Issue 9958006: Create Linux platform app shortcuts to run in their own process. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moved new function into shell_integration_linux.h Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 gtk_window_activate_key(window_, os_event); 1215 gtk_window_activate_key(window_, os_event);
1216 } 1216 }
1217 1217
1218 void BrowserWindowGtk::ShowCreateWebAppShortcutsDialog( 1218 void BrowserWindowGtk::ShowCreateWebAppShortcutsDialog(
1219 TabContentsWrapper* tab_contents) { 1219 TabContentsWrapper* tab_contents) {
1220 CreateWebApplicationShortcutsDialogGtk::Show(window_, tab_contents); 1220 CreateWebApplicationShortcutsDialogGtk::Show(window_, tab_contents);
1221 } 1221 }
1222 1222
1223 void BrowserWindowGtk::ShowCreateChromeAppShortcutsDialog( 1223 void BrowserWindowGtk::ShowCreateChromeAppShortcutsDialog(
1224 Profile* profile, const Extension* app) { 1224 Profile* profile, const Extension* app) {
1225 CreateChromeApplicationShortcutsDialogGtk::Show(window_, app); 1225 CreateChromeApplicationShortcutsDialogGtk::Show(window_, profile, app);
1226 } 1226 }
1227 1227
1228 void BrowserWindowGtk::Cut() { 1228 void BrowserWindowGtk::Cut() {
1229 gtk_util::DoCut(this); 1229 gtk_util::DoCut(this);
1230 } 1230 }
1231 1231
1232 void BrowserWindowGtk::Copy() { 1232 void BrowserWindowGtk::Copy() {
1233 gtk_util::DoCopy(this); 1233 gtk_util::DoCopy(this);
1234 } 1234 }
1235 1235
(...skipping 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after
2596 wm_type == ui::WM_OPENBOX || 2596 wm_type == ui::WM_OPENBOX ||
2597 wm_type == ui::WM_XFWM4); 2597 wm_type == ui::WM_XFWM4);
2598 } 2598 }
2599 2599
2600 // static 2600 // static
2601 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { 2601 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) {
2602 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); 2602 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser);
2603 browser_window_gtk->Init(); 2603 browser_window_gtk->Init();
2604 return browser_window_gtk; 2604 return browser_window_gtk;
2605 } 2605 }
OLDNEW
« no previous file with comments | « chrome/browser/shell_integration_unittest.cc ('k') | chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698