OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/rounded_window.h" | 5 #include "chrome/browser/gtk/rounded_window.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 #include <math.h> | 8 #include <math.h> |
9 | 9 |
10 #include "app/gtk_signal_registrar.h" | 10 #include "app/gtk_signal_registrar.h" |
11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 | 312 |
313 void SetRoundedWindowBorderColor(GtkWidget* widget, GdkColor color) { | 313 void SetRoundedWindowBorderColor(GtkWidget* widget, GdkColor color) { |
314 DCHECK(widget); | 314 DCHECK(widget); |
315 RoundedWindowData* data = static_cast<RoundedWindowData*>( | 315 RoundedWindowData* data = static_cast<RoundedWindowData*>( |
316 g_object_get_data(G_OBJECT(widget), kRoundedData)); | 316 g_object_get_data(G_OBJECT(widget), kRoundedData)); |
317 DCHECK(data); | 317 DCHECK(data); |
318 data->border_color = color; | 318 data->border_color = color; |
319 } | 319 } |
320 | 320 |
321 } // namespace gtk_util | 321 } // namespace gtk_util |
OLD | NEW |