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

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

Issue 8110003: Show avatar menu from NTP4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac build Created 9 years, 2 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 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
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