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

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

Issue 8320019: Merge 101920 - gtk: fix partially visible toolbar in fullscreen mode (Closed) Base URL: svn://svn.chromium.org/chrome/branches/874/src/
Patch Set: Created 9 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after
1440 gboolean BrowserWindowGtk::OnWindowState(GtkWidget* sender, 1440 gboolean BrowserWindowGtk::OnWindowState(GtkWidget* sender,
1441 GdkEventWindowState* event) { 1441 GdkEventWindowState* event) {
1442 state_ = event->new_window_state; 1442 state_ = event->new_window_state;
1443 1443
1444 if (event->changed_mask & GDK_WINDOW_STATE_FULLSCREEN) { 1444 if (event->changed_mask & GDK_WINDOW_STATE_FULLSCREEN) {
1445 browser_->WindowFullscreenStateChanged(); 1445 browser_->WindowFullscreenStateChanged();
1446 if (state_ & GDK_WINDOW_STATE_FULLSCREEN) { 1446 if (state_ & GDK_WINDOW_STATE_FULLSCREEN) {
1447 UpdateCustomFrame(); 1447 UpdateCustomFrame();
1448 toolbar_->Hide(); 1448 toolbar_->Hide();
1449 tabstrip_->Hide(); 1449 tabstrip_->Hide();
1450 if (bookmark_bar_.get())
1451 gtk_widget_hide(bookmark_bar_->widget());
1450 bool is_kiosk = 1452 bool is_kiosk =
1451 CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode); 1453 CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode);
1452 if (!is_kiosk) { 1454 if (!is_kiosk) {
1453 fullscreen_exit_bubble_.reset(new FullscreenExitBubbleGtk( 1455 fullscreen_exit_bubble_.reset(new FullscreenExitBubbleGtk(
1454 GTK_FLOATING_CONTAINER(render_area_floating_container_), 1456 GTK_FLOATING_CONTAINER(render_area_floating_container_),
1455 browser())); 1457 browser()));
1456 } 1458 }
1457 gtk_widget_hide(toolbar_border_); 1459 gtk_widget_hide(toolbar_border_);
1458 } else { 1460 } else {
1459 fullscreen_exit_bubble_.reset(); 1461 fullscreen_exit_bubble_.reset();
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
2370 // are taken from the WMs' source code. 2372 // are taken from the WMs' source code.
2371 return (wm_name == "Blackbox" || 2373 return (wm_name == "Blackbox" ||
2372 wm_name == "compiz" || 2374 wm_name == "compiz" ||
2373 wm_name == "Compiz" || 2375 wm_name == "Compiz" ||
2374 wm_name == "e16" || // Enlightenment DR16 2376 wm_name == "e16" || // Enlightenment DR16
2375 wm_name == "Metacity" || 2377 wm_name == "Metacity" ||
2376 wm_name == "Mutter" || 2378 wm_name == "Mutter" ||
2377 wm_name == "Openbox" || 2379 wm_name == "Openbox" ||
2378 wm_name == "Xfwm4"); 2380 wm_name == "Xfwm4");
2379 } 2381 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698