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

Side by Side Diff: webkit/renderer/compositor_bindings/web_compositor_support_impl.h

Issue 16679011: Add viewport scrollbar class to support overlay scrollbars for pinch zoom virtual viewport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
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 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_ 5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_
6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_ 6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "third_party/WebKit/public/platform/WebCompositorSupport.h" 10 #include "third_party/WebKit/public/platform/WebCompositorSupport.h"
11 #include "third_party/WebKit/public/platform/WebLayer.h" 11 #include "third_party/WebKit/public/platform/WebLayer.h"
12 #include "third_party/WebKit/public/platform/WebScrollbar.h"
12 #include "third_party/WebKit/public/platform/WebTransformOperations.h" 13 #include "third_party/WebKit/public/platform/WebTransformOperations.h"
13 14
14 namespace WebKit { 15 namespace WebKit {
15 class WebGraphicsContext3D; 16 class WebGraphicsContext3D;
16 } 17 }
17 18
18 namespace webkit { 19 namespace webkit {
19 20
20 class WebCompositorSupportImpl : public WebKit::WebCompositorSupport { 21 class WebCompositorSupportImpl : public WebKit::WebCompositorSupport {
21 public: 22 public:
22 WebCompositorSupportImpl(); 23 WebCompositorSupportImpl();
23 virtual ~WebCompositorSupportImpl(); 24 virtual ~WebCompositorSupportImpl();
24 25
25 virtual WebKit::WebLayer* createLayer(); 26 virtual WebKit::WebLayer* createLayer();
26 virtual WebKit::WebContentLayer* createContentLayer( 27 virtual WebKit::WebContentLayer* createContentLayer(
27 WebKit::WebContentLayerClient* client); 28 WebKit::WebContentLayerClient* client);
28 virtual WebKit::WebExternalTextureLayer* createExternalTextureLayer( 29 virtual WebKit::WebExternalTextureLayer* createExternalTextureLayer(
29 WebKit::WebExternalTextureLayerClient* client); 30 WebKit::WebExternalTextureLayerClient* client);
30 virtual WebKit::WebExternalTextureLayer* 31 virtual WebKit::WebExternalTextureLayer*
31 createExternalTextureLayerForMailbox( 32 createExternalTextureLayerForMailbox(
32 WebKit::WebExternalTextureLayerClient* client); 33 WebKit::WebExternalTextureLayerClient* client);
33 virtual WebKit::WebImageLayer* createImageLayer(); 34 virtual WebKit::WebImageLayer* createImageLayer();
34 virtual WebKit::WebSolidColorLayer* createSolidColorLayer(); 35 virtual WebKit::WebSolidColorLayer* createSolidColorLayer();
35 virtual WebKit::WebScrollbarLayer* createScrollbarLayer( 36 virtual WebKit::WebScrollbarLayer* createScrollbarLayer(
36 WebKit::WebScrollbar* scrollbar, 37 WebKit::WebScrollbar* scrollbar,
37 WebKit::WebScrollbarThemePainter painter, 38 WebKit::WebScrollbarThemePainter painter,
38 WebKit::WebScrollbarThemeGeometry*); 39 WebKit::WebScrollbarThemeGeometry*);
40 virtual WebKit::WebScrollbarLayer* createScrollbarLayer(
enne (OOO) 2013/06/14 20:56:59 I had a conversation with jamesr who suggested tha
wjmaclean 2013/06/17 13:44:28 Yes, I will remove the compositor bindings parts,
41 WebKit::WebLayer* scroll_layer,
42 WebKit::WebScrollbar::Orientation orientation,
43 size_t thickness);
39 virtual WebKit::WebAnimation* createAnimation( 44 virtual WebKit::WebAnimation* createAnimation(
40 const WebKit::WebAnimationCurve& curve, 45 const WebKit::WebAnimationCurve& curve,
41 WebKit::WebAnimation::TargetProperty target, 46 WebKit::WebAnimation::TargetProperty target,
42 int animation_id); 47 int animation_id);
43 virtual WebKit::WebFloatAnimationCurve* createFloatAnimationCurve(); 48 virtual WebKit::WebFloatAnimationCurve* createFloatAnimationCurve();
44 virtual WebKit::WebTransformAnimationCurve* createTransformAnimationCurve(); 49 virtual WebKit::WebTransformAnimationCurve* createTransformAnimationCurve();
45 virtual WebKit::WebTransformOperations* createTransformOperations(); 50 virtual WebKit::WebTransformOperations* createTransformOperations();
46 51
47 private: 52 private:
48 DISALLOW_COPY_AND_ASSIGN(WebCompositorSupportImpl); 53 DISALLOW_COPY_AND_ASSIGN(WebCompositorSupportImpl);
49 }; 54 };
50 55
51 } // namespace webkit 56 } // namespace webkit
52 57
53 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_ 58 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698