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

Side by Side Diff: webkit/compositor_bindings/web_scrollbar_layer_impl.h

Issue 11550035: Implement pinch-zoom scaling for main-frame scrollbars and pinch-zoom overlay scrollbars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revised architecture - complete cl for comments on approach. Created 7 years, 10 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 WebScrollbarLayerImpl_h 5 #ifndef WebScrollbarLayerImpl_h
6 #define WebScrollbarLayerImpl_h 6 #define WebScrollbarLayerImpl_h
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbarLayer.h " 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbarLayer.h "
10 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h" 10 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h"
11 11
12 namespace WebKit { 12 namespace WebKit {
13 class WebLayerImpl; 13 class WebLayerImpl;
14 14
15 class WebScrollbarLayerImpl : public WebScrollbarLayer { 15 class WebScrollbarLayerImpl : public WebScrollbarLayer {
16 public: 16 public:
17 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebScrollbarLayerImpl( 17 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebScrollbarLayerImpl(
18 WebScrollbar*, WebScrollbarThemePainter, WebScrollbarThemeGeometry*); 18 WebScrollbar*, WebScrollbarThemePainter, WebScrollbarThemeGeometry*);
19 virtual ~WebScrollbarLayerImpl(); 19 virtual ~WebScrollbarLayerImpl();
20 20
21 // WebScrollbarLayer implementation. 21 // WebScrollbarLayer implementation.
22 virtual WebLayer* layer() OVERRIDE; 22 virtual WebLayer* layer() OVERRIDE;
23 virtual void setScrollLayer(WebLayer*) OVERRIDE; 23 virtual void setScrollLayer(WebLayer*) OVERRIDE;
24 24
25 WEBKIT_COMPOSITOR_BINDINGS_EXPORT static void setDefaultGeometry(WebScrollba rThemeGeometry*);
26 WEBKIT_COMPOSITOR_BINDINGS_EXPORT static void setDefaultUsesOverlayScrollbar s(bool);
27
25 private: 28 private:
26 scoped_ptr<WebLayerImpl> m_layer; 29 scoped_ptr<WebLayerImpl> m_layer;
27 }; 30 };
28 31
29 } 32 }
30 33
31 #endif // WebScrollbarLayerImpl_h 34 #endif // WebScrollbarLayerImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698