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

Unified Diff: chrome/browser/ui/gtk/download/download_item_gtk.cc

Issue 8800029: GTK: Add TRACE_EVENTs around gtk ui events. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase again for ANOTHER conflict Created 9 years 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 | « chrome/browser/ui/gtk/custom_button.cc ('k') | chrome/browser/ui/gtk/find_bar_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/download/download_item_gtk.cc
diff --git a/chrome/browser/ui/gtk/download/download_item_gtk.cc b/chrome/browser/ui/gtk/download/download_item_gtk.cc
index 51c2349e72173e3fe6f74d548d95fde5b246392d..255bd88dfb5adc1b82067b6bf7dc934d4a0779e6 100644
--- a/chrome/browser/ui/gtk/download/download_item_gtk.cc
+++ b/chrome/browser/ui/gtk/download/download_item_gtk.cc
@@ -6,6 +6,7 @@
#include "base/basictypes.h"
#include "base/callback.h"
+#include "base/debug/trace_event.h"
#include "base/metrics/histogram.h"
#include "base/string_util.h"
#include "base/time.h"
@@ -699,6 +700,7 @@ void DownloadItemGtk::InitNineBoxes() {
}
gboolean DownloadItemGtk::OnHboxExpose(GtkWidget* widget, GdkEventExpose* e) {
+ TRACE_EVENT0("ui::gtk", "DownloadItemGtk::OnHboxExpose");
if (theme_service_->UsingNativeTheme()) {
GtkAllocation allocation;
gtk_widget_get_allocation(widget, &allocation);
@@ -765,6 +767,7 @@ gboolean DownloadItemGtk::OnHboxExpose(GtkWidget* widget, GdkEventExpose* e) {
}
gboolean DownloadItemGtk::OnExpose(GtkWidget* widget, GdkEventExpose* e) {
+ TRACE_EVENT0("ui::gtk", "DownloadItemGtk::OnExpose");
if (!theme_service_->UsingNativeTheme()) {
bool is_body = widget == body_.get();
@@ -811,6 +814,8 @@ gboolean DownloadItemGtk::OnButtonPress(GtkWidget* button,
gboolean DownloadItemGtk::OnProgressAreaExpose(GtkWidget* widget,
GdkEventExpose* event) {
+ TRACE_EVENT0("ui::gtk", "DownloadItemGtk::OnProgressAreaExpose");
+
GtkAllocation allocation;
gtk_widget_get_allocation(widget, &allocation);
@@ -872,6 +877,7 @@ void DownloadItemGtk::ShowPopupMenu(GtkWidget* button,
gboolean DownloadItemGtk::OnDangerousPromptExpose(GtkWidget* widget,
GdkEventExpose* event) {
+ TRACE_EVENT0("ui::gtk", "DownloadItemGtk::OnDangerousPromptExpose");
if (!theme_service_->UsingNativeTheme()) {
// The hbox renderer will take care of the border when in GTK mode.
dangerous_nine_box_->RenderToWidget(widget);
« no previous file with comments | « chrome/browser/ui/gtk/custom_button.cc ('k') | chrome/browser/ui/gtk/find_bar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698