| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CC_BLINK_WEB_LAYER_IMPL_H_ | 5 #ifndef CC_BLINK_WEB_LAYER_IMPL_H_ |
| 6 #define CC_BLINK_WEB_LAYER_IMPL_H_ | 6 #define CC_BLINK_WEB_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 #include <utility> | 12 #include <utility> |
| 13 | 13 |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "cc/blink/cc_blink_export.h" | 17 #include "cc/blink/cc_blink_export.h" |
| 18 #include "cc/layers/layer_client.h" | 18 #include "cc/layers/layer_client.h" |
| 19 #include "third_party/WebKit/public/platform/WebCString.h" | 19 #include "third_party/WebKit/public/platform/WebCString.h" |
| 20 #include "third_party/WebKit/public/platform/WebColor.h" | 20 #include "third_party/WebKit/public/platform/WebColor.h" |
| 21 #include "third_party/WebKit/public/platform/WebCompositorAnimation.h" | 21 #include "third_party/WebKit/public/platform/WebCompositorAnimation.h" |
| 22 #include "third_party/WebKit/public/platform/WebDoublePoint.h" | 22 #include "third_party/WebKit/public/platform/WebDoublePoint.h" |
| 23 #include "third_party/WebKit/public/platform/WebFloatPoint.h" | 23 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
| 24 #include "third_party/WebKit/public/platform/WebLayer.h" | 24 #include "third_party/WebKit/public/platform/WebLayer.h" |
| 25 #include "third_party/WebKit/public/platform/WebMainThreadScrollingReason.h" | |
| 26 #include "third_party/WebKit/public/platform/WebPoint.h" | 25 #include "third_party/WebKit/public/platform/WebPoint.h" |
| 27 #include "third_party/WebKit/public/platform/WebRect.h" | 26 #include "third_party/WebKit/public/platform/WebRect.h" |
| 28 #include "third_party/WebKit/public/platform/WebSize.h" | 27 #include "third_party/WebKit/public/platform/WebSize.h" |
| 29 #include "third_party/WebKit/public/platform/WebString.h" | 28 #include "third_party/WebKit/public/platform/WebString.h" |
| 30 #include "third_party/WebKit/public/platform/WebVector.h" | 29 #include "third_party/WebKit/public/platform/WebVector.h" |
| 31 #include "third_party/skia/include/utils/SkMatrix44.h" | 30 #include "third_party/skia/include/utils/SkMatrix44.h" |
| 32 | 31 |
| 33 namespace blink { | 32 namespace blink { |
| 34 class WebFilterOperations; | 33 class WebFilterOperations; |
| 35 struct WebFloatRect; | 34 struct WebFloatRect; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 void setScrollClipLayer(blink::WebLayer* clip_layer) override; | 122 void setScrollClipLayer(blink::WebLayer* clip_layer) override; |
| 124 bool scrollable() const override; | 123 bool scrollable() const override; |
| 125 void setUserScrollable(bool horizontal, bool vertical) override; | 124 void setUserScrollable(bool horizontal, bool vertical) override; |
| 126 bool userScrollableHorizontal() const override; | 125 bool userScrollableHorizontal() const override; |
| 127 bool userScrollableVertical() const override; | 126 bool userScrollableVertical() const override; |
| 128 void setHaveWheelEventHandlers(bool have_wheel_event_handlers) override; | 127 void setHaveWheelEventHandlers(bool have_wheel_event_handlers) override; |
| 129 bool haveWheelEventHandlers() const override; | 128 bool haveWheelEventHandlers() const override; |
| 130 void setHaveScrollEventHandlers(bool have_scroll_event_handlers) override; | 129 void setHaveScrollEventHandlers(bool have_scroll_event_handlers) override; |
| 131 bool haveScrollEventHandlers() const override; | 130 bool haveScrollEventHandlers() const override; |
| 132 void addMainThreadScrollingReasons( | 131 void addMainThreadScrollingReasons( |
| 133 blink::WebMainThreadScrollingReason::WebMainThreadScrollingReason | 132 uint32_t main_thread_scrolling_reasons) override; |
| 134 main_thread_scrolling_reasons) override; | |
| 135 void clearMainThreadScrollingReasons() override; | 133 void clearMainThreadScrollingReasons() override; |
| 136 bool shouldScrollOnMainThread() const override; | 134 bool shouldScrollOnMainThread() const override; |
| 137 void setNonFastScrollableRegion( | 135 void setNonFastScrollableRegion( |
| 138 const blink::WebVector<blink::WebRect>& region) override; | 136 const blink::WebVector<blink::WebRect>& region) override; |
| 139 blink::WebVector<blink::WebRect> nonFastScrollableRegion() const override; | 137 blink::WebVector<blink::WebRect> nonFastScrollableRegion() const override; |
| 140 void setTouchEventHandlerRegion( | 138 void setTouchEventHandlerRegion( |
| 141 const blink::WebVector<blink::WebRect>& region) override; | 139 const blink::WebVector<blink::WebRect>& region) override; |
| 142 blink::WebVector<blink::WebRect> touchEventHandlerRegion() const override; | 140 blink::WebVector<blink::WebRect> touchEventHandlerRegion() const override; |
| 143 void setScrollBlocksOn(blink::WebScrollBlocksOn) override; | 141 void setScrollBlocksOn(blink::WebScrollBlocksOn) override; |
| 144 blink::WebScrollBlocksOn scrollBlocksOn() const override; | 142 blink::WebScrollBlocksOn scrollBlocksOn() const override; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 171 | 169 |
| 172 private: | 170 private: |
| 173 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; | 171 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; |
| 174 | 172 |
| 175 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); | 173 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); |
| 176 }; | 174 }; |
| 177 | 175 |
| 178 } // namespace cc_blink | 176 } // namespace cc_blink |
| 179 | 177 |
| 180 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ | 178 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ |
| OLD | NEW |