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

Unified Diff: chrome/views/label.cc

Issue 18757: Porting in chrome/views/ (Closed)
Patch Set: sync with trunk Created 11 years, 11 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/views/label.h ('k') | chrome/views/native_scroll_bar.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/label.cc
diff --git a/chrome/views/label.cc b/chrome/views/label.cc
index fc1e9d3178741ae5ccdc5f642a2bf749bd427589..46989fb1b6027d19f6fb04d71423dc4897b6fe2f 100644
--- a/chrome/views/label.cc
+++ b/chrome/views/label.cc
@@ -188,7 +188,7 @@ const GURL Label::GetURL() const {
if (url_set_)
return url_;
else
- return GURL(text_);
+ return GURL(WideToUTF8(text_));
}
gfx::Size Label::GetTextSize() {
@@ -372,6 +372,7 @@ void Label::SizeToFit(int max_width) {
SizeToPreferredSize();
}
+#if defined(OS_WIN)
bool Label::GetAccessibleRole(VARIANT* role) {
DCHECK(role);
@@ -391,5 +392,6 @@ bool Label::GetAccessibleState(VARIANT* state) {
state->lVal |= STATE_SYSTEM_READONLY;
return true;
}
+#endif // defined(OS_WIN)
} // namespace views
« no previous file with comments | « chrome/views/label.h ('k') | chrome/views/native_scroll_bar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698