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

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

Issue 9003014: Replace WebUI::tab_contents() with web_contents() and switch all users to use web_contents.h inst... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 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
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.h ('k') | chrome/browser/ui/panels/panel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.h ('k') | chrome/browser/ui/panels/panel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698