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

Side by Side Diff: webkit/plugins/ppapi/ppb_scrollbar_impl.h

Issue 7637018: Get rid of temporary scrollbar code now that WebKit is rolled. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
« no previous file with comments | « no previous file | webkit/plugins/ppapi/ppb_scrollbar_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PLUGINS_PPAPI_PPB_SCROLLBAR_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/task.h" 10 #include "base/task.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 // PPB_Widget private implementation. 57 // PPB_Widget private implementation.
58 virtual PP_Bool PaintInternal(const gfx::Rect& rect, 58 virtual PP_Bool PaintInternal(const gfx::Rect& rect,
59 PPB_ImageData_Impl* image) OVERRIDE; 59 PPB_ImageData_Impl* image) OVERRIDE;
60 virtual PP_Bool HandleEventInternal( 60 virtual PP_Bool HandleEventInternal(
61 const ::ppapi::InputEventData& data) OVERRIDE; 61 const ::ppapi::InputEventData& data) OVERRIDE;
62 virtual void SetLocationInternal(const PP_Rect* location) OVERRIDE; 62 virtual void SetLocationInternal(const PP_Rect* location) OVERRIDE;
63 63
64 // WebKit::WebScrollbarClient implementation. 64 // WebKit::WebScrollbarClient implementation.
65 virtual void valueChanged(WebKit::WebScrollbar* scrollbar) OVERRIDE; 65 virtual void valueChanged(WebKit::WebScrollbar* scrollbar) OVERRIDE;
66 // TODO(jam): add OVERRIDE once WebKit is rolled 66 virtual void overlayChanged(WebKit::WebScrollbar* scrollbar) OVERRIDE;
67 virtual void overlayChanged(WebKit::WebScrollbar* scrollbar);
68 virtual void invalidateScrollbarRect(WebKit::WebScrollbar* scrollbar, 67 virtual void invalidateScrollbarRect(WebKit::WebScrollbar* scrollbar,
69 const WebKit::WebRect& rect) OVERRIDE; 68 const WebKit::WebRect& rect) OVERRIDE;
70 virtual void getTickmarks( 69 virtual void getTickmarks(
71 WebKit::WebScrollbar* scrollbar, 70 WebKit::WebScrollbar* scrollbar,
72 WebKit::WebVector<WebKit::WebRect>* tick_marks) const OVERRIDE; 71 WebKit::WebVector<WebKit::WebRect>* tick_marks) const OVERRIDE;
73 72
74 void NotifyInvalidate(); 73 void NotifyInvalidate();
75 74
76 gfx::Rect dirty_; 75 gfx::Rect dirty_;
77 std::vector<WebKit::WebRect> tickmarks_; 76 std::vector<WebKit::WebRect> tickmarks_;
78 scoped_ptr<WebKit::WebScrollbar> scrollbar_; 77 scoped_ptr<WebKit::WebScrollbar> scrollbar_;
79 78
80 // Used so that the post task for Invalidate doesn't keep an extra reference. 79 // Used so that the post task for Invalidate doesn't keep an extra reference.
81 ScopedRunnableMethodFactory<PPB_Scrollbar_Impl> method_factory_; 80 ScopedRunnableMethodFactory<PPB_Scrollbar_Impl> method_factory_;
82 81
83 DISALLOW_COPY_AND_ASSIGN(PPB_Scrollbar_Impl); 82 DISALLOW_COPY_AND_ASSIGN(PPB_Scrollbar_Impl);
84 }; 83 };
85 84
86 } // namespace ppapi 85 } // namespace ppapi
87 } // namespace webkit 86 } // namespace webkit
88 87
89 #endif // WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_IMPL_H_ 88 #endif // WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/plugins/ppapi/ppb_scrollbar_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698