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

Side by Side 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: comments Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GFX_INSETS_H_ 5 #ifndef GFX_INSETS_H_
6 #define GFX_INSETS_H_ 6 #define GFX_INSETS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 11 matching lines...) Expand all
22 // 22 //
23 23
24 class Insets { 24 class Insets {
25 public: 25 public:
26 Insets() : top_(0), left_(0), bottom_(0), right_(0) {} 26 Insets() : top_(0), left_(0), bottom_(0), right_(0) {}
27 Insets(int top, int left, int bottom, int right) 27 Insets(int top, int left, int bottom, int right)
28 : top_(top), 28 : top_(top),
29 left_(left), 29 left_(left),
30 bottom_(bottom), 30 bottom_(bottom),
31 right_(right) {} 31 right_(right) {}
32 Insets(int top_bottom, int left_right)
sky 2011/01/31 17:14:04 Are you even using the two constructors you're add
Evan Stade 2011/01/31 18:59:49 well I did at first, but then I changed my mind. I
sky 2011/01/31 20:36:25 Given that no one is using them, I say nuke them.
33 : top_(top_bottom),
34 left_(left_right),
35 bottom_(top_bottom),
36 right_(left_right) {}
37 Insets(int inset)
sky 2011/01/31 17:14:04 explicit
Evan Stade 2011/01/31 18:59:49 Done.
38 : top_(inset),
39 left_(inset),
40 bottom_(inset),
41 right_(inset) {}
32 #if defined(OS_POSIX) && !defined(OS_MACOSX) 42 #if defined(OS_POSIX) && !defined(OS_MACOSX)
33 explicit Insets(const GtkBorder& border) 43 explicit Insets(const GtkBorder& border)
34 : top_(border.top), 44 : top_(border.top),
35 left_(border.left), 45 left_(border.left),
36 bottom_(border.bottom), 46 bottom_(border.bottom),
37 right_(border.right) {} 47 right_(border.right) {}
38 #endif 48 #endif
39 49
40 ~Insets() {} 50 ~Insets() {}
41 51
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 private: 95 private:
86 int top_; 96 int top_;
87 int left_; 97 int left_;
88 int bottom_; 98 int bottom_;
89 int right_; 99 int right_;
90 }; 100 };
91 101
92 } // namespace gfx 102 } // namespace gfx
93 103
94 #endif // GFX_INSETS_H_ 104 #endif // GFX_INSETS_H_
OLDNEW
« chrome/browser/ui/gtk/download_shelf_gtk.cc ('K') | « chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698