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

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

Issue 7640004: Gtk: Make click target of tabs match their appearance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: single space after period Created 9 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/gtk_input_event_box.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/gtk_input_event_box.h
diff --git a/chrome/browser/ui/gtk/gtk_input_event_box.h b/chrome/browser/ui/gtk/gtk_input_event_box.h
new file mode 100644
index 0000000000000000000000000000000000000000..365dbb68de59c2d661cf92cc999cf6be0392e2b0
--- /dev/null
+++ b/chrome/browser/ui/gtk/gtk_input_event_box.h
@@ -0,0 +1,57 @@
+// 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.
+
+#ifndef CHROME_BROWSER_UI_GTK_GTK_INPUT_EVENT_BOX_H_
+#define CHROME_BROWSER_UI_GTK_GTK_INPUT_EVENT_BOX_H_
+#pragma once
+
+#include <gdk/gdk.h>
+#include <gtk/gtk.h>
+
+// GtkInputEventBox is like GtkEventBox, but with the following differences:
+// 1. Only supports input (like gtk_event_box_set_visible_window(foo, FALSE).
+// 2. Provides a method to get the GdkWindow (gtk_input_event_box_get_window).
+// (The GdkWindow created by GtkEventBox cannot be retrieved unless you use it
+// in visible mode.)
+
+G_BEGIN_DECLS
+
+#define GTK_TYPE_INPUT_EVENT_BOX \
+ (gtk_input_event_box_get_type())
+#define GTK_INPUT_EVENT_BOX(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_INPUT_EVENT_BOX, \
+ GtkInputEventBox))
+#define GTK_INPUT_EVENT_BOX_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_INPUT_EVENT_BOX, \
+ GtkInputEventBoxClass))
+#define GTK_IS_INPUT_EVENT_BOX(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_INPUT_EVENT_BOX))
+#define GTK_IS_INPUT_EVENT_BOX_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_INPUT_EVENT_BOX))
+#define GTK_INPUT_EVENT_BOX_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_INPUT_EVENT_BOX, \
+ GtkInputEventBoxClass))
+
+typedef struct _GtkInputEventBox GtkInputEventBox;
+typedef struct _GtkInputEventBoxClass GtkInputEventBoxClass;
+
+struct _GtkInputEventBox {
+ // Parent class.
+ GtkBin bin;
+};
+
+struct _GtkInputEventBoxClass {
+ GtkBinClass parent_class;
+};
+
+GType gtk_input_event_box_get_type();
+GtkWidget* gtk_input_event_box_new();
+
+// Get the GdkWindow |widget| uses for handling input events. Will be NULL if
+// the widget has not been realized yet.
+GdkWindow* gtk_input_event_box_get_window(GtkInputEventBox* widget);
+
+G_END_DECLS
+
+#endif // CHROME_BROWSER_UI_GTK_GTK_INPUT_EVENT_BOX_H_
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/gtk_input_event_box.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698