Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(775)

Side by Side Diff: chrome/browser/ui/gtk/gtk_theme_service.cc

Issue 10538039: Renamed BrowserWindow::GetNativeHandle() to GetNativeWindow() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update copyrights Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/gtk/global_error_bubble.cc ('k') | chrome/browser/ui/gtk/gtk_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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(&gtk_images_); 682 STLDeleteValues(&gtk_images_);
683 } 683 }
684 684
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/global_error_bubble.cc ('k') | chrome/browser/ui/gtk/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698