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

Unified Diff: base/gfx/size.cc

Issue 506069: [Mac] Port browser action popup test to mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years 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 | « base/gfx/size.h ('k') | chrome/browser/cocoa/extensions/extension_popup_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/gfx/size.cc
===================================================================
--- base/gfx/size.cc (revision 34954)
+++ base/gfx/size.cc (working copy)
@@ -21,6 +21,19 @@
set_height(height);
}
+#if defined(OS_MACOSX)
+Size::Size(const CGSize& s) {
+ set_width(s.width);
+ set_height(s.height);
+}
+
+Size& Size::operator=(const CGSize& s) {
+ set_width(s.width);
+ set_height(s.height);
+ return *this;
+}
+#endif
+
#if defined(OS_WIN)
SIZE Size::ToSIZE() const {
SIZE s;
« no previous file with comments | « base/gfx/size.h ('k') | chrome/browser/cocoa/extensions/extension_popup_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698