OLD | NEW |
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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 } | 199 } |
200 | 200 |
201 // static | 201 // static |
202 void RenderWidgetHostViewBase::MovePluginWindowsHelper( | 202 void RenderWidgetHostViewBase::MovePluginWindowsHelper( |
203 HWND parent, | 203 HWND parent, |
204 const std::vector<WebPluginGeometry>& moves) { | 204 const std::vector<WebPluginGeometry>& moves) { |
205 if (moves.empty()) | 205 if (moves.empty()) |
206 return; | 206 return; |
207 | 207 |
208 bool oop_plugins = | 208 bool oop_plugins = |
209 !CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess) && | 209 !CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess); |
210 !CommandLine::ForCurrentProcess()->HasSwitch(switches::kInProcessPlugins); | |
211 | 210 |
212 HDWP defer_window_pos_info = | 211 HDWP defer_window_pos_info = |
213 ::BeginDeferWindowPos(static_cast<int>(moves.size())); | 212 ::BeginDeferWindowPos(static_cast<int>(moves.size())); |
214 | 213 |
215 if (!defer_window_pos_info) { | 214 if (!defer_window_pos_info) { |
216 NOTREACHED(); | 215 NOTREACHED(); |
217 return; | 216 return; |
218 } | 217 } |
219 | 218 |
220 #if defined(USE_AURA) | 219 #if defined(USE_AURA) |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 void RenderWidgetHostViewBase::FlushInput() { | 586 void RenderWidgetHostViewBase::FlushInput() { |
588 RenderWidgetHostImpl* impl = NULL; | 587 RenderWidgetHostImpl* impl = NULL; |
589 if (GetRenderWidgetHost()) | 588 if (GetRenderWidgetHost()) |
590 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); | 589 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); |
591 if (!impl) | 590 if (!impl) |
592 return; | 591 return; |
593 impl->FlushInput(); | 592 impl->FlushInput(); |
594 } | 593 } |
595 | 594 |
596 } // namespace content | 595 } // namespace content |
OLD | NEW |