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

Unified Diff: chrome/browser/ui/gtk/location_bar_view_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: fix nit 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/location_bar_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/location_bar_view_gtk.cc b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
index 30a04f96d7e86a6bc11951db119736f475b33965..06a8e3fb4921e984c02a97a10ed6617449f2f259 100644
--- a/chrome/browser/ui/gtk/location_bar_view_gtk.cc
+++ b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/bind.h"
+#include "base/debug/trace_event.h"
#include "base/i18n/rtl.h"
#include "base/logging.h"
#include "base/string_util.h"
@@ -1377,6 +1378,9 @@ gboolean LocationBarViewGtk::ContentSettingImageViewGtk::OnButtonPressed(
gboolean LocationBarViewGtk::ContentSettingImageViewGtk::OnExpose(
GtkWidget* sender, GdkEventExpose* event) {
+ TRACE_EVENT0("ui::gtk",
+ "LocationBarViewGtk::ContentSettingImageViewGtk::OnExpose");
+
if (!(animation_.IsShowing() || animation_.IsClosing()))
return FALSE;
@@ -1621,6 +1625,7 @@ gboolean LocationBarViewGtk::PageActionViewGtk::OnButtonPressed(
gboolean LocationBarViewGtk::PageActionViewGtk::OnExposeEvent(
GtkWidget* widget,
GdkEventExpose* event) {
+ TRACE_EVENT0("ui::gtk", "LocationBarViewGtk::PageActionViewGtk::OnExpose");
TabContents* contents = owner_->GetTabContents();
if (!contents)
return FALSE;

Powered by Google App Engine
This is Rietveld 408576698