OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/renderer/pepper_scrollbar_widget.h" | 5 #include "chrome/renderer/pepper_scrollbar_widget.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "chrome/renderer/pepper_devices.h" | 10 #include "chrome/renderer/pepper_devices.h" |
11 #include "skia/ext/platform_canvas.h" | 11 #include "skia/ext/platform_canvas.h" |
12 #include "skia/ext/platform_device.h" | 12 #include "skia/ext/platform_device.h" |
13 #include "third_party/WebKit/WebKit/chromium/public/WebScrollbar.h" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebScrollbar.h" |
14 #include "webkit/glue/plugins/plugin_instance.h" | 14 #include "webkit/plugins/npapi/plugin_instance.h" |
15 #include "webkit/glue/webkit_glue.h" | 15 #include "webkit/glue/webkit_glue.h" |
16 | 16 |
17 using WebKit::WebInputEvent; | 17 using WebKit::WebInputEvent; |
18 using WebKit::WebKeyboardEvent; | 18 using WebKit::WebKeyboardEvent; |
19 using WebKit::WebMouseEvent; | 19 using WebKit::WebMouseEvent; |
20 using WebKit::WebMouseWheelEvent; | 20 using WebKit::WebMouseWheelEvent; |
21 using WebKit::WebRect; | 21 using WebKit::WebRect; |
22 using WebKit::WebScrollbar; | 22 using WebKit::WebScrollbar; |
23 using WebKit::WebVector; | 23 using WebKit::WebVector; |
24 | 24 |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 tickmarks->assign(rects, 0); | 289 tickmarks->assign(rects, 0); |
290 } else { | 290 } else { |
291 tickmarks->assign(&tickmarks_[0], tickmarks_.size()); | 291 tickmarks->assign(&tickmarks_[0], tickmarks_.size()); |
292 } | 292 } |
293 } | 293 } |
294 | 294 |
295 void PepperScrollbarWidget::NotifyInvalidate() { | 295 void PepperScrollbarWidget::NotifyInvalidate() { |
296 if (!dirty_rect_.IsEmpty()) | 296 if (!dirty_rect_.IsEmpty()) |
297 WidgetPropertyChanged(NPWidgetPropertyDirtyRect); | 297 WidgetPropertyChanged(NPWidgetPropertyDirtyRect); |
298 } | 298 } |
OLD | NEW |