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

Side by Side Diff: chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc

Issue 10756018: Merge grd files in ui/resources and chrome/app/theme (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, *_standard.rc Created 8 years, 5 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
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/tabs/tab_renderer_gtk.h" 5 #include "chrome/browser/ui/gtk/tabs/tab_renderer_gtk.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/defaults.h" 12 #include "chrome/browser/defaults.h"
13 #include "chrome/browser/extensions/extension_tab_helper.h" 13 #include "chrome/browser/extensions/extension_tab_helper.h"
14 #include "chrome/browser/favicon/favicon_tab_helper.h" 14 #include "chrome/browser/favicon/favicon_tab_helper.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/ui/browser.h" 16 #include "chrome/browser/ui/browser.h"
17 #include "chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.h" 17 #include "chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.h"
18 #include "chrome/browser/ui/gtk/custom_button.h" 18 #include "chrome/browser/ui/gtk/custom_button.h"
19 #include "chrome/browser/ui/gtk/gtk_theme_service.h" 19 #include "chrome/browser/ui/gtk/gtk_theme_service.h"
20 #include "chrome/browser/ui/gtk/gtk_util.h" 20 #include "chrome/browser/ui/gtk/gtk_util.h"
21 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" 21 #include "chrome/browser/ui/tab_contents/core_tab_helper.h"
22 #include "chrome/browser/ui/tab_contents/tab_contents.h" 22 #include "chrome/browser/ui/tab_contents/tab_contents.h"
23 #include "chrome/common/chrome_notification_types.h" 23 #include "chrome/common/chrome_notification_types.h"
24 #include "content/public/browser/notification_source.h" 24 #include "content/public/browser/notification_source.h"
25 #include "content/public/browser/web_contents.h" 25 #include "content/public/browser/web_contents.h"
26 #include "grit/generated_resources.h" 26 #include "grit/generated_resources.h"
27 #include "grit/theme_resources.h" 27 #include "grit/theme_resources.h"
28 #include "grit/theme_resources_standard.h"
29 #include "grit/ui_resources.h" 28 #include "grit/ui_resources.h"
30 #include "grit/ui_resources_standard.h"
31 #include "skia/ext/image_operations.h" 29 #include "skia/ext/image_operations.h"
32 #include "ui/base/animation/slide_animation.h" 30 #include "ui/base/animation/slide_animation.h"
33 #include "ui/base/animation/throb_animation.h" 31 #include "ui/base/animation/throb_animation.h"
34 #include "ui/base/gtk/gtk_compat.h" 32 #include "ui/base/gtk/gtk_compat.h"
35 #include "ui/base/gtk/gtk_screen_util.h" 33 #include "ui/base/gtk/gtk_screen_util.h"
36 #include "ui/base/l10n/l10n_util.h" 34 #include "ui/base/l10n/l10n_util.h"
37 #include "ui/base/resource/resource_bundle.h" 35 #include "ui/base/resource/resource_bundle.h"
38 #include "ui/gfx/canvas_skia_paint.h" 36 #include "ui/gfx/canvas_skia_paint.h"
39 #include "ui/gfx/favicon_size.h" 37 #include "ui/gfx/favicon_size.h"
40 #include "ui/gfx/gtk_util.h" 38 #include "ui/gfx/gtk_util.h"
(...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 GdkPixbuf* tab_close = rb.GetNativeImageNamed(IDR_TAB_CLOSE).ToGdkPixbuf(); 1120 GdkPixbuf* tab_close = rb.GetNativeImageNamed(IDR_TAB_CLOSE).ToGdkPixbuf();
1123 close_button_width_ = gdk_pixbuf_get_width(tab_close); 1121 close_button_width_ = gdk_pixbuf_get_width(tab_close);
1124 close_button_height_ = gdk_pixbuf_get_height(tab_close); 1122 close_button_height_ = gdk_pixbuf_get_height(tab_close);
1125 1123
1126 const gfx::Font& base_font = rb.GetFont(ui::ResourceBundle::BaseFont); 1124 const gfx::Font& base_font = rb.GetFont(ui::ResourceBundle::BaseFont);
1127 title_font_ = new gfx::Font(base_font.GetFontName(), kFontPixelSize); 1125 title_font_ = new gfx::Font(base_font.GetFontName(), kFontPixelSize);
1128 title_font_height_ = title_font_->GetHeight(); 1126 title_font_height_ = title_font_->GetHeight();
1129 1127
1130 initialized_ = true; 1128 initialized_ = true;
1131 } 1129 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/speech_recognition_bubble_gtk.cc ('k') | chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698