diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/base/gtk/gtk_hig_constants.cc | 16 | ||||
-rw-r--r-- | ui/base/gtk/gtk_hig_constants.h | 17 | ||||
-rw-r--r-- | ui/ui.gyp | 1 |
3 files changed, 8 insertions, 26 deletions
diff --git a/ui/base/gtk/gtk_hig_constants.cc b/ui/base/gtk/gtk_hig_constants.cc deleted file mode 100644 index f9d0280c..0000000 --- a/ui/base/gtk/gtk_hig_constants.cc +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "ui/base/gtk/gtk_hig_constants.h" - -#include <gdk/gdk.h> - -namespace ui { - -const GdkColor kGdkWhite = GDK_COLOR_RGB(0xff, 0xff, 0xff); -const GdkColor kGdkGray = GDK_COLOR_RGB(0x7f, 0x7f, 0x7f); -const GdkColor kGdkBlack = GDK_COLOR_RGB(0x00, 0x00, 0x00); -const GdkColor kGdkGreen = GDK_COLOR_RGB(0x00, 0xff, 0x00); - -} // namespace ui diff --git a/ui/base/gtk/gtk_hig_constants.h b/ui/base/gtk/gtk_hig_constants.h index d868b2a..96694c4 100644 --- a/ui/base/gtk/gtk_hig_constants.h +++ b/ui/base/gtk/gtk_hig_constants.h @@ -15,16 +15,20 @@ typedef struct _GdkColor GdkColor; +// Define a macro for creating GdkColors from RGB values. This is a macro to +// allow static construction of literals, etc. Use this like: +// GdkColor white = GDK_COLOR_RGB(0xff, 0xff, 0xff); +#define GDK_COLOR_RGB(r, g, b) {0, r * ::ui::kSkiaToGDKMultiplier, \ + g * ::ui::kSkiaToGDKMultiplier, b * ::ui::kSkiaToGDKMultiplier} + namespace ui { // Multiply uint8 color components by this. const int kSkiaToGDKMultiplier = 257; // Named color constants. -UI_EXPORT extern const GdkColor kGdkWhite; -UI_EXPORT extern const GdkColor kGdkGray; -UI_EXPORT extern const GdkColor kGdkBlack; -UI_EXPORT extern const GdkColor kGdkGreen; +const GdkColor kGdkWhite = GDK_COLOR_RGB(0xff, 0xff, 0xff); +const GdkColor kGdkBlack = GDK_COLOR_RGB(0x00, 0x00, 0x00); // Constants relating to the layout of dialog windows: // (See http://library.gnome.org/devel/hig-book/stable/design-window.html.en) @@ -49,10 +53,5 @@ const int kFormControlSpacing = 10; } // namespace ui -// Define a macro for creating GdkColors from RGB values. This is a macro to -// allow static construction of literals, etc. Use this like: -// GdkColor white = GDK_COLOR_RGB(0xff, 0xff, 0xff); -#define GDK_COLOR_RGB(r, g, b) {0, r * ::ui::kSkiaToGDKMultiplier, \ - g * ::ui::kSkiaToGDKMultiplier, b * ::ui::kSkiaToGDKMultiplier} #endif // UI_BASE_GTK_GTK_HIG_CONSTANTS_H_ @@ -112,7 +112,6 @@ 'base/gtk/gtk_floating_container.h', 'base/gtk/gtk_im_context_util.cc', 'base/gtk/gtk_im_context_util.h', - 'base/gtk/gtk_hig_constants.cc', 'base/gtk/gtk_hig_constants.h', 'base/gtk/gtk_signal.h', 'base/gtk/gtk_signal_registrar.cc', |