| 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_BOOKMARK_BAR_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_BOOKMARK_BAR_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_BOOKMARK_BAR_GTK_H_ | 6 #define CHROME_BROWSER_GTK_BOOKMARK_BAR_GTK_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 static void OnButtonDragGet(GtkWidget* widget, GdkDragContext* context, | 221 static void OnButtonDragGet(GtkWidget* widget, GdkDragContext* context, |
| 222 GtkSelectionData* selection_data, | 222 GtkSelectionData* selection_data, |
| 223 guint target_type, guint time, | 223 guint target_type, guint time, |
| 224 BookmarkBarGtk* bar); | 224 BookmarkBarGtk* bar); |
| 225 | 225 |
| 226 // GtkButton callbacks for folder buttons. | 226 // GtkButton callbacks for folder buttons. |
| 227 static void OnFolderClicked(GtkWidget* sender, | 227 static void OnFolderClicked(GtkWidget* sender, |
| 228 BookmarkBarGtk* bar); | 228 BookmarkBarGtk* bar); |
| 229 | 229 |
| 230 // GtkToolbar callbacks. | 230 // GtkToolbar callbacks. |
| 231 static gboolean OnToolbarExpose(GtkWidget* widget, GdkEventExpose* event, | |
| 232 BookmarkBarGtk* window); | |
| 233 static gboolean OnToolbarDragMotion(GtkToolbar* toolbar, | 231 static gboolean OnToolbarDragMotion(GtkToolbar* toolbar, |
| 234 GdkDragContext* context, | 232 GdkDragContext* context, |
| 235 gint x, | 233 gint x, |
| 236 gint y, | 234 gint y, |
| 237 guint time, | 235 guint time, |
| 238 BookmarkBarGtk* bar); | 236 BookmarkBarGtk* bar); |
| 239 static void OnToolbarDragLeave(GtkToolbar* toolbar, | 237 static void OnToolbarDragLeave(GtkToolbar* toolbar, |
| 240 GdkDragContext* context, | 238 GdkDragContext* context, |
| 241 guint time, | 239 guint time, |
| 242 BookmarkBarGtk* bar); | 240 BookmarkBarGtk* bar); |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 | 361 |
| 364 // The size of the tab contents last time we forced a paint. We keep track | 362 // The size of the tab contents last time we forced a paint. We keep track |
| 365 // of this so we don't force too many paints. | 363 // of this so we don't force too many paints. |
| 366 gfx::Size last_tab_contents_size_; | 364 gfx::Size last_tab_contents_size_; |
| 367 | 365 |
| 368 // We post delayed paints using this factory. | 366 // We post delayed paints using this factory. |
| 369 ScopedRunnableMethodFactory<BookmarkBarGtk> event_box_paint_factory_; | 367 ScopedRunnableMethodFactory<BookmarkBarGtk> event_box_paint_factory_; |
| 370 }; | 368 }; |
| 371 | 369 |
| 372 #endif // CHROME_BROWSER_GTK_BOOKMARK_BAR_GTK_H_ | 370 #endif // CHROME_BROWSER_GTK_BOOKMARK_BAR_GTK_H_ |
| OLD | NEW |