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

Side by Side Diff: chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc

Issue 10830353: Introduce InfoBarTabService API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments Created 8 years, 4 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/debug/trace_event.h"
8 #include "chrome/browser/extensions/extension_context_menu_model.h" 8 #include "chrome/browser/extensions/extension_context_menu_model.h"
9 #include "chrome/browser/extensions/extension_host.h" 9 #include "chrome/browser/extensions/extension_host.h"
10 #include "chrome/browser/infobars/infobar_tab_helper.h"
10 #include "chrome/browser/platform_util.h" 11 #include "chrome/browser/platform_util.h"
11 #include "chrome/browser/ui/gtk/browser_window_gtk.h" 12 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
12 #include "chrome/browser/ui/gtk/custom_button.h" 13 #include "chrome/browser/ui/gtk/custom_button.h"
13 #include "chrome/browser/ui/gtk/gtk_chrome_button.h" 14 #include "chrome/browser/ui/gtk/gtk_chrome_button.h"
14 #include "chrome/browser/ui/gtk/gtk_util.h" 15 #include "chrome/browser/ui/gtk/gtk_util.h"
15 #include "chrome/browser/ui/gtk/infobars/infobar_container_gtk.h" 16 #include "chrome/browser/ui/gtk/infobars/infobar_container_gtk.h"
16 #include "chrome/common/extensions/extension.h" 17 #include "chrome/common/extensions/extension.h"
17 #include "chrome/common/extensions/extension_constants.h" 18 #include "chrome/common/extensions/extension_constants.h"
18 #include "chrome/common/extensions/extension_icon_set.h" 19 #include "chrome/common/extensions/extension_icon_set.h"
19 #include "chrome/common/extensions/extension_resource.h" 20 #include "chrome/common/extensions/extension_resource.h"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 GdkEventExpose* event) { 196 GdkEventExpose* event) {
196 TRACE_EVENT0("ui::gtk", "ExtensionInfoBarGtk::OnExpose"); 197 TRACE_EVENT0("ui::gtk", "ExtensionInfoBarGtk::OnExpose");
197 198
198 // We also need to draw our infobar arrows over the renderer. 199 // We also need to draw our infobar arrows over the renderer.
199 static_cast<InfoBarContainerGtk*>(container())-> 200 static_cast<InfoBarContainerGtk*>(container())->
200 PaintInfobarBitsOn(sender, event, this); 201 PaintInfobarBitsOn(sender, event, this);
201 202
202 return FALSE; 203 return FALSE;
203 } 204 }
204 205
205 InfoBar* ExtensionInfoBarDelegate::CreateInfoBar(InfoBarTabHelper* owner) { 206 InfoBar* ExtensionInfoBarDelegate::CreateInfoBar(InfoBarTabService* owner) {
206 return new ExtensionInfoBarGtk(owner, this); 207 return new ExtensionInfoBarGtk(static_cast<InfoBarTabHelper*>(owner), this);
erikwright (departed) 2012/08/20 05:54:46 cast
Jói 2012/08/20 12:30:15 Done.
207 } 208 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698