| 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/gtk_theme_service.h" | 5 #include "chrome/browser/ui/gtk/gtk_theme_service.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 } | 664 } |
| 665 | 665 |
| 666 for (std::map<GtkWidget*, GdkColor>::iterator it = labels_.begin(); | 666 for (std::map<GtkWidget*, GdkColor>::iterator it = labels_.begin(); |
| 667 it != labels_.end(); ++it) { | 667 it != labels_.end(); ++it) { |
| 668 const GdkColor* color = use_gtk_ ? NULL : &it->second; | 668 const GdkColor* color = use_gtk_ ? NULL : &it->second; |
| 669 gtk_util::SetLabelColor(it->first, color); | 669 gtk_util::SetLabelColor(it->first, color); |
| 670 } | 670 } |
| 671 | 671 |
| 672 Browser* browser = BrowserList::GetLastActive(); | 672 Browser* browser = BrowserList::GetLastActive(); |
| 673 if (browser && browser->window()) { | 673 if (browser && browser->window()) { |
| 674 GtkWindow* window = browser->window()->GetNativeHandle(); | 674 GtkWindow* window = browser->window()->GetNativeWindow(); |
| 675 gtk_util::SetDefaultWindowIcon(window); | 675 gtk_util::SetDefaultWindowIcon(window); |
| 676 gtk_util::SetWindowIcon(window, browser->profile()); | 676 gtk_util::SetWindowIcon(window, browser->profile()); |
| 677 } | 677 } |
| 678 } | 678 } |
| 679 | 679 |
| 680 void GtkThemeService::FreePlatformCaches() { | 680 void GtkThemeService::FreePlatformCaches() { |
| 681 ThemeService::FreePlatformCaches(); | 681 ThemeService::FreePlatformCaches(); |
| 682 STLDeleteValues(>k_images_); | 682 STLDeleteValues(>k_images_); |
| 683 } | 683 } |
| 684 | 684 |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1150 cairo_new_path(cr); | 1150 cairo_new_path(cr); |
| 1151 cairo_set_line_width(cr, 1.0); | 1151 cairo_set_line_width(cr, 1.0); |
| 1152 cairo_move_to(cr, start_x, allocation.y); | 1152 cairo_move_to(cr, start_x, allocation.y); |
| 1153 cairo_line_to(cr, start_x, allocation.y + allocation.height); | 1153 cairo_line_to(cr, start_x, allocation.y + allocation.height); |
| 1154 cairo_stroke(cr); | 1154 cairo_stroke(cr); |
| 1155 cairo_destroy(cr); | 1155 cairo_destroy(cr); |
| 1156 cairo_pattern_destroy(pattern); | 1156 cairo_pattern_destroy(pattern); |
| 1157 | 1157 |
| 1158 return TRUE; | 1158 return TRUE; |
| 1159 } | 1159 } |
| OLD | NEW |