| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ | 6 #define CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 DownloadItemGtk* download_item); | 104 DownloadItemGtk* download_item); |
| 105 | 105 |
| 106 static gboolean OnMenuButtonPressEvent(GtkWidget* button, | 106 static gboolean OnMenuButtonPressEvent(GtkWidget* button, |
| 107 GdkEvent* event, | 107 GdkEvent* event, |
| 108 DownloadItemGtk* item); | 108 DownloadItemGtk* item); |
| 109 | 109 |
| 110 static void OnShelfResized(GtkWidget *widget, | 110 static void OnShelfResized(GtkWidget *widget, |
| 111 GtkAllocation *allocation, | 111 GtkAllocation *allocation, |
| 112 DownloadItemGtk* item); | 112 DownloadItemGtk* item); |
| 113 | 113 |
| 114 static void OnDragDataGet(GtkWidget* widget, GdkDragContext* context, |
| 115 GtkSelectionData* selection_data, |
| 116 guint target_type, guint time, |
| 117 DownloadItemGtk* item); |
| 118 |
| 114 // Dangerous download related. ----------------------------------------------- | 119 // Dangerous download related. ----------------------------------------------- |
| 115 static gboolean OnDangerousPromptExpose(GtkWidget* widget, | 120 static gboolean OnDangerousPromptExpose(GtkWidget* widget, |
| 116 GdkEventExpose* event, | 121 GdkEventExpose* event, |
| 117 DownloadItemGtk* item); | 122 DownloadItemGtk* item); |
| 118 | 123 |
| 119 static void OnDangerousAccept(GtkWidget* button, DownloadItemGtk* item); | 124 static void OnDangerousAccept(GtkWidget* button, DownloadItemGtk* item); |
| 120 static void OnDangerousDecline(GtkWidget* button, DownloadItemGtk* item); | 125 static void OnDangerousDecline(GtkWidget* button, DownloadItemGtk* item); |
| 121 | 126 |
| 122 // Nineboxes for the body area. | 127 // Nineboxes for the body area. |
| 123 static NineBox* body_nine_box_normal_; | 128 static NineBox* body_nine_box_normal_; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 NotificationRegistrar registrar_; | 216 NotificationRegistrar registrar_; |
| 212 | 217 |
| 213 // The time at which we were insantiated. | 218 // The time at which we were insantiated. |
| 214 base::Time creation_time_; | 219 base::Time creation_time_; |
| 215 | 220 |
| 216 // For canceling an in progress icon request. | 221 // For canceling an in progress icon request. |
| 217 CancelableRequestConsumerT<int, 0> icon_consumer_; | 222 CancelableRequestConsumerT<int, 0> icon_consumer_; |
| 218 }; | 223 }; |
| 219 | 224 |
| 220 #endif // CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ | 225 #endif // CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ |
| OLD | NEW |