| OLD | NEW |
| 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/panels/panel_gtk.h" | 5 #include "chrome/browser/ui/gtk/panels/panel_gtk.h" |
| 6 | 6 |
| 7 #include <gdk/gdk.h> | 7 #include <gdk/gdk.h> |
| 8 #include <gdk/gdkkeysyms.h> | 8 #include <gdk/gdkkeysyms.h> |
| 9 #include <X11/XF86keysym.h> | 9 #include <X11/XF86keysym.h> |
| 10 | 10 |
| (...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1061 // from the panel UI. | 1061 // from the panel UI. |
| 1062 gtk_window_set_skip_taskbar_hint(window_, on_top); | 1062 gtk_window_set_skip_taskbar_hint(window_, on_top); |
| 1063 | 1063 |
| 1064 // Show always-on-top windows on all the virtual desktops. | 1064 // Show always-on-top windows on all the virtual desktops. |
| 1065 if (on_top) | 1065 if (on_top) |
| 1066 gtk_window_stick(window_); | 1066 gtk_window_stick(window_); |
| 1067 else | 1067 else |
| 1068 gtk_window_unstick(window_); | 1068 gtk_window_unstick(window_); |
| 1069 } | 1069 } |
| 1070 | 1070 |
| 1071 void PanelGtk::EnableResizeByMouse(bool enable) { |
| 1072 } |
| 1073 |
| 1071 void PanelGtk::UpdatePanelMinimizeRestoreButtonVisibility() { | 1074 void PanelGtk::UpdatePanelMinimizeRestoreButtonVisibility() { |
| 1072 titlebar_->UpdateMinimizeRestoreButtonVisibility(); | 1075 titlebar_->UpdateMinimizeRestoreButtonVisibility(); |
| 1073 } | 1076 } |
| 1074 | 1077 |
| 1075 gfx::Size PanelGtk::GetNonClientFrameSize() const { | 1078 gfx::Size PanelGtk::GetNonClientFrameSize() const { |
| 1076 GtkAllocation window_allocation; | 1079 GtkAllocation window_allocation; |
| 1077 gtk_widget_get_allocation(window_container_, &window_allocation); | 1080 gtk_widget_get_allocation(window_container_, &window_allocation); |
| 1078 GtkAllocation contents_allocation; | 1081 GtkAllocation contents_allocation; |
| 1079 gtk_widget_get_allocation(contents_expanded_, &contents_allocation); | 1082 gtk_widget_get_allocation(contents_expanded_, &contents_allocation); |
| 1080 return gfx::Size(window_allocation.width - contents_allocation.width, | 1083 return gfx::Size(window_allocation.width - contents_allocation.width, |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1230 } | 1233 } |
| 1231 | 1234 |
| 1232 panel::CornerStyle GtkNativePanelTesting::GetWindowCornerStyle() const { | 1235 panel::CornerStyle GtkNativePanelTesting::GetWindowCornerStyle() const { |
| 1233 return panel_gtk_->corner_style_; | 1236 return panel_gtk_->corner_style_; |
| 1234 } | 1237 } |
| 1235 | 1238 |
| 1236 bool GtkNativePanelTesting::EnsureApplicationRunOnForeground() { | 1239 bool GtkNativePanelTesting::EnsureApplicationRunOnForeground() { |
| 1237 // Not needed on GTK. | 1240 // Not needed on GTK. |
| 1238 return true; | 1241 return true; |
| 1239 } | 1242 } |
| OLD | NEW |