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

Side by Side Diff: chrome/browser/ui/gtk/infobars/extension_infobar_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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h" 5 #include "chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h"
6 6
7 #include "base/debug/trace_event.h"
7 #include "chrome/browser/extensions/extension_context_menu_model.h" 8 #include "chrome/browser/extensions/extension_context_menu_model.h"
8 #include "chrome/browser/extensions/extension_host.h" 9 #include "chrome/browser/extensions/extension_host.h"
9 #include "chrome/browser/platform_util.h" 10 #include "chrome/browser/platform_util.h"
10 #include "chrome/browser/ui/gtk/browser_window_gtk.h" 11 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
11 #include "chrome/browser/ui/gtk/custom_button.h" 12 #include "chrome/browser/ui/gtk/custom_button.h"
12 #include "chrome/browser/ui/gtk/gtk_chrome_button.h" 13 #include "chrome/browser/ui/gtk/gtk_chrome_button.h"
13 #include "chrome/browser/ui/gtk/gtk_util.h" 14 #include "chrome/browser/ui/gtk/gtk_util.h"
14 #include "chrome/browser/ui/gtk/infobars/infobar_container_gtk.h" 15 #include "chrome/browser/ui/gtk/infobars/infobar_container_gtk.h"
15 #include "chrome/common/extensions/extension.h" 16 #include "chrome/common/extensions/extension.h"
16 #include "chrome/common/extensions/extension_icon_set.h" 17 #include "chrome/common/extensions/extension_icon_set.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 186
186 gtk_chrome_button_set_paint_state(GTK_CHROME_BUTTON(widget), 187 gtk_chrome_button_set_paint_state(GTK_CHROME_BUTTON(widget),
187 GTK_STATE_ACTIVE); 188 GTK_STATE_ACTIVE);
188 ShowMenuWithModel(widget, this, model); 189 ShowMenuWithModel(widget, this, model);
189 190
190 return TRUE; 191 return TRUE;
191 } 192 }
192 193
193 gboolean ExtensionInfoBarGtk::OnExpose(GtkWidget* sender, 194 gboolean ExtensionInfoBarGtk::OnExpose(GtkWidget* sender,
194 GdkEventExpose* event) { 195 GdkEventExpose* event) {
196 TRACE_EVENT0("ui::gtk", "ExtensionInfoBarGtk::OnExpose");
197
195 // We also need to draw our infobar arrows over the renderer. 198 // We also need to draw our infobar arrows over the renderer.
196 static_cast<InfoBarContainerGtk*>(container())-> 199 static_cast<InfoBarContainerGtk*>(container())->
197 PaintInfobarBitsOn(sender, event, this); 200 PaintInfobarBitsOn(sender, event, this);
198 201
199 return FALSE; 202 return FALSE;
200 } 203 }
201 204
202 InfoBar* ExtensionInfoBarDelegate::CreateInfoBar(InfoBarTabHelper* owner) { 205 InfoBar* ExtensionInfoBarDelegate::CreateInfoBar(InfoBarTabHelper* owner) {
203 return new ExtensionInfoBarGtk(owner, this); 206 return new ExtensionInfoBarGtk(owner, this);
204 } 207 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698