OLD | NEW |
1 // Copyright (c) 2011 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/theme_install_bubble_view_gtk.h" | 5 #include "chrome/browser/ui/gtk/theme_install_bubble_view_gtk.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "chrome/browser/gtk/gtk_util.h" | 10 #include "chrome/browser/ui/gtk/gtk_util.h" |
11 #include "chrome/browser/gtk/rounded_window.h" | 11 #include "chrome/browser/ui/gtk/rounded_window.h" |
12 #include "chrome/common/notification_service.h" | 12 #include "chrome/common/notification_service.h" |
13 #include "chrome/common/notification_type.h" | 13 #include "chrome/common/notification_type.h" |
14 #include "grit/generated_resources.h" | 14 #include "grit/generated_resources.h" |
15 | 15 |
16 // Roundedness of bubble. | 16 // Roundedness of bubble. |
17 static const int kBubbleCornerRadius = 4; | 17 static const int kBubbleCornerRadius = 4; |
18 | 18 |
19 // Padding between border of bubble and text. | 19 // Padding between border of bubble and text. |
20 static const int kTextPadding = 8; | 20 static const int kTextPadding = 8; |
21 | 21 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 0, M_PI_2); | 176 0, M_PI_2); |
177 cairo_arc(cr, inner_rect.x(), inner_rect.bottom(), inset, | 177 cairo_arc(cr, inner_rect.x(), inner_rect.bottom(), inset, |
178 M_PI_2, M_PI); | 178 M_PI_2, M_PI); |
179 | 179 |
180 cairo_set_source_rgba(cr, 0.0, 0.0, 0.0, kBubbleOpacity); | 180 cairo_set_source_rgba(cr, 0.0, 0.0, 0.0, kBubbleOpacity); |
181 cairo_fill(cr); | 181 cairo_fill(cr); |
182 cairo_destroy(cr); | 182 cairo_destroy(cr); |
183 | 183 |
184 return FALSE; | 184 return FALSE; |
185 } | 185 } |
OLD | NEW |