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

Side by Side Diff: ui/gfx/insets.h

Issue 7328011: Introduce ui.dll / libui.so for the component build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 UI_GFX_INSETS_H_ 5 #ifndef UI_GFX_INSETS_H_
6 #define UI_GFX_INSETS_H_ 6 #define UI_GFX_INSETS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string>
10
9 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "ui/ui_api.h"
10 13
11 #if defined(OS_POSIX) && !defined(OS_MACOSX) 14 #if defined(OS_POSIX) && !defined(OS_MACOSX)
12 #include <gtk/gtkstyle.h> 15 #include <gtk/gtkstyle.h>
13 #endif 16 #endif
14 17
15 #include <string>
16
17 namespace gfx { 18 namespace gfx {
18 19
19 // 20 //
20 // An insets represents the borders of a container (the space the container must 21 // An insets represents the borders of a container (the space the container must
21 // leave at each of its edges). 22 // leave at each of its edges).
22 // 23 //
23 24
24 class Insets { 25 class UI_API Insets {
25 public: 26 public:
26 Insets() : top_(0), left_(0), bottom_(0), right_(0) {} 27 Insets() : top_(0), left_(0), bottom_(0), right_(0) {}
27 Insets(int top, int left, int bottom, int right) 28 Insets(int top, int left, int bottom, int right)
28 : top_(top), 29 : top_(top),
29 left_(left), 30 left_(left),
30 bottom_(bottom), 31 bottom_(bottom),
31 right_(right) {} 32 right_(right) {}
32 #if defined(OS_POSIX) && !defined(OS_MACOSX) 33 #if defined(OS_POSIX) && !defined(OS_MACOSX)
33 explicit Insets(const GtkBorder& border) 34 explicit Insets(const GtkBorder& border)
34 : top_(border.top), 35 : top_(border.top),
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 private: 86 private:
86 int top_; 87 int top_;
87 int left_; 88 int left_;
88 int bottom_; 89 int bottom_;
89 int right_; 90 int right_;
90 }; 91 };
91 92
92 } // namespace gfx 93 } // namespace gfx
93 94
94 #endif // UI_GFX_INSETS_H_ 95 #endif // UI_GFX_INSETS_H_
OLDNEW
« no previous file with comments | « ui/gfx/image/image_util.h ('k') | ui/gfx/interpolated_transform.h » ('j') | ui/ui.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698