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

Unified Diff: chrome/browser/ui/gtk/gtk_chrome_link_button.h

Issue 231733005: Delete the GTK+ port of Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remerge to ToT Created 6 years, 8 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/gtk/gtk_chrome_link_button.h
diff --git a/chrome/browser/ui/gtk/gtk_chrome_link_button.h b/chrome/browser/ui/gtk/gtk_chrome_link_button.h
deleted file mode 100644
index 1c38dd8a165fe11adb2c970c684611542cb969d2..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/gtk/gtk_chrome_link_button.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// Copyright (c) 2012 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.
-
-// Creates a link button that shows |text| in blue and underlined. The cursor
-// changes to a hand when over the link. This is like the GTK LinkButton, but
-// it doesn't call the global URI link handler, etc. It is a button subclass,
-// so you can just handle the clicked signal.
-
-#ifndef CHROME_BROWSER_UI_GTK_GTK_CHROME_LINK_BUTTON_H_
-#define CHROME_BROWSER_UI_GTK_GTK_CHROME_LINK_BUTTON_H_
-
-#include <gdk/gdk.h>
-#include <gtk/gtk.h>
-
-G_BEGIN_DECLS
-
-#define GTK_TYPE_CHROME_LINK_BUTTON (gtk_chrome_link_button_get_type ())
-#define GTK_CHROME_LINK_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
- GTK_TYPE_CHROME_LINK_BUTTON, \
- GtkChromeLinkButton))
-#define GTK_CHROME_LINK_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \
- GTK_TYPE_CHROME_LINK_BUTTON, \
- GtkChromeLinkButtonClass))
-#define GTK_IS_CHROME_LINK_BUTTON(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_CHROME_LINK_BUTTON))
-#define GTK_IS_CHROME_LINK_BUTTON_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_CHROME_LINK_BUTTON))
-#define GTK_CHROME_LINK_BUTTON_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_CHROME_LINK_BUTTON, \
- GtkChromeLinkButton))
-
-typedef struct _GtkChromeLinkButton GtkChromeLinkButton;
-typedef struct _GtkChromeLinkButtonClass GtkChromeLinkButtonClass;
-
-struct _GtkChromeLinkButton {
- GtkButton button;
- GtkWidget* label;
- gchar* normal_markup;
- gchar* pressed_markup;
- gchar* insensitive_markup;
- GtkStateType label_state;
- gchar normal_color[9];
- gchar* native_markup;
- gchar* insensitive_native_markup;
- gboolean using_native_theme;
- GdkCursor* hand_cursor;
- gchar* text;
- gboolean uses_markup;
-};
-
-struct _GtkChromeLinkButtonClass {
- GtkButtonClass parent_class;
-};
-
-// Make a link button with display text |text|.
-GtkWidget* gtk_chrome_link_button_new(const char* text);
-
-// As above, but don't escape markup in the text.
-GtkWidget* gtk_chrome_link_button_new_with_markup(const char* markup);
-
-// Set whether the link button draws natively (using "link-color"). The default
-// is TRUE.
-void gtk_chrome_link_button_set_use_gtk_theme(GtkChromeLinkButton* button,
- gboolean use_gtk);
-
-// Set the label text of the link.
-void gtk_chrome_link_button_set_label(GtkChromeLinkButton* button,
- const char* text);
-
-// Set the color when the link is in a normal state (i.e. not pressed).
-// If not set, or called NULL |color|, the color will be blue.
-void gtk_chrome_link_button_set_normal_color(GtkChromeLinkButton* button,
- const GdkColor* color);
-
-GType gtk_chrome_link_button_get_type();
-
-G_END_DECLS
-
-#endif // CHROME_BROWSER_UI_GTK_GTK_CHROME_LINK_BUTTON_H_

Powered by Google App Engine
This is Rietveld 408576698