OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |