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

Unified Diff: chrome/browser/ui/libgtkui/skia_utils_gtk.h

Issue 2453243002: Gtk3 UI: Rename files in libgtkui containing gtk2 in their name (Closed)
Patch Set: Fix git cl format mistake Created 4 years, 2 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: chrome/browser/ui/libgtkui/skia_utils_gtk.h
diff --git a/chrome/browser/ui/libgtkui/skia_utils_gtk2.h b/chrome/browser/ui/libgtkui/skia_utils_gtk.h
similarity index 72%
rename from chrome/browser/ui/libgtkui/skia_utils_gtk2.h
rename to chrome/browser/ui/libgtkui/skia_utils_gtk.h
index df2d53ac093eddcfe51815053ea8d8b69eddb140..e05fbe9d8b2fe537a5eecbd3642dcc9eb848f3d7 100644
--- a/chrome/browser/ui/libgtkui/skia_utils_gtk2.h
+++ b/chrome/browser/ui/libgtkui/skia_utils_gtk.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_LIBGTKUI_SKIA_UTILS_GTK2_H_
-#define CHROME_BROWSER_UI_LIBGTKUI_SKIA_UTILS_GTK2_H_
+#ifndef CHROME_BROWSER_UI_LIBGTKUI_SKIA_UTILS_GTK_H_
+#define CHROME_BROWSER_UI_LIBGTKUI_SKIA_UTILS_GTK_H_
#include <stdint.h>
@@ -17,9 +17,13 @@ class SkBitmap;
// 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 * ::libgtkui::kSkiaToGDKMultiplier, \
- g * ::libgtkui::kSkiaToGDKMultiplier, \
- b * ::libgtkui::kSkiaToGDKMultiplier}
+#define GDK_COLOR_RGB(r, g, b) \
+ { \
+ 0, \
+ r * ::libgtkui::kSkiaToGDKMultiplier, \
+ g * ::libgtkui::kSkiaToGDKMultiplier, \
+ b * ::libgtkui::kSkiaToGDKMultiplier, \
+ }
namespace libgtkui {
@@ -41,4 +45,4 @@ GdkPixbuf* GdkPixbufFromSkBitmap(const SkBitmap& bitmap);
} // namespace libgtkui
-#endif // CHROME_BROWSER_UI_LIBGTKUI_SKIA_UTILS_GTK2_H_
+#endif // CHROME_BROWSER_UI_LIBGTKUI_SKIA_UTILS_GTK_H_
« no previous file with comments | « chrome/browser/ui/libgtkui/select_file_dialog_interactive_uitest.cc ('k') | chrome/browser/ui/libgtkui/skia_utils_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698