| 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 #ifndef CHROME_RENDERER_PEPPER_SCROLLBAR_WIDGET_H_ | 5 #ifndef CHROME_RENDERER_PEPPER_SCROLLBAR_WIDGET_H_ |
| 6 #define CHROME_RENDERER_PEPPER_SCROLLBAR_WIDGET_H_ | 6 #define CHROME_RENDERER_PEPPER_SCROLLBAR_WIDGET_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/ref_counted.h" | 11 #include "base/ref_counted.h" |
| 12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "gfx/point.h" | |
| 15 #include "gfx/rect.h" | |
| 16 #include "chrome/renderer/pepper_widget.h" | 14 #include "chrome/renderer/pepper_widget.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScrollbarClient.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScrollbarClient.h" |
| 17 #include "ui/gfx/point.h" |
| 18 #include "ui/gfx/rect.h" |
| 19 | 19 |
| 20 // An implementation of a horizontal/vertical scrollbar. | 20 // An implementation of a horizontal/vertical scrollbar. |
| 21 class PepperScrollbarWidget : public PepperWidget, | 21 class PepperScrollbarWidget : public PepperWidget, |
| 22 public WebKit::WebScrollbarClient, | 22 public WebKit::WebScrollbarClient, |
| 23 public base::RefCounted<PepperScrollbarWidget> { | 23 public base::RefCounted<PepperScrollbarWidget> { |
| 24 public: | 24 public: |
| 25 explicit PepperScrollbarWidget(const NPScrollbarCreateParams& params); | 25 explicit PepperScrollbarWidget(const NPScrollbarCreateParams& params); |
| 26 | 26 |
| 27 // PepperWidget | 27 // PepperWidget |
| 28 virtual void Destroy(); | 28 virtual void Destroy(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 53 | 53 |
| 54 gfx::Rect dirty_rect_; | 54 gfx::Rect dirty_rect_; |
| 55 gfx::Rect location_; | 55 gfx::Rect location_; |
| 56 std::vector<WebKit::WebRect> tickmarks_; | 56 std::vector<WebKit::WebRect> tickmarks_; |
| 57 scoped_ptr<WebKit::WebScrollbar> scrollbar_; | 57 scoped_ptr<WebKit::WebScrollbar> scrollbar_; |
| 58 | 58 |
| 59 DISALLOW_COPY_AND_ASSIGN(PepperScrollbarWidget); | 59 DISALLOW_COPY_AND_ASSIGN(PepperScrollbarWidget); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 #endif // CHROME_RENDERER_PEPPER_SCROLLBAR_WIDGET_H_ | 62 #endif // CHROME_RENDERER_PEPPER_SCROLLBAR_WIDGET_H_ |
| OLD | NEW |