| 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/Source/WebKit/chromium/public/WebInputEvent.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScrollbar.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScrollbar.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" |
| 14 #include "webkit/plugins/npapi/plugin_instance.h" | 16 #include "webkit/plugins/npapi/plugin_instance.h" |
| 15 #include "webkit/glue/webkit_glue.h" | 17 #include "webkit/glue/webkit_glue.h" |
| 16 | 18 |
| 17 using WebKit::WebInputEvent; | 19 using WebKit::WebInputEvent; |
| 18 using WebKit::WebKeyboardEvent; | 20 using WebKit::WebKeyboardEvent; |
| 19 using WebKit::WebMouseEvent; | 21 using WebKit::WebMouseEvent; |
| 20 using WebKit::WebMouseWheelEvent; | 22 using WebKit::WebMouseWheelEvent; |
| 21 using WebKit::WebRect; | 23 using WebKit::WebRect; |
| 22 using WebKit::WebScrollbar; | 24 using WebKit::WebScrollbar; |
| 23 using WebKit::WebVector; | 25 using WebKit::WebVector; |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 tickmarks->assign(rects, 0); | 291 tickmarks->assign(rects, 0); |
| 290 } else { | 292 } else { |
| 291 tickmarks->assign(&tickmarks_[0], tickmarks_.size()); | 293 tickmarks->assign(&tickmarks_[0], tickmarks_.size()); |
| 292 } | 294 } |
| 293 } | 295 } |
| 294 | 296 |
| 295 void PepperScrollbarWidget::NotifyInvalidate() { | 297 void PepperScrollbarWidget::NotifyInvalidate() { |
| 296 if (!dirty_rect_.IsEmpty()) | 298 if (!dirty_rect_.IsEmpty()) |
| 297 WidgetPropertyChanged(NPWidgetPropertyDirtyRect); | 299 WidgetPropertyChanged(NPWidgetPropertyDirtyRect); |
| 298 } | 300 } |
| OLD | NEW |