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

Side by Side Diff: chrome/browser/ui/gtk/browser_window_gtk.cc

Issue 7538010: Make BrowserWindow::CreateFindBar non-static so that it can be overridden by Panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove underscore. Created 9 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) 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/browser_window_gtk.h" 5 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 8
9 #include <dlfcn.h> 9 #include <dlfcn.h>
10 #include <string> 10 #include <string>
(...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1180 1180
1181 gfx::Rect BrowserWindowGtk::GetInstantBounds() { 1181 gfx::Rect BrowserWindowGtk::GetInstantBounds() {
1182 return gtk_util::GetWidgetScreenBounds(contents_container_->widget()); 1182 return gtk_util::GetWidgetScreenBounds(contents_container_->widget());
1183 } 1183 }
1184 1184
1185 WindowOpenDisposition BrowserWindowGtk::GetDispositionForPopupBounds( 1185 WindowOpenDisposition BrowserWindowGtk::GetDispositionForPopupBounds(
1186 const gfx::Rect& bounds) { 1186 const gfx::Rect& bounds) {
1187 return NEW_POPUP; 1187 return NEW_POPUP;
1188 } 1188 }
1189 1189
1190 FindBar* BrowserWindowGtk::CreateFindBar() {
1191 return new FindBarGtk(this);
1192 }
1193
1190 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() { 1194 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() {
1191 new DownloadInProgressDialogGtk(browser()); 1195 new DownloadInProgressDialogGtk(browser());
1192 } 1196 }
1193 1197
1194 void BrowserWindowGtk::Observe(int type, 1198 void BrowserWindowGtk::Observe(int type,
1195 const NotificationSource& source, 1199 const NotificationSource& source,
1196 const NotificationDetails& details) { 1200 const NotificationDetails& details) {
1197 switch (type) { 1201 switch (type) {
1198 case chrome::NOTIFICATION_PREF_CHANGED: { 1202 case chrome::NOTIFICATION_PREF_CHANGED: {
1199 std::string* pref_name = Details<std::string>(details).ptr(); 1203 std::string* pref_name = Details<std::string>(details).ptr();
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
2390 // are taken from the WMs' source code. 2394 // are taken from the WMs' source code.
2391 return (wm_name == "Blackbox" || 2395 return (wm_name == "Blackbox" ||
2392 wm_name == "compiz" || 2396 wm_name == "compiz" ||
2393 wm_name == "Compiz" || 2397 wm_name == "Compiz" ||
2394 wm_name == "e16" || // Enlightenment DR16 2398 wm_name == "e16" || // Enlightenment DR16
2395 wm_name == "Metacity" || 2399 wm_name == "Metacity" ||
2396 wm_name == "Mutter" || 2400 wm_name == "Mutter" ||
2397 wm_name == "Openbox" || 2401 wm_name == "Openbox" ||
2398 wm_name == "Xfwm4"); 2402 wm_name == "Xfwm4");
2399 } 2403 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698