| 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" |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 case kColorId_ThrobberSpinningColor: | 410 case kColorId_ThrobberSpinningColor: |
| 411 case kColorId_ThrobberLightColor: { | 411 case kColorId_ThrobberLightColor: { |
| 412 return GetEntryStyle()->bg[GTK_STATE_SELECTED]; | 412 return GetEntryStyle()->bg[GTK_STATE_SELECTED]; |
| 413 } | 413 } |
| 414 | 414 |
| 415 case kColorId_ThrobberWaitingColor: { | 415 case kColorId_ThrobberWaitingColor: { |
| 416 return GdkAlphaBlend(GetEntryStyle()->bg[GTK_STATE_SELECTED], | 416 return GdkAlphaBlend(GetEntryStyle()->bg[GTK_STATE_SELECTED], |
| 417 GetWindowStyle()->bg[GTK_STATE_NORMAL], 0xff / 2); | 417 GetWindowStyle()->bg[GTK_STATE_NORMAL], 0xff / 2); |
| 418 } | 418 } |
| 419 | 419 |
| 420 case kColorId_ChromeIconGrey: |
| 420 case kColorId_NumColors: | 421 case kColorId_NumColors: |
| 421 NOTREACHED(); | 422 NOTREACHED(); |
| 422 break; | 423 break; |
| 423 } | 424 } |
| 424 | 425 |
| 425 return SkColorToGdkColor(kInvalidColorIdColor); | 426 return SkColorToGdkColor(kInvalidColorIdColor); |
| 426 } | 427 } |
| 427 | 428 |
| 428 GtkWidget* NativeThemeGtk2::GetRealizedWindow() const { | 429 GtkWidget* NativeThemeGtk2::GetRealizedWindow() const { |
| 429 if (!fake_window_) { | 430 if (!fake_window_) { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 0, 0, | 531 0, 0, |
| 531 rect.width(), rect.height()); | 532 rect.width(), rect.height()); |
| 532 SkBitmap arrow = GdkPixbufToImageSkia(pb); | 533 SkBitmap arrow = GdkPixbufToImageSkia(pb); |
| 533 canvas->drawBitmap(arrow, rect.x(), rect.y()); | 534 canvas->drawBitmap(arrow, rect.x(), rect.y()); |
| 534 | 535 |
| 535 g_object_unref(pb); | 536 g_object_unref(pb); |
| 536 g_object_unref(pm); | 537 g_object_unref(pm); |
| 537 } | 538 } |
| 538 | 539 |
| 539 } // namespace libgtk2ui | 540 } // namespace libgtk2ui |
| OLD | NEW |