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

Unified Diff: chrome/browser/views/star_toggle.cc

Issue 7344: Convert GetPreferredSize from:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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
Index: chrome/browser/views/star_toggle.cc
===================================================================
--- chrome/browser/views/star_toggle.cc (revision 3391)
+++ chrome/browser/views/star_toggle.cc (working copy)
@@ -40,9 +40,8 @@
(height() - state_off_->height()) / 2);
}
-void StarToggle::GetPreferredSize(CSize* out) {
- out->cx = state_off_->width();
- out->cy = state_off_->height();
+gfx::Size StarToggle::GetPreferredSize() {
+ return gfx::Size(state_off_->width(), state_off_->height());
}
bool StarToggle::OnMouseDragged(const ChromeViews::MouseEvent& e) {

Powered by Google App Engine
This is Rietveld 408576698