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

Unified Diff: chrome/browser/views/tabs/tab_2.cc

Issue 155184: Fix the Views-GTK build by adding necessary tab_strip_2 files and fixing some compilation errors. (Closed)
Patch Set: Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/views/frame/browser_frame_gtk.cc ('k') | chrome/browser/views/tabs/tab_strip_2.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/tabs/tab_2.cc
diff --git a/chrome/browser/views/tabs/tab_2.cc b/chrome/browser/views/tabs/tab_2.cc
index a541f3a3e201889c81fa76efe1a0a00dfd6b9cd6..648d317c3a0ac466d7bbdbc3e40db46863d55da7 100644
--- a/chrome/browser/views/tabs/tab_2.cc
+++ b/chrome/browser/views/tabs/tab_2.cc
@@ -7,6 +7,7 @@
#include "app/gfx/canvas.h"
#include "app/gfx/font.h"
#include "app/gfx/path.h"
+#include "base/string_util.h"
#include "views/animator.h"
static const SkScalar kTabCapWidth = 15;
@@ -90,8 +91,8 @@ void Tab2::Paint(gfx::Canvas* canvas) {
canvas->drawPath(path, paint);
// TODO(beng): less ad-hoc
- canvas->DrawStringInt(model_->GetTitle(this), gfx::Font(), SK_ColorBLACK,
- 5, 3, 100, 20);
+ canvas->DrawStringInt(UTF16ToWideHack(model_->GetTitle(this)), gfx::Font(),
+ SK_ColorBLACK, 5, 3, 100, 20);
}
bool Tab2::OnMousePressed(const views::MouseEvent& event) {
« no previous file with comments | « chrome/browser/views/frame/browser_frame_gtk.cc ('k') | chrome/browser/views/tabs/tab_strip_2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698