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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 | 319 |
320 void PanelGtk::MinimizePanelBySystem() { | 320 void PanelGtk::MinimizePanelBySystem() { |
321 NOTIMPLEMENTED(); | 321 NOTIMPLEMENTED(); |
322 } | 322 } |
323 | 323 |
324 bool PanelGtk::IsPanelMinimizedBySystem() const { | 324 bool PanelGtk::IsPanelMinimizedBySystem() const { |
325 NOTIMPLEMENTED(); | 325 NOTIMPLEMENTED(); |
326 return false; | 326 return false; |
327 } | 327 } |
328 | 328 |
| 329 void PanelGtk::SetPanelHasShadow(bool has_shadow) { |
| 330 NOTIMPLEMENTED(); |
| 331 } |
| 332 |
329 void PanelGtk::UpdateWindowShape() { | 333 void PanelGtk::UpdateWindowShape() { |
330 int width = configure_size_.width(); | 334 int width = configure_size_.width(); |
331 int height = configure_size_.height(); | 335 int height = configure_size_.height(); |
332 if (!width || !height) | 336 if (!width || !height) |
333 return; | 337 return; |
334 | 338 |
335 GdkRegion* mask; | 339 GdkRegion* mask; |
336 if (corner_style_ & panel::TOP_ROUNDED) { | 340 if (corner_style_ & panel::TOP_ROUNDED) { |
337 GdkRectangle top_top_rect = { 3, 0, width - 6, 1 }; | 341 GdkRectangle top_top_rect = { 3, 0, width - 6, 1 }; |
338 GdkRectangle top_mid_rect = { 1, 1, width - 2, 2 }; | 342 GdkRectangle top_mid_rect = { 1, 1, width - 2, 2 }; |
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1148 default: | 1152 default: |
1149 NOTREACHED(); | 1153 NOTREACHED(); |
1150 return false; | 1154 return false; |
1151 } | 1155 } |
1152 return gtk_widget_get_visible(button->widget()); | 1156 return gtk_widget_get_visible(button->widget()); |
1153 } | 1157 } |
1154 | 1158 |
1155 panel::CornerStyle GtkNativePanelTesting::GetWindowCornerStyle() const { | 1159 panel::CornerStyle GtkNativePanelTesting::GetWindowCornerStyle() const { |
1156 return panel_gtk_->corner_style_; | 1160 return panel_gtk_->corner_style_; |
1157 } | 1161 } |
OLD | NEW |