Check USB device path access when prompting users to select a device.
[chromium-blink-merge.git] / chrome / renderer / webview_color_overlay.h
blobe195c4ddbfb5a592c69e509b7468bc72940cb9b9
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_
6 #define CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "third_party/WebKit/public/web/WebPageOverlay.h"
11 #include "third_party/skia/include/core/SkColor.h"
13 namespace content {
14 class RenderView;
17 // This class draws the given color on a PageOverlay of a WebView.
18 class WebViewColorOverlay : public blink::WebPageOverlay {
19 public:
20 WebViewColorOverlay(content::RenderView* render_view, SkColor color);
21 virtual ~WebViewColorOverlay();
23 private:
24 // blink::WebPageOverlay implementation:
25 virtual void paintPageOverlay(blink::WebGraphicsContext* context,
26 const blink::WebSize& webViewSize);
28 content::RenderView* render_view_;
29 SkColor color_;
31 DISALLOW_COPY_AND_ASSIGN(WebViewColorOverlay);
34 #endif // CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_