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

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: Address review comments 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
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 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 1169
1170 WindowOpenDisposition BrowserWindowGtk::GetDispositionForPopupBounds( 1170 WindowOpenDisposition BrowserWindowGtk::GetDispositionForPopupBounds(
1171 const gfx::Rect& bounds) { 1171 const gfx::Rect& bounds) {
1172 return NEW_POPUP; 1172 return NEW_POPUP;
1173 } 1173 }
1174 1174
1175 FindBar* BrowserWindowGtk::CreateFindBar() { 1175 FindBar* BrowserWindowGtk::CreateFindBar() {
1176 return new FindBarGtk(this); 1176 return new FindBarGtk(this);
1177 } 1177 }
1178 1178
1179 void BrowserWindowGtk::ShowAvatarBubble(TabContents* tab_contents,
1180 const gfx::Rect& rect) {
1181 // TODO(sail): Implement this once we have a avatar bubble on GTK.
1182 }
1183
1179 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() { 1184 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() {
1180 new DownloadInProgressDialogGtk(browser()); 1185 new DownloadInProgressDialogGtk(browser());
1181 } 1186 }
1182 1187
1183 void BrowserWindowGtk::Observe(int type, 1188 void BrowserWindowGtk::Observe(int type,
1184 const NotificationSource& source, 1189 const NotificationSource& source,
1185 const NotificationDetails& details) { 1190 const NotificationDetails& details) {
1186 switch (type) { 1191 switch (type) {
1187 case chrome::NOTIFICATION_PREF_CHANGED: { 1192 case chrome::NOTIFICATION_PREF_CHANGED: {
1188 std::string* pref_name = Details<std::string>(details).ptr(); 1193 std::string* pref_name = Details<std::string>(details).ptr();
(...skipping 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after
2391 // are taken from the WMs' source code. 2396 // are taken from the WMs' source code.
2392 return (wm_name == "Blackbox" || 2397 return (wm_name == "Blackbox" ||
2393 wm_name == "compiz" || 2398 wm_name == "compiz" ||
2394 wm_name == "Compiz" || 2399 wm_name == "Compiz" ||
2395 wm_name == "e16" || // Enlightenment DR16 2400 wm_name == "e16" || // Enlightenment DR16
2396 wm_name == "Metacity" || 2401 wm_name == "Metacity" ||
2397 wm_name == "Mutter" || 2402 wm_name == "Mutter" ||
2398 wm_name == "Openbox" || 2403 wm_name == "Openbox" ||
2399 wm_name == "Xfwm4"); 2404 wm_name == "Xfwm4");
2400 } 2405 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698