| OLD | NEW |
| 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 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 | 1185 |
| 1186 WindowOpenDisposition BrowserWindowGtk::GetDispositionForPopupBounds( | 1186 WindowOpenDisposition BrowserWindowGtk::GetDispositionForPopupBounds( |
| 1187 const gfx::Rect& bounds) { | 1187 const gfx::Rect& bounds) { |
| 1188 return NEW_POPUP; | 1188 return NEW_POPUP; |
| 1189 } | 1189 } |
| 1190 | 1190 |
| 1191 FindBar* BrowserWindowGtk::CreateFindBar() { | 1191 FindBar* BrowserWindowGtk::CreateFindBar() { |
| 1192 return new FindBarGtk(this); | 1192 return new FindBarGtk(this); |
| 1193 } | 1193 } |
| 1194 | 1194 |
| 1195 void BrowserWindowGtk::ShowAvatarBubble(TabContents* tab_contents, |
| 1196 const gfx::Rect& rect) { |
| 1197 // TODO(sail): Implement this once we have a avatar bubble on GTK. |
| 1198 } |
| 1199 |
| 1195 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() { | 1200 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() { |
| 1196 new DownloadInProgressDialogGtk(browser()); | 1201 new DownloadInProgressDialogGtk(browser()); |
| 1197 } | 1202 } |
| 1198 | 1203 |
| 1199 void BrowserWindowGtk::Observe(int type, | 1204 void BrowserWindowGtk::Observe(int type, |
| 1200 const NotificationSource& source, | 1205 const NotificationSource& source, |
| 1201 const NotificationDetails& details) { | 1206 const NotificationDetails& details) { |
| 1202 switch (type) { | 1207 switch (type) { |
| 1203 case chrome::NOTIFICATION_PREF_CHANGED: { | 1208 case chrome::NOTIFICATION_PREF_CHANGED: { |
| 1204 std::string* pref_name = Details<std::string>(details).ptr(); | 1209 std::string* pref_name = Details<std::string>(details).ptr(); |
| (...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2414 wm_name == "Openbox" || | 2419 wm_name == "Openbox" || |
| 2415 wm_name == "Xfwm4"); | 2420 wm_name == "Xfwm4"); |
| 2416 } | 2421 } |
| 2417 | 2422 |
| 2418 // static | 2423 // static |
| 2419 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 2424 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
| 2420 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); | 2425 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); |
| 2421 browser_window_gtk->Init(); | 2426 browser_window_gtk->Init(); |
| 2422 return browser_window_gtk; | 2427 return browser_window_gtk; |
| 2423 } | 2428 } |
| OLD | NEW |