| 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 <dlfcn.h> | 9 #include <dlfcn.h> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1449 gtk_widget_hide(bookmark_bar_->widget()); | 1449 gtk_widget_hide(bookmark_bar_->widget()); |
| 1450 bool is_kiosk = | 1450 bool is_kiosk = |
| 1451 CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode); | 1451 CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode); |
| 1452 if (!is_kiosk && !fullscreen_exit_bubble_.get()) { | 1452 if (!is_kiosk && !fullscreen_exit_bubble_.get()) { |
| 1453 fullscreen_exit_bubble_.reset(new FullscreenExitBubbleGtk( | 1453 fullscreen_exit_bubble_.reset(new FullscreenExitBubbleGtk( |
| 1454 GTK_FLOATING_CONTAINER(render_area_floating_container_), | 1454 GTK_FLOATING_CONTAINER(render_area_floating_container_), |
| 1455 browser(), | 1455 browser(), |
| 1456 GURL(), | 1456 GURL(), |
| 1457 FEB_TYPE_BROWSER_FULLSCREEN_EXIT_INSTRUCTION)); | 1457 FEB_TYPE_BROWSER_FULLSCREEN_EXIT_INSTRUCTION)); |
| 1458 } | 1458 } |
| 1459 gtk_widget_hide(titlebar_widget()); |
| 1459 gtk_widget_hide(toolbar_border_); | 1460 gtk_widget_hide(toolbar_border_); |
| 1460 } else { | 1461 } else { |
| 1462 gtk_widget_show(titlebar_widget()); |
| 1461 fullscreen_exit_bubble_.reset(); | 1463 fullscreen_exit_bubble_.reset(); |
| 1462 UpdateCustomFrame(); | 1464 UpdateCustomFrame(); |
| 1463 ShowSupportedWindowFeatures(); | 1465 ShowSupportedWindowFeatures(); |
| 1464 } | 1466 } |
| 1465 } | 1467 } |
| 1466 | 1468 |
| 1467 titlebar_->UpdateCustomFrame(UseCustomFrame() && !IsFullscreen()); | 1469 titlebar_->UpdateCustomFrame(UseCustomFrame() && !IsFullscreen()); |
| 1468 UpdateWindowShape(bounds_.width(), bounds_.height()); | 1470 UpdateWindowShape(bounds_.width(), bounds_.height()); |
| 1469 SaveWindowPosition(); | 1471 SaveWindowPosition(); |
| 1470 return FALSE; | 1472 return FALSE; |
| (...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2408 wm_name == "Openbox" || | 2410 wm_name == "Openbox" || |
| 2409 wm_name == "Xfwm4"); | 2411 wm_name == "Xfwm4"); |
| 2410 } | 2412 } |
| 2411 | 2413 |
| 2412 // static | 2414 // static |
| 2413 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 2415 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
| 2414 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); | 2416 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); |
| 2415 browser_window_gtk->Init(); | 2417 browser_window_gtk->Init(); |
| 2416 return browser_window_gtk; | 2418 return browser_window_gtk; |
| 2417 } | 2419 } |
| OLD | NEW |