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 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "cc/input/top_controls_state.h" | 14 #include "cc/input/browser_controls_state.h" |
15 #include "cc/output/managed_memory_policy.h" | 15 #include "cc/output/managed_memory_policy.h" |
16 #include "cc/output/swap_promise.h" | 16 #include "cc/output/swap_promise.h" |
17 #include "cc/trees/layer_tree_host_client.h" | 17 #include "cc/trees/layer_tree_host_client.h" |
18 #include "cc/trees/layer_tree_host_single_thread_client.h" | 18 #include "cc/trees/layer_tree_host_single_thread_client.h" |
19 #include "cc/trees/layer_tree_settings.h" | 19 #include "cc/trees/layer_tree_settings.h" |
20 #include "cc/trees/remote_proto_channel.h" | 20 #include "cc/trees/remote_proto_channel.h" |
21 #include "cc/trees/swap_promise_monitor.h" | 21 #include "cc/trees/swap_promise_monitor.h" |
22 #include "content/common/content_export.h" | 22 #include "content/common/content_export.h" |
23 #include "content/renderer/gpu/compositor_dependencies.h" | 23 #include "content/renderer/gpu/compositor_dependencies.h" |
24 #include "third_party/WebKit/public/platform/WebLayerTreeView.h" | 24 #include "third_party/WebKit/public/platform/WebLayerTreeView.h" |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 blink::WebEventListenerProperties eventListenerProperties( | 155 blink::WebEventListenerProperties eventListenerProperties( |
156 blink::WebEventListenerClass eventClass) const override; | 156 blink::WebEventListenerClass eventClass) const override; |
157 void setHaveScrollEventHandlers(bool) override; | 157 void setHaveScrollEventHandlers(bool) override; |
158 bool haveScrollEventHandlers() const override; | 158 bool haveScrollEventHandlers() const override; |
159 int layerTreeId() const override; | 159 int layerTreeId() const override; |
160 void setShowFPSCounter(bool show) override; | 160 void setShowFPSCounter(bool show) override; |
161 void setShowPaintRects(bool show) override; | 161 void setShowPaintRects(bool show) override; |
162 void setShowDebugBorders(bool show) override; | 162 void setShowDebugBorders(bool show) override; |
163 void setShowScrollBottleneckRects(bool show) override; | 163 void setShowScrollBottleneckRects(bool show) override; |
164 | 164 |
165 void updateTopControlsState(blink::WebTopControlsState constraints, | 165 void updateBrowserControlsState(blink::WebBrowserControlsState constraints, |
166 blink::WebTopControlsState current, | 166 blink::WebBrowserControlsState current, |
167 bool animate) override; | 167 bool animate) override; |
168 void setTopControlsHeight(float height, bool shrink) override; | 168 void setBrowserControlsHeight(float height, bool shrink) override; |
169 void setTopControlsShownRatio(float) override; | 169 void setBrowserControlsShownRatio(float) override; |
170 // TODO(ianwen): Move this method to WebLayerTreeView and implement main | 170 // TODO(ianwen): Move this method to WebLayerTreeView and implement main |
171 // thread scrolling. | 171 // thread scrolling. |
172 virtual void setBottomControlsHeight(float height); | 172 virtual void setBottomControlsHeight(float height); |
173 | 173 |
174 // cc::LayerTreeHostClient implementation. | 174 // cc::LayerTreeHostClient implementation. |
175 void WillBeginMainFrame() override; | 175 void WillBeginMainFrame() override; |
176 void DidBeginMainFrame() override; | 176 void DidBeginMainFrame() override; |
177 void BeginMainFrame(const cc::BeginFrameArgs& args) override; | 177 void BeginMainFrame(const cc::BeginFrameArgs& args) override; |
178 void BeginMainFrameNotExpectedSoon() override; | 178 void BeginMainFrameNotExpectedSoon() override; |
179 void UpdateLayerTreeHost() override; | 179 void UpdateLayerTreeHost() override; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; | 230 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; |
231 | 231 |
232 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; | 232 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; |
233 | 233 |
234 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 234 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
235 }; | 235 }; |
236 | 236 |
237 } // namespace content | 237 } // namespace content |
238 | 238 |
239 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 239 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |