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

Unified Diff: chrome/browser/ui/gtk/find_bar_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: 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
Index: chrome/browser/ui/gtk/find_bar_gtk.cc
diff --git a/chrome/browser/ui/gtk/find_bar_gtk.cc b/chrome/browser/ui/gtk/find_bar_gtk.cc
index 07caea5a5a6c7a13bf64c3a76201358b48586599..f09d62817df8343c022b2aaede8e4f5f1375c580 100644
--- a/chrome/browser/ui/gtk/find_bar_gtk.cc
+++ b/chrome/browser/ui/gtk/find_bar_gtk.cc
@@ -10,6 +10,7 @@
#include <string>
#include <vector>
+#include "base/debug/trace_event.h"
#include "base/i18n/rtl.h"
#include "base/string_number_conversions.h"
#include "base/string_util.h"
@@ -810,6 +811,7 @@ void FindBarGtk::OnClicked(GtkWidget* button) {
gboolean FindBarGtk::OnContentEventBoxExpose(GtkWidget* widget,
GdkEventExpose* event,
FindBarGtk* bar) {
+ TRACE_EVENT0("ui::gtk", "FindBarGtk::OnContentEventBoxExpose");
if (bar->theme_service_->UsingNativeTheme()) {
// Draw the text entry background around where we input stuff. Note the
// decrement to |width|. We do this because some theme engines
@@ -830,6 +832,8 @@ gboolean FindBarGtk::OnContentEventBoxExpose(GtkWidget* widget,
// Used to handle custom painting of |container_|.
gboolean FindBarGtk::OnExpose(GtkWidget* widget, GdkEventExpose* e,
FindBarGtk* bar) {
+ TRACE_EVENT0("ui::gtk", "FindBarGtk::OnExpose");
+
GtkAllocation allocation;
gtk_widget_get_allocation(widget, &allocation);

Powered by Google App Engine
This is Rietveld 408576698