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

Unified Diff: chrome/renderer/pepper_scrollbar_widget.h

Issue 6646025: Deleted WebPluginDelegatePepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/pepper_devices_browsertest.cc ('k') | chrome/renderer/pepper_scrollbar_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/pepper_scrollbar_widget.h
===================================================================
--- chrome/renderer/pepper_scrollbar_widget.h (revision 77518)
+++ chrome/renderer/pepper_scrollbar_widget.h (working copy)
@@ -1,62 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_RENDERER_PEPPER_SCROLLBAR_WIDGET_H_
-#define CHROME_RENDERER_PEPPER_SCROLLBAR_WIDGET_H_
-#pragma once
-
-#include <vector>
-
-#include "base/ref_counted.h"
-#include "base/scoped_ptr.h"
-#include "build/build_config.h"
-#include "chrome/renderer/pepper_widget.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebScrollbarClient.h"
-#include "ui/gfx/point.h"
-#include "ui/gfx/rect.h"
-
-// An implementation of a horizontal/vertical scrollbar.
-class PepperScrollbarWidget : public PepperWidget,
- public WebKit::WebScrollbarClient,
- public base::RefCounted<PepperScrollbarWidget> {
- public:
- explicit PepperScrollbarWidget(const NPScrollbarCreateParams& params);
-
- // PepperWidget
- virtual void Destroy();
- virtual void Paint(Graphics2DDeviceContext* context, const NPRect& dirty);
- virtual bool HandleEvent(const NPPepperEvent& event);
- virtual void GetProperty(NPWidgetProperty property, void* value);
- virtual void SetProperty(NPWidgetProperty property, void* value);
-
- // WebKit::WebScrollbarClient
- virtual void valueChanged(WebKit::WebScrollbar*);
- virtual void invalidateScrollbarRect(WebKit::WebScrollbar*,
- const WebKit::WebRect&);
- virtual void getTickmarks(WebKit::WebScrollbar*,
- WebKit::WebVector<WebKit::WebRect>*) const;
-
-#if defined(OS_LINUX)
- static void SetScrollbarColors(unsigned inactive_color,
- unsigned active_color,
- unsigned track_color);
-#endif
-
- private:
- friend class base::RefCounted<PepperScrollbarWidget>;
-
- ~PepperScrollbarWidget();
-
- void NotifyInvalidate();
-
- gfx::Rect dirty_rect_;
- gfx::Rect location_;
- std::vector<WebKit::WebRect> tickmarks_;
- scoped_ptr<WebKit::WebScrollbar> scrollbar_;
-
- DISALLOW_COPY_AND_ASSIGN(PepperScrollbarWidget);
-};
-
-#endif // CHROME_RENDERER_PEPPER_SCROLLBAR_WIDGET_H_
« no previous file with comments | « chrome/renderer/pepper_devices_browsertest.cc ('k') | chrome/renderer/pepper_scrollbar_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698