| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/test/web_layer_tree_view_impl_for_testing.h" | 5 #include "content/test/web_layer_tree_view_impl_for_testing.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
| 9 #include "base/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
| 10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
| 11 #include "cc/animation/animation_host.h" | 11 #include "cc/animation/animation_host.h" |
| 12 #include "cc/animation/animation_timeline.h" | 12 #include "cc/animation/animation_timeline.h" |
| 13 #include "cc/base/switches.h" | 13 #include "cc/base/switches.h" |
| 14 #include "cc/blink/web_layer_impl.h" | 14 #include "cc/blink/web_layer_impl.h" |
| 15 #include "cc/input/input_handler.h" | 15 #include "cc/input/input_handler.h" |
| 16 #include "cc/layers/layer.h" | 16 #include "cc/layers/layer.h" |
| 17 #include "cc/scheduler/begin_frame_source.h" | 17 #include "cc/scheduler/begin_frame_source.h" |
| 18 #include "cc/trees/layer_tree_host.h" | 18 #include "cc/trees/layer_tree_host.h" |
| 19 #include "content/test/test_blink_web_unit_test_support.h" | 19 #include "content/test/test_blink_web_unit_test_support.h" |
| 20 #include "third_party/WebKit/public/platform/Platform.h" | 20 #include "third_party/WebKit/public/platform/Platform.h" |
| 21 #include "third_party/WebKit/public/platform/WebLayer.h" | 21 #include "third_party/WebKit/public/platform/WebLayer.h" |
| 22 #include "third_party/WebKit/public/platform/WebLayerTreeView.h" | 22 #include "third_party/WebKit/public/platform/WebLayerTreeView.h" |
| 23 #include "third_party/WebKit/public/platform/WebRuntimeFeatures.h" |
| 23 #include "third_party/WebKit/public/platform/WebSize.h" | 24 #include "third_party/WebKit/public/platform/WebSize.h" |
| 24 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | |
| 25 | 25 |
| 26 using blink::WebColor; | 26 using blink::WebColor; |
| 27 using blink::WebRect; | 27 using blink::WebRect; |
| 28 using blink::WebSize; | 28 using blink::WebSize; |
| 29 | 29 |
| 30 namespace content { | 30 namespace content { |
| 31 | 31 |
| 32 WebLayerTreeViewImplForTesting::WebLayerTreeViewImplForTesting() {} | 32 WebLayerTreeViewImplForTesting::WebLayerTreeViewImplForTesting() {} |
| 33 | 33 |
| 34 WebLayerTreeViewImplForTesting::~WebLayerTreeViewImplForTesting() {} | 34 WebLayerTreeViewImplForTesting::~WebLayerTreeViewImplForTesting() {} |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 void WebLayerTreeViewImplForTesting::setHaveScrollEventHandlers( | 207 void WebLayerTreeViewImplForTesting::setHaveScrollEventHandlers( |
| 208 bool have_event_handlers) { | 208 bool have_event_handlers) { |
| 209 layer_tree_host_->SetHaveScrollEventHandlers(have_event_handlers); | 209 layer_tree_host_->SetHaveScrollEventHandlers(have_event_handlers); |
| 210 } | 210 } |
| 211 | 211 |
| 212 bool WebLayerTreeViewImplForTesting::haveScrollEventHandlers() const { | 212 bool WebLayerTreeViewImplForTesting::haveScrollEventHandlers() const { |
| 213 return layer_tree_host_->have_scroll_event_handlers(); | 213 return layer_tree_host_->have_scroll_event_handlers(); |
| 214 } | 214 } |
| 215 | 215 |
| 216 } // namespace content | 216 } // namespace content |
| OLD | NEW |