summaryrefslogtreecommitdiffstats
path: root/components/html_viewer/web_theme_engine_impl.h
blob: bce5501edcd7c04f502852659ef68a6ff0dc4292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2014 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 COMPONENTS_HTML_VIEWER_WEB_THEME_ENGINE_IMPL_H_
#define COMPONENTS_HTML_VIEWER_WEB_THEME_ENGINE_IMPL_H_

#include "third_party/WebKit/public/platform/WebThemeEngine.h"

namespace html_viewer {

class WebThemeEngineImpl : public blink::WebThemeEngine {
 public:
  // WebThemeEngine methods:
  blink::WebSize getSize(blink::WebThemeEngine::Part) override;
  void paint(blink::WebCanvas* canvas,
             blink::WebThemeEngine::Part part,
             blink::WebThemeEngine::State state,
             const blink::WebRect& rect,
             const blink::WebThemeEngine::ExtraParams* extra_params) override;
  virtual void paintStateTransition(blink::WebCanvas* canvas,
                                    blink::WebThemeEngine::Part part,
                                    blink::WebThemeEngine::State startState,
                                    blink::WebThemeEngine::State endState,
                                    double progress,
                                    const blink::WebRect& rect);
};

}  // namespace html_viewer

#endif  // COMPONENTS_HTML_VIEWER_WEB_THEME_ENGINE_IMPL_H_