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

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

Issue 803813003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 #include "content/browser/renderer_host/render_widget_host_view_base.h" 5 #include "content/browser/renderer_host/render_widget_host_view_base.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/accessibility/browser_accessibility_manager.h" 8 #include "content/browser/accessibility/browser_accessibility_manager.h"
9 #include "content/browser/gpu/gpu_data_manager_impl.h" 9 #include "content/browser/gpu/gpu_data_manager_impl.h"
10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" 10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 } 179 }
180 } 180 }
181 181
182 // static 182 // static
183 void RenderWidgetHostViewBase::MovePluginWindowsHelper( 183 void RenderWidgetHostViewBase::MovePluginWindowsHelper(
184 HWND parent, 184 HWND parent,
185 const std::vector<WebPluginGeometry>& moves) { 185 const std::vector<WebPluginGeometry>& moves) {
186 if (moves.empty()) 186 if (moves.empty())
187 return; 187 return;
188 188
189 bool oop_plugins = 189 bool oop_plugins = !base::CommandLine::ForCurrentProcess()->HasSwitch(
190 !CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess); 190 switches::kSingleProcess);
191 191
192 HDWP defer_window_pos_info = 192 HDWP defer_window_pos_info =
193 ::BeginDeferWindowPos(static_cast<int>(moves.size())); 193 ::BeginDeferWindowPos(static_cast<int>(moves.size()));
194 194
195 if (!defer_window_pos_info) { 195 if (!defer_window_pos_info) {
196 NOTREACHED(); 196 NOTREACHED();
197 return; 197 return;
198 } 198 }
199 199
200 #if defined(USE_AURA) 200 #if defined(USE_AURA)
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 ? blink::WebScreenOrientationPortraitPrimary 689 ? blink::WebScreenOrientationPortraitPrimary
690 : blink::WebScreenOrientationPortraitSecondary; 690 : blink::WebScreenOrientationPortraitSecondary;
691 } 691 }
692 692
693 return primary_landscape_angle == angle 693 return primary_landscape_angle == angle
694 ? blink::WebScreenOrientationLandscapePrimary 694 ? blink::WebScreenOrientationLandscapePrimary
695 : blink::WebScreenOrientationLandscapeSecondary; 695 : blink::WebScreenOrientationLandscapeSecondary;
696 } 696 }
697 697
698 } // namespace content 698 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/media_stream_ui_proxy.cc ('k') | content/browser/security_exploit_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698