| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/libgtk2ui/native_theme_gtk2.h" | 5 #include "chrome/browser/ui/libgtk2ui/native_theme_gtk2.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 #include "chrome/browser/ui/libgtk2ui/chrome_gtk_menu_subclasses.h" | 9 #include "chrome/browser/ui/libgtk2ui/chrome_gtk_menu_subclasses.h" |
| 10 #include "chrome/browser/ui/libgtk2ui/gtk2_ui.h" | 10 #include "chrome/browser/ui/libgtk2ui/gtk2_ui.h" |
| 11 #include "chrome/browser/ui/libgtk2ui/gtk2_util.h" | 11 #include "chrome/browser/ui/libgtk2ui/gtk2_util.h" |
| 12 #include "chrome/browser/ui/libgtk2ui/skia_utils_gtk2.h" | 12 #include "chrome/browser/ui/libgtk2ui/skia_utils_gtk2.h" |
| 13 #include "ui/gfx/color_utils.h" | 13 #include "ui/gfx/color_utils.h" |
| 14 #include "ui/gfx/geometry/rect.h" | 14 #include "ui/gfx/geometry/rect.h" |
| 15 #include "ui/gfx/geometry/size.h" |
| 15 #include "ui/gfx/path.h" | 16 #include "ui/gfx/path.h" |
| 16 #include "ui/gfx/size.h" | |
| 17 #include "ui/gfx/skia_util.h" | 17 #include "ui/gfx/skia_util.h" |
| 18 #include "ui/native_theme/common_theme.h" | 18 #include "ui/native_theme/common_theme.h" |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 // Theme colors returned by GetSystemColor(). | 22 // Theme colors returned by GetSystemColor(). |
| 23 const SkColor kInvalidColorIdColor = SkColorSetRGB(255, 0, 128); | 23 const SkColor kInvalidColorIdColor = SkColorSetRGB(255, 0, 128); |
| 24 | 24 |
| 25 const GdkColor kURLTextColor = GDK_COLOR_RGB(0x00, 0x88, 0x00); | 25 const GdkColor kURLTextColor = GDK_COLOR_RGB(0x00, 0x88, 0x00); |
| 26 | 26 |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 0, 0, | 486 0, 0, |
| 487 rect.width(), rect.height()); | 487 rect.width(), rect.height()); |
| 488 SkBitmap arrow = GdkPixbufToImageSkia(pb); | 488 SkBitmap arrow = GdkPixbufToImageSkia(pb); |
| 489 canvas->drawBitmap(arrow, rect.x(), rect.y()); | 489 canvas->drawBitmap(arrow, rect.x(), rect.y()); |
| 490 | 490 |
| 491 g_object_unref(pb); | 491 g_object_unref(pb); |
| 492 g_object_unref(pm); | 492 g_object_unref(pm); |
| 493 } | 493 } |
| 494 | 494 |
| 495 } // namespace libgtk2ui | 495 } // namespace libgtk2ui |
| OLD | NEW |