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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 714003002: Allow changing top controls height (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 6 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 cc::switches::kShowFPSCounter, 1216 cc::switches::kShowFPSCounter,
1217 cc::switches::kShowLayerAnimationBounds, 1217 cc::switches::kShowLayerAnimationBounds,
1218 cc::switches::kShowNonOccludingRects, 1218 cc::switches::kShowNonOccludingRects,
1219 cc::switches::kShowOccludingRects, 1219 cc::switches::kShowOccludingRects,
1220 cc::switches::kShowPropertyChangedRects, 1220 cc::switches::kShowPropertyChangedRects,
1221 cc::switches::kShowReplicaScreenSpaceRects, 1221 cc::switches::kShowReplicaScreenSpaceRects,
1222 cc::switches::kShowScreenSpaceRects, 1222 cc::switches::kShowScreenSpaceRects,
1223 cc::switches::kShowSurfaceDamageRects, 1223 cc::switches::kShowSurfaceDamageRects,
1224 cc::switches::kSlowDownRasterScaleFactor, 1224 cc::switches::kSlowDownRasterScaleFactor,
1225 cc::switches::kStrictLayerPropertyChangeChecking, 1225 cc::switches::kStrictLayerPropertyChangeChecking,
1226 cc::switches::kTopControlsHeight,
1227 cc::switches::kTopControlsHideThreshold, 1226 cc::switches::kTopControlsHideThreshold,
1228 cc::switches::kTopControlsShowThreshold, 1227 cc::switches::kTopControlsShowThreshold,
1229 #if defined(ENABLE_PLUGINS) 1228 #if defined(ENABLE_PLUGINS)
1230 switches::kEnablePepperTesting, 1229 switches::kEnablePepperTesting,
1231 switches::kEnablePluginPowerSaver, 1230 switches::kEnablePluginPowerSaver,
1232 #endif 1231 #endif
1233 #if defined(ENABLE_WEBRTC) 1232 #if defined(ENABLE_WEBRTC)
1234 switches::kDisableWebRtcHWDecoding, 1233 switches::kDisableWebRtcHWDecoding,
1235 switches::kDisableWebRtcHWEncoding, 1234 switches::kDisableWebRtcHWEncoding,
1236 switches::kEnableWebRtcHWVp8Encoding, 1235 switches::kEnableWebRtcHWVp8Encoding,
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after
2247 2246
2248 void RenderProcessHostImpl::DecrementWorkerRefCount() { 2247 void RenderProcessHostImpl::DecrementWorkerRefCount() {
2249 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2248 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2250 DCHECK_GT(worker_ref_count_, 0); 2249 DCHECK_GT(worker_ref_count_, 0);
2251 --worker_ref_count_; 2250 --worker_ref_count_;
2252 if (worker_ref_count_ == 0) 2251 if (worker_ref_count_ == 0)
2253 Cleanup(); 2252 Cleanup();
2254 } 2253 }
2255 2254
2256 } // namespace content 2255 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698