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/keyboard_codes.h" | |
9 #include "base/logging.h" | 8 #include "base/logging.h" |
10 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
11 #include "chrome/renderer/pepper_devices.h" | 10 #include "chrome/renderer/pepper_devices.h" |
12 #include "skia/ext/platform_canvas.h" | 11 #include "skia/ext/platform_canvas.h" |
13 #include "skia/ext/platform_device.h" | 12 #include "skia/ext/platform_device.h" |
14 #include "third_party/WebKit/WebKit/chromium/public/WebScrollbar.h" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebScrollbar.h" |
15 #include "webkit/glue/plugins/plugin_instance.h" | 14 #include "webkit/glue/plugins/plugin_instance.h" |
16 #include "webkit/glue/webkit_glue.h" | 15 #include "webkit/glue/webkit_glue.h" |
17 | 16 |
18 using WebKit::WebInputEvent; | 17 using WebKit::WebInputEvent; |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 tickmarks->assign(rects, 0); | 289 tickmarks->assign(rects, 0); |
291 } else { | 290 } else { |
292 tickmarks->assign(&tickmarks_[0], tickmarks_.size()); | 291 tickmarks->assign(&tickmarks_[0], tickmarks_.size()); |
293 } | 292 } |
294 } | 293 } |
295 | 294 |
296 void PepperScrollbarWidget::NotifyInvalidate() { | 295 void PepperScrollbarWidget::NotifyInvalidate() { |
297 if (!dirty_rect_.IsEmpty()) | 296 if (!dirty_rect_.IsEmpty()) |
298 WidgetPropertyChanged(NPWidgetPropertyDirtyRect); | 297 WidgetPropertyChanged(NPWidgetPropertyDirtyRect); |
299 } | 298 } |
OLD | NEW |