Get foreground tab on Android
[chromium-blink-merge.git] / webkit / child / webfallbackthemeengine_impl.h
blob84eac420068e667c80c40a8e09f437a08da1f45a
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 WEBKIT_CHILD_WEBFALLBACKTHEMEENGINE_IMPL_H_
6 #define WEBKIT_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 webkit_glue {
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 webkit_glue
39 #endif // WEBKIT_CHILD_WEBFALLBACKTHEMEENGINE_IMPL_H_