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

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

Issue 6386009: Remove app/win/win_util.h,cc etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with NSApp changes in r73581 Created 9 years, 10 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 <string> 9 #include <string>
10 10
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 contents->FadeForInstant(false); 1113 contents->FadeForInstant(false);
1114 else 1114 else
1115 contents->CancelInstantFade(); 1115 contents->CancelInstantFade();
1116 } 1116 }
1117 } 1117 }
1118 1118
1119 gfx::Rect BrowserWindowGtk::GetInstantBounds() { 1119 gfx::Rect BrowserWindowGtk::GetInstantBounds() {
1120 return gtk_util::GetWidgetScreenBounds(contents_container_->widget()); 1120 return gtk_util::GetWidgetScreenBounds(contents_container_->widget());
1121 } 1121 }
1122 1122
1123 gfx::Rect BrowserWindowGtk::GrabWindowSnapshot(std::vector<unsigned char>*
1124 png_representation) {
1125 ui::GrabWindowSnapshot(window_, png_representation);
1126 return bounds_;
1127 }
1128
1129 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() { 1123 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() {
1130 new DownloadInProgressDialogGtk(browser()); 1124 new DownloadInProgressDialogGtk(browser());
1131 } 1125 }
1132 1126
1133 void BrowserWindowGtk::Observe(NotificationType type, 1127 void BrowserWindowGtk::Observe(NotificationType type,
1134 const NotificationSource& source, 1128 const NotificationSource& source,
1135 const NotificationDetails& details) { 1129 const NotificationDetails& details) {
1136 switch (type.value) { 1130 switch (type.value) {
1137 case NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED: 1131 case NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED:
1138 MaybeShowBookmarkBar(true); 1132 MaybeShowBookmarkBar(true);
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after
2245 // special-case the ones where the custom frame should be used. These names 2239 // special-case the ones where the custom frame should be used. These names
2246 // are taken from the WMs' source code. 2240 // are taken from the WMs' source code.
2247 return (wm_name == "Blackbox" || 2241 return (wm_name == "Blackbox" ||
2248 wm_name == "compiz" || 2242 wm_name == "compiz" ||
2249 wm_name == "e16" || // Enlightenment DR16 2243 wm_name == "e16" || // Enlightenment DR16
2250 wm_name == "Metacity" || 2244 wm_name == "Metacity" ||
2251 wm_name == "Mutter" || 2245 wm_name == "Mutter" ||
2252 wm_name == "Openbox" || 2246 wm_name == "Openbox" ||
2253 wm_name == "Xfwm4"); 2247 wm_name == "Xfwm4");
2254 } 2248 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.h ('k') | chrome/browser/ui/views/constrained_window_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698