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

Side by Side Diff: Source/web/WebPluginScrollbarImpl.h

Issue 23734003: Add the text direction to the WebScrollbar interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: less memory Created 7 years, 3 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 24 matching lines...) Expand all
35 class IntRect; 35 class IntRect;
36 class Scrollbar; 36 class Scrollbar;
37 } 37 }
38 38
39 namespace WebKit { 39 namespace WebKit {
40 40
41 class ScrollbarGroup; 41 class ScrollbarGroup;
42 42
43 class WebPluginScrollbarImpl : public WebPluginScrollbar { 43 class WebPluginScrollbarImpl : public WebPluginScrollbar {
44 public: 44 public:
45 WebPluginScrollbarImpl(Orientation, 45 WebPluginScrollbarImpl(Orientation, ScrollbarGroup*, WebPluginScrollbarClien t*);
46 ScrollbarGroup*,
47 WebPluginScrollbarClient*);
48 ~WebPluginScrollbarImpl(); 46 ~WebPluginScrollbarImpl();
49 47
50 void setScrollOffset(int); 48 void setScrollOffset(int);
51 void invalidateScrollbarRect(const WebCore::IntRect&); 49 void invalidateScrollbarRect(const WebCore::IntRect&);
52 // FIXME: Combine this with the other getTickmarks method 50 // FIXME: Combine this with the other getTickmarks method
53 void getTickmarks(Vector<WebCore::IntRect>&) const; 51 void getTickmarks(Vector<WebCore::IntRect>&) const;
54 WebCore::IntPoint convertFromContainingViewToScrollbar(const WebCore::IntPoi nt& parentPoint) const; 52 WebCore::IntPoint convertFromContainingViewToScrollbar(const WebCore::IntPoi nt& parentPoint) const;
55 void scrollbarStyleChanged(); 53 void scrollbarStyleChanged();
56 54
57 int scrollOffset() { return m_scrollOffset; } 55 int scrollOffset() { return m_scrollOffset; }
58 WebCore::Scrollbar* scrollbar() { return m_scrollbar.get(); } 56 WebCore::Scrollbar* scrollbar() { return m_scrollbar.get(); }
59 57
60 // WebKit::WebScrollbar methods 58 // WebKit::WebScrollbar methods
61 virtual bool isOverlay() const OVERRIDE; 59 virtual bool isOverlay() const OVERRIDE;
62 virtual int value() const OVERRIDE; 60 virtual int value() const OVERRIDE;
63 virtual WebPoint location() const OVERRIDE; 61 virtual WebPoint location() const OVERRIDE;
64 virtual WebSize size() const OVERRIDE; 62 virtual WebSize size() const OVERRIDE;
65 virtual bool enabled() const OVERRIDE; 63 virtual bool enabled() const OVERRIDE;
66 virtual int maximum() const OVERRIDE; 64 virtual int maximum() const OVERRIDE;
67 virtual int totalSize() const OVERRIDE; 65 virtual int totalSize() const OVERRIDE;
68 virtual bool isScrollViewScrollbar() const OVERRIDE; 66 virtual bool isScrollViewScrollbar() const OVERRIDE;
69 virtual bool isScrollableAreaActive() const OVERRIDE; 67 virtual bool isScrollableAreaActive() const OVERRIDE;
70 virtual void getTickmarks(WebVector<WebRect>& tickmarks) const OVERRIDE; 68 virtual void getTickmarks(WebVector<WebRect>& tickmarks) const OVERRIDE;
71 virtual WebScrollbar::ScrollbarControlSize controlSize() const OVERRIDE; 69 virtual WebScrollbar::ScrollbarControlSize controlSize() const OVERRIDE;
72 virtual WebScrollbar::ScrollbarPart pressedPart() const OVERRIDE; 70 virtual WebScrollbar::ScrollbarPart pressedPart() const OVERRIDE;
73 virtual WebScrollbar::ScrollbarPart hoveredPart() const OVERRIDE; 71 virtual WebScrollbar::ScrollbarPart hoveredPart() const OVERRIDE;
74 virtual WebScrollbar::ScrollbarOverlayStyle scrollbarOverlayStyle() const OV ERRIDE; 72 virtual WebScrollbar::ScrollbarOverlayStyle scrollbarOverlayStyle() const OV ERRIDE;
75 virtual WebScrollbar::Orientation orientation() const OVERRIDE; 73 virtual WebScrollbar::Orientation orientation() const OVERRIDE;
74 virtual bool isRightToLeft() const OVERRIDE;
76 virtual bool isCustomScrollbar() const OVERRIDE; 75 virtual bool isCustomScrollbar() const OVERRIDE;
77 76
78 // WebKit::WebPluginScrollbar methods 77 // WebKit::WebPluginScrollbar methods
79 virtual void setLocation(const WebRect&) OVERRIDE; 78 virtual void setLocation(const WebRect&) OVERRIDE;
80 virtual void setValue(int position) OVERRIDE; 79 virtual void setValue(int position) OVERRIDE;
81 virtual void setDocumentSize(int) OVERRIDE; 80 virtual void setDocumentSize(int) OVERRIDE;
82 virtual void scroll(ScrollDirection, ScrollGranularity, float multiplier) OV ERRIDE; 81 virtual void scroll(ScrollDirection, ScrollGranularity, float multiplier) OV ERRIDE;
83 virtual void paint(WebCanvas*, const WebRect&) OVERRIDE; 82 virtual void paint(WebCanvas*, const WebRect&) OVERRIDE;
84 virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE; 83 virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE;
85 virtual bool isAlphaLocked() const OVERRIDE; 84 virtual bool isAlphaLocked() const OVERRIDE;
(...skipping 10 matching lines...) Expand all
96 ScrollbarGroup* m_group; 95 ScrollbarGroup* m_group;
97 WebPluginScrollbarClient* m_client; 96 WebPluginScrollbarClient* m_client;
98 97
99 int m_scrollOffset; 98 int m_scrollOffset;
100 RefPtr<WebCore::Scrollbar> m_scrollbar; 99 RefPtr<WebCore::Scrollbar> m_scrollbar;
101 }; 100 };
102 101
103 } // namespace WebKit 102 } // namespace WebKit
104 103
105 #endif 104 #endif
OLDNEW
« no previous file with comments | « Source/core/platform/chromium/support/WebScrollbarImpl.cpp ('k') | Source/web/WebPluginScrollbarImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698