Make USB permissions work in the new permission message system
[chromium-blink-merge.git] / content / child / webfallbackthemeengine_impl.h
blob032c3a0bd7dd8962b3c509cdd8246401cccf02d3
1 // Copyright 2014 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 CONTENT_CHILD_WEBFALLBACKTHEMEENGINE_IMPL_H_
6 #define CONTENT_CHILD_WEBFALLBACKTHEMEENGINE_IMPL_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "third_party/WebKit/public/platform/WebFallbackThemeEngine.h"
11 namespace ui {
12 class FallbackTheme;
15 namespace content {
17 class WebFallbackThemeEngineImpl : public blink::WebFallbackThemeEngine {
18 public:
19 WebFallbackThemeEngineImpl();
20 virtual ~WebFallbackThemeEngineImpl();
22 // WebFallbackThemeEngine methods:
23 virtual blink::WebSize getSize(blink::WebFallbackThemeEngine::Part);
24 virtual void paint(
25 blink::WebCanvas* canvas,
26 blink::WebFallbackThemeEngine::Part part,
27 blink::WebFallbackThemeEngine::State state,
28 const blink::WebRect& rect,
29 const blink::WebFallbackThemeEngine::ExtraParams* extra_params);
31 private:
32 scoped_ptr<ui::FallbackTheme> theme_;
34 DISALLOW_COPY_AND_ASSIGN(WebFallbackThemeEngineImpl);
37 } // namespace content
39 #endif // CONTENT_CHILD_WEBFALLBACKTHEMEENGINE_IMPL_H_