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

Side by Side Diff: chrome/browser/gtk/infobar_container_gtk.cc

Issue 6086003: Cleanup: Remove unneeded includes of chrome_switches.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/gtk/infobar_container_gtk.h" 5 #include "chrome/browser/gtk/infobar_container_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "chrome/browser/browser_window.h" 12 #include "chrome/browser/browser_window.h"
13 #include "chrome/browser/gtk/browser_window_gtk.h" 13 #include "chrome/browser/gtk/browser_window_gtk.h"
14 #include "chrome/browser/gtk/gtk_theme_provider.h" 14 #include "chrome/browser/gtk/gtk_theme_provider.h"
15 #include "chrome/browser/gtk/gtk_util.h" 15 #include "chrome/browser/gtk/gtk_util.h"
16 #include "chrome/browser/gtk/infobar_gtk.h" 16 #include "chrome/browser/gtk/infobar_gtk.h"
17 #include "chrome/browser/platform_util.h" 17 #include "chrome/browser/platform_util.h"
18 #include "chrome/browser/tab_contents/infobar_delegate.h" 18 #include "chrome/browser/tab_contents/infobar_delegate.h"
19 #include "chrome/browser/tab_contents/tab_contents.h" 19 #include "chrome/browser/tab_contents/tab_contents.h"
20 #include "chrome/common/chrome_switches.h"
21 #include "chrome/common/notification_details.h" 20 #include "chrome/common/notification_details.h"
22 #include "chrome/common/notification_source.h" 21 #include "chrome/common/notification_source.h"
23 #include "third_party/skia/include/core/SkPaint.h" 22 #include "third_party/skia/include/core/SkPaint.h"
24 23
25 namespace { 24 namespace {
26 25
27 static const char* kInfoBar = "info-bar"; 26 static const char* kInfoBar = "info-bar";
28 27
29 // If |infobar_widget| matches |info_bar_delegate|, then close the infobar. 28 // If |infobar_widget| matches |info_bar_delegate|, then close the infobar.
30 void AnimateClosingForDelegate(GtkWidget* infobar_widget, 29 void AnimateClosingForDelegate(GtkWidget* infobar_widget,
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 } 212 }
214 213
215 void InfoBarContainerGtk::UpdateToolbarInfoBarState( 214 void InfoBarContainerGtk::UpdateToolbarInfoBarState(
216 InfoBar* infobar, bool animate) { 215 InfoBar* infobar, bool animate) {
217 GtkWindow* parent = platform_util::GetTopLevel(widget()); 216 GtkWindow* parent = platform_util::GetTopLevel(widget());
218 BrowserWindowGtk* browser_window = 217 BrowserWindowGtk* browser_window =
219 BrowserWindowGtk::GetBrowserWindowForNativeWindow(parent); 218 BrowserWindowGtk::GetBrowserWindowForNativeWindow(parent);
220 if (browser_window) 219 if (browser_window)
221 browser_window->SetInfoBarShowing(infobar, animate); 220 browser_window->SetInfoBarShowing(infobar, animate);
222 } 221 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/browser_toolbar_gtk.cc ('k') | chrome/browser/gtk/options/advanced_contents_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698