| 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 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 983 gtk_window_unstick(window_); | 983 gtk_window_unstick(window_); |
| 984 } | 984 } |
| 985 | 985 |
| 986 void PanelGtk::EnableResizeByMouse(bool enable) { | 986 void PanelGtk::EnableResizeByMouse(bool enable) { |
| 987 } | 987 } |
| 988 | 988 |
| 989 void PanelGtk::UpdatePanelMinimizeRestoreButtonVisibility() { | 989 void PanelGtk::UpdatePanelMinimizeRestoreButtonVisibility() { |
| 990 titlebar_->UpdateMinimizeRestoreButtonVisibility(); | 990 titlebar_->UpdateMinimizeRestoreButtonVisibility(); |
| 991 } | 991 } |
| 992 | 992 |
| 993 void PanelGtk::UpdatePanelStackingProperty() { |
| 994 NOTIMPLEMENTED(); |
| 995 } |
| 996 |
| 993 gfx::Size PanelGtk::GetNonClientFrameSize() const { | 997 gfx::Size PanelGtk::GetNonClientFrameSize() const { |
| 994 GtkAllocation window_allocation; | 998 GtkAllocation window_allocation; |
| 995 gtk_widget_get_allocation(window_container_, &window_allocation); | 999 gtk_widget_get_allocation(window_container_, &window_allocation); |
| 996 GtkAllocation contents_allocation; | 1000 GtkAllocation contents_allocation; |
| 997 gtk_widget_get_allocation(contents_expanded_, &contents_allocation); | 1001 gtk_widget_get_allocation(contents_expanded_, &contents_allocation); |
| 998 return gfx::Size(window_allocation.width - contents_allocation.width, | 1002 return gfx::Size(window_allocation.width - contents_allocation.width, |
| 999 window_allocation.height - contents_allocation.height); | 1003 window_allocation.height - contents_allocation.height); |
| 1000 } | 1004 } |
| 1001 | 1005 |
| 1002 void PanelGtk::InvalidateWindow() { | 1006 void PanelGtk::InvalidateWindow() { |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1132 break; | 1136 break; |
| 1133 case panel::RESTORE_BUTTON: | 1137 case panel::RESTORE_BUTTON: |
| 1134 button = titlebar->restore_button(); | 1138 button = titlebar->restore_button(); |
| 1135 break; | 1139 break; |
| 1136 default: | 1140 default: |
| 1137 NOTREACHED(); | 1141 NOTREACHED(); |
| 1138 return false; | 1142 return false; |
| 1139 } | 1143 } |
| 1140 return gtk_widget_get_visible(button->widget()); | 1144 return gtk_widget_get_visible(button->widget()); |
| 1141 } | 1145 } |
| OLD | NEW |