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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 2856423002: input: Change how synthesized events are dispatched in telemetry tests. (Closed)
Patch Set: . Created 3 years, 7 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_mac.h" 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
6 6
7 #import <Carbon/Carbon.h> 7 #import <Carbon/Carbon.h>
8 #import <objc/runtime.h> 8 #import <objc/runtime.h>
9 #include <OpenGL/gl.h> 9 #include <OpenGL/gl.h>
10 #include <QuartzCore/QuartzCore.h> 10 #include <QuartzCore/QuartzCore.h>
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 if (render_widget_host_->delegate() && 396 if (render_widget_host_->delegate() &&
397 render_widget_host_->delegate()->IsFullscreenForCurrentTab()) { 397 render_widget_host_->delegate()->IsFullscreenForCurrentTab()) {
398 return SK_ColorBLACK; 398 return SK_ColorBLACK;
399 } 399 }
400 return color; 400 return color;
401 } 401 }
402 402
403 void RenderWidgetHostViewMac::BrowserCompositorMacSendBeginFrame( 403 void RenderWidgetHostViewMac::BrowserCompositorMacSendBeginFrame(
404 const cc::BeginFrameArgs& args) { 404 const cc::BeginFrameArgs& args) {
405 needs_flush_input_ = false; 405 needs_flush_input_ = false;
406 render_widget_host_->FlushInput(); 406 render_widget_host_->OnBeginFrame();
407 UpdateNeedsBeginFramesInternal(); 407 UpdateNeedsBeginFramesInternal();
408 render_widget_host_->Send( 408 render_widget_host_->Send(
409 new ViewMsg_BeginFrame(render_widget_host_->GetRoutingID(), args)); 409 new ViewMsg_BeginFrame(render_widget_host_->GetRoutingID(), args));
410 } 410 }
411 411
412 //////////////////////////////////////////////////////////////////////////////// 412 ////////////////////////////////////////////////////////////////////////////////
413 // AcceleratedWidgetMacNSView, public: 413 // AcceleratedWidgetMacNSView, public:
414 414
415 NSView* RenderWidgetHostViewMac::AcceleratedWidgetGetNSView() const { 415 NSView* RenderWidgetHostViewMac::AcceleratedWidgetGetNSView() const {
416 return cocoa_view_; 416 return cocoa_view_;
(...skipping 3100 matching lines...) Expand 10 before | Expand all | Expand 10 after
3517 3517
3518 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding 3518 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding
3519 // regions that are not draggable. (See ControlRegionView in 3519 // regions that are not draggable. (See ControlRegionView in
3520 // native_app_window_cocoa.mm). This requires the render host view to be 3520 // native_app_window_cocoa.mm). This requires the render host view to be
3521 // draggable by default. 3521 // draggable by default.
3522 - (BOOL)mouseDownCanMoveWindow { 3522 - (BOOL)mouseDownCanMoveWindow {
3523 return YES; 3523 return YES;
3524 } 3524 }
3525 3525
3526 @end 3526 @end
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.cc ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698