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 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1218 | 1218 |
1219 WindowOpenDisposition BrowserWindowGtk::GetDispositionForPopupBounds( | 1219 WindowOpenDisposition BrowserWindowGtk::GetDispositionForPopupBounds( |
1220 const gfx::Rect& bounds) { | 1220 const gfx::Rect& bounds) { |
1221 return NEW_POPUP; | 1221 return NEW_POPUP; |
1222 } | 1222 } |
1223 | 1223 |
1224 FindBar* BrowserWindowGtk::CreateFindBar() { | 1224 FindBar* BrowserWindowGtk::CreateFindBar() { |
1225 return new FindBarGtk(this); | 1225 return new FindBarGtk(this); |
1226 } | 1226 } |
1227 | 1227 |
1228 void BrowserWindowGtk::ShowAvatarBubble(TabContents* tab_contents, | 1228 void BrowserWindowGtk::ShowAvatarBubble(WebContents* web_contents, |
1229 const gfx::Rect& rect) { | 1229 const gfx::Rect& rect) { |
1230 GtkWidget* widget = tab_contents->GetContentNativeView(); | 1230 GtkWidget* widget = web_contents->GetContentNativeView(); |
1231 new AvatarMenuBubbleGtk(browser_.get(), widget, | 1231 new AvatarMenuBubbleGtk(browser_.get(), widget, |
1232 BubbleGtk::ARROW_LOCATION_TOP_LEFT, &rect); | 1232 BubbleGtk::ARROW_LOCATION_TOP_LEFT, &rect); |
1233 } | 1233 } |
1234 | 1234 |
1235 void BrowserWindowGtk::ShowAvatarBubbleFromAvatarButton() { | 1235 void BrowserWindowGtk::ShowAvatarBubbleFromAvatarButton() { |
1236 if (titlebar_->avatar_button()) | 1236 if (titlebar_->avatar_button()) |
1237 titlebar_->avatar_button()->ShowAvatarBubble(); | 1237 titlebar_->avatar_button()->ShowAvatarBubble(); |
1238 } | 1238 } |
1239 | 1239 |
1240 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() { | 1240 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() { |
(...skipping 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2513 wm_type == ui::WM_OPENBOX || | 2513 wm_type == ui::WM_OPENBOX || |
2514 wm_type == ui::WM_XFWM4); | 2514 wm_type == ui::WM_XFWM4); |
2515 } | 2515 } |
2516 | 2516 |
2517 // static | 2517 // static |
2518 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 2518 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
2519 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); | 2519 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); |
2520 browser_window_gtk->Init(); | 2520 browser_window_gtk->Init(); |
2521 return browser_window_gtk; | 2521 return browser_window_gtk; |
2522 } | 2522 } |
OLD | NEW |