| OLD | NEW | 
|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/renderer/gpu/render_widget_compositor.h" | 5 #include "content/renderer/gpu/render_widget_compositor.h" | 
| 6 | 6 | 
| 7 #include <stddef.h> | 7 #include <stddef.h> | 
| 8 #include <limits> | 8 #include <limits> | 
| 9 #include <string> | 9 #include <string> | 
| 10 #include <utility> | 10 #include <utility> | 
| (...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 760                   cc::EventListenerProperties::kNone, | 760                   cc::EventListenerProperties::kNone, | 
| 761               "EventListener and WebEventListener enums must match"); | 761               "EventListener and WebEventListener enums must match"); | 
| 762 static_assert(static_cast<cc::EventListenerProperties>( | 762 static_assert(static_cast<cc::EventListenerProperties>( | 
| 763                   blink::WebEventListenerProperties::Passive) == | 763                   blink::WebEventListenerProperties::Passive) == | 
| 764                   cc::EventListenerProperties::kPassive, | 764                   cc::EventListenerProperties::kPassive, | 
| 765               "EventListener and WebEventListener enums must match"); | 765               "EventListener and WebEventListener enums must match"); | 
| 766 static_assert(static_cast<cc::EventListenerProperties>( | 766 static_assert(static_cast<cc::EventListenerProperties>( | 
| 767                   blink::WebEventListenerProperties::Blocking) == | 767                   blink::WebEventListenerProperties::Blocking) == | 
| 768                   cc::EventListenerProperties::kBlocking, | 768                   cc::EventListenerProperties::kBlocking, | 
| 769               "EventListener and WebEventListener enums must match"); | 769               "EventListener and WebEventListener enums must match"); | 
|  | 770 static_assert(static_cast<cc::EventListenerProperties>( | 
|  | 771                   blink::WebEventListenerProperties::BlockingAndPassive) == | 
|  | 772                   cc::EventListenerProperties::kBlockingAndPassive, | 
|  | 773               "EventListener and WebEventListener enums must match"); | 
| 770 | 774 | 
| 771 void RenderWidgetCompositor::setEventListenerProperties( | 775 void RenderWidgetCompositor::setEventListenerProperties( | 
| 772     blink::WebEventListenerClass eventClass, | 776     blink::WebEventListenerClass eventClass, | 
| 773     blink::WebEventListenerProperties properties) { | 777     blink::WebEventListenerProperties properties) { | 
| 774   layer_tree_host_->SetEventListenerProperties( | 778   layer_tree_host_->SetEventListenerProperties( | 
| 775       static_cast<cc::EventListenerClass>(eventClass), | 779       static_cast<cc::EventListenerClass>(eventClass), | 
| 776       static_cast<cc::EventListenerProperties>(properties)); | 780       static_cast<cc::EventListenerProperties>(properties)); | 
| 777 } | 781 } | 
| 778 | 782 | 
| 779 blink::WebEventListenerProperties | 783 blink::WebEventListenerProperties | 
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1147 #endif | 1151 #endif | 
| 1148   return actual; | 1152   return actual; | 
| 1149 } | 1153 } | 
| 1150 | 1154 | 
| 1151 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( | 1155 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( | 
| 1152     float device_scale) { | 1156     float device_scale) { | 
| 1153   layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); | 1157   layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); | 
| 1154 } | 1158 } | 
| 1155 | 1159 | 
| 1156 }  // namespace content | 1160 }  // namespace content | 
| OLD | NEW | 
|---|