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

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

Issue 69833002: When DWM compositing is disabled (i.e. XP, RDP) ensure that windowed NPAPI plugins don't cover UI d… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 1 month 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) 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_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 gfx::Rect(current_frame_size_), 1246 gfx::Rect(current_frame_size_),
1247 frame, 1247 frame,
1248 base::Bind(callback, present_time)); 1248 base::Bind(callback, present_time));
1249 } 1249 }
1250 } 1250 }
1251 } 1251 }
1252 1252
1253 #if defined(OS_WIN) 1253 #if defined(OS_WIN)
1254 void RenderWidgetHostViewAura::UpdateConstrainedWindowRects( 1254 void RenderWidgetHostViewAura::UpdateConstrainedWindowRects(
1255 const std::vector<gfx::Rect>& rects) { 1255 const std::vector<gfx::Rect>& rects) {
1256 if (rects == constrained_rects_)
1257 return;
1256 constrained_rects_ = rects; 1258 constrained_rects_ = rects;
1257 UpdateCutoutRects(); 1259 UpdateCutoutRects();
1258 } 1260 }
1259 1261
1260 void RenderWidgetHostViewAura::UpdateCutoutRects() { 1262 void RenderWidgetHostViewAura::UpdateCutoutRects() {
1261 if (!window_->GetRootWindow()) 1263 if (!window_->GetRootWindow())
1262 return; 1264 return;
1263 HWND parent = window_->GetDispatcher()->GetAcceleratedWidget(); 1265 HWND parent = window_->GetDispatcher()->GetAcceleratedWidget();
1264 CutoutRectsParams params; 1266 CutoutRectsParams params;
1265 params.widget = this; 1267 params.widget = this;
(...skipping 2054 matching lines...) Expand 10 before | Expand all | Expand 10 after
3320 RenderWidgetHost* widget) { 3322 RenderWidgetHost* widget) {
3321 return new RenderWidgetHostViewAura(widget); 3323 return new RenderWidgetHostViewAura(widget);
3322 } 3324 }
3323 3325
3324 // static 3326 // static
3325 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { 3327 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) {
3326 GetScreenInfoForWindow(results, NULL); 3328 GetScreenInfoForWindow(results, NULL);
3327 } 3329 }
3328 3330
3329 } // namespace content 3331 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698