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

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

Issue 5991005: Chromium build failed with heap leak checker, or configured with 'gyp_chromiu... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years, 12 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/cookies_tree_model.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/gtk/browser_window_gtk.h" 5 #include "chrome/browser/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 2152 matching lines...) Expand 10 before | Expand all | Expand 10 after
2163 // Right edge. 2163 // Right edge.
2164 if (y < kResizeAreaCornerSize - kTopResizeAdjust) { 2164 if (y < kResizeAreaCornerSize - kTopResizeAdjust) {
2165 *edge = GDK_WINDOW_EDGE_NORTH_EAST; 2165 *edge = GDK_WINDOW_EDGE_NORTH_EAST;
2166 } else if (y < bounds_.height() - kResizeAreaCornerSize) { 2166 } else if (y < bounds_.height() - kResizeAreaCornerSize) {
2167 *edge = GDK_WINDOW_EDGE_EAST; 2167 *edge = GDK_WINDOW_EDGE_EAST;
2168 } else { 2168 } else {
2169 *edge = GDK_WINDOW_EDGE_SOUTH_EAST; 2169 *edge = GDK_WINDOW_EDGE_SOUTH_EAST;
2170 } 2170 }
2171 return true; 2171 return true;
2172 } 2172 }
2173
2173 NOTREACHED(); 2174 NOTREACHED();
2175 return false;
2174 } 2176 }
2175 2177
2176 bool BrowserWindowGtk::UseCustomFrame() { 2178 bool BrowserWindowGtk::UseCustomFrame() {
2177 // We don't use the custom frame for app mode windows or app window popups. 2179 // We don't use the custom frame for app mode windows or app window popups.
2178 return use_custom_frame_pref_.GetValue() && 2180 return use_custom_frame_pref_.GetValue() &&
2179 browser_->type() != Browser::TYPE_APP && 2181 browser_->type() != Browser::TYPE_APP &&
2180 browser_->type() != Browser::TYPE_APP_POPUP; 2182 browser_->type() != Browser::TYPE_APP_POPUP;
2181 } 2183 }
2182 2184
2183 bool BrowserWindowGtk::BoundsMatchMonitorSize() { 2185 bool BrowserWindowGtk::BoundsMatchMonitorSize() {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
2227 // special-case the ones where the custom frame should be used. These names 2229 // special-case the ones where the custom frame should be used. These names
2228 // are taken from the WMs' source code. 2230 // are taken from the WMs' source code.
2229 return (wm_name == "Blackbox" || 2231 return (wm_name == "Blackbox" ||
2230 wm_name == "compiz" || 2232 wm_name == "compiz" ||
2231 wm_name == "e16" || // Enlightenment DR16 2233 wm_name == "e16" || // Enlightenment DR16
2232 wm_name == "Metacity" || 2234 wm_name == "Metacity" ||
2233 wm_name == "Mutter" || 2235 wm_name == "Mutter" ||
2234 wm_name == "Openbox" || 2236 wm_name == "Openbox" ||
2235 wm_name == "Xfwm4"); 2237 wm_name == "Xfwm4");
2236 } 2238 }
OLDNEW
« no previous file with comments | « chrome/browser/cookies_tree_model.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698