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

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

Issue 244003: Kiosk Mode implementation (Closed)
Patch Set: Finally fix MACOSX Created 11 years, 1 month 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
« no previous file with comments | « chrome/browser/gtk/browser_window_gtk.h ('k') | chrome/browser/views/frame/browser_view.h » ('j') | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include <X11/XF86keysym.h> 8 #include <X11/XF86keysym.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 gtk_window_fullscreen(window_); 1011 gtk_window_fullscreen(window_);
1012 } else { 1012 } else {
1013 gtk_window_unfullscreen(window_); 1013 gtk_window_unfullscreen(window_);
1014 } 1014 }
1015 } 1015 }
1016 1016
1017 bool BrowserWindowGtk::IsFullscreen() const { 1017 bool BrowserWindowGtk::IsFullscreen() const {
1018 return (state_ & GDK_WINDOW_STATE_FULLSCREEN); 1018 return (state_ & GDK_WINDOW_STATE_FULLSCREEN);
1019 } 1019 }
1020 1020
1021 bool BrowserWindowGtk::IsFullscreenBubbleVisible() const {
1022 // There is no fullscreen bubble for Linux.
1023 return false;
1024 }
1025
1021 LocationBar* BrowserWindowGtk::GetLocationBar() const { 1026 LocationBar* BrowserWindowGtk::GetLocationBar() const {
1022 return toolbar_->GetLocationBar(); 1027 return toolbar_->GetLocationBar();
1023 } 1028 }
1024 1029
1025 void BrowserWindowGtk::SetFocusToLocationBar() { 1030 void BrowserWindowGtk::SetFocusToLocationBar() {
1026 if (!IsFullscreen()) 1031 if (!IsFullscreen())
1027 GetLocationBar()->FocusLocation(); 1032 GetLocationBar()->FocusLocation();
1028 } 1033 }
1029 1034
1030 void BrowserWindowGtk::UpdateStopGoState(bool is_loading, bool force) { 1035 void BrowserWindowGtk::UpdateStopGoState(bool is_loading, bool force) {
(...skipping 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after
2326 // are taken from the WMs' source code. 2331 // are taken from the WMs' source code.
2327 return (wm_name == "Blackbox" || 2332 return (wm_name == "Blackbox" ||
2328 wm_name == "compiz" || 2333 wm_name == "compiz" ||
2329 wm_name == "e16" || // Enlightenment DR16 2334 wm_name == "e16" || // Enlightenment DR16
2330 wm_name == "KWin" || 2335 wm_name == "KWin" ||
2331 wm_name == "Metacity" || 2336 wm_name == "Metacity" ||
2332 wm_name == "Mutter" || 2337 wm_name == "Mutter" ||
2333 wm_name == "Openbox" || 2338 wm_name == "Openbox" ||
2334 wm_name == "Xfwm4"); 2339 wm_name == "Xfwm4");
2335 } 2340 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/browser_window_gtk.h ('k') | chrome/browser/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698