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

Unified Diff: gfx/insets.h

Issue 6249022: Make the gtk download shelf autoclose on mouse out. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: explicit Created 9 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
Index: gfx/insets.h
diff --git a/gfx/insets.h b/gfx/insets.h
index ba6cb583f45e1a4b8e367c178faa26fefc87e10b..081def19744caf675488c144e755ecfa672561fc 100644
--- a/gfx/insets.h
+++ b/gfx/insets.h
@@ -29,6 +29,16 @@ class Insets {
left_(left),
bottom_(bottom),
right_(right) {}
+ Insets(int top_bottom, int left_right)
+ : top_(top_bottom),
+ left_(left_right),
+ bottom_(top_bottom),
+ right_(left_right) {}
+ explicit Insets(int inset)
+ : top_(inset),
+ left_(inset),
+ bottom_(inset),
+ right_(inset) {}
#if defined(OS_POSIX) && !defined(OS_MACOSX)
explicit Insets(const GtkBorder& border)
: top_(border.top),

Powered by Google App Engine
This is Rietveld 408576698