Home | History | Annotate | Download | only in child
      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.
      4 
      5 #ifndef WEBKIT_CHILD_WEBFALLBACKTHEMEENGINE_IMPL_H_
      6 #define WEBKIT_CHILD_WEBFALLBACKTHEMEENGINE_IMPL_H_
      7 
      8 #include "base/memory/scoped_ptr.h"
      9 #include "third_party/WebKit/public/platform/WebFallbackThemeEngine.h"
     10 
     11 namespace ui {
     12 class FallbackTheme;
     13 }
     14 
     15 namespace webkit_glue {
     16 
     17 class WebFallbackThemeEngineImpl : public blink::WebFallbackThemeEngine {
     18  public:
     19   WebFallbackThemeEngineImpl();
     20   virtual ~WebFallbackThemeEngineImpl();
     21 
     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);
     30 
     31  private:
     32   scoped_ptr<ui::FallbackTheme> theme_;
     33 
     34   DISALLOW_COPY_AND_ASSIGN(WebFallbackThemeEngineImpl);
     35 };
     36 
     37 }  // namespace webkit_glue
     38 
     39 #endif  // WEBKIT_CHILD_WEBFALLBACKTHEMEENGINE_IMPL_H_
     40