forked from nwjs/chromium.src
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmock_web_theme_engine.h
More file actions
30 lines (23 loc) · 970 Bytes
/
mock_web_theme_engine.h
File metadata and controls
30 lines (23 loc) · 970 Bytes
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
// 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 CONTENT_SHELL_TEST_RUNNER_MOCK_WEB_THEME_ENGINE_H_
#define CONTENT_SHELL_TEST_RUNNER_MOCK_WEB_THEME_ENGINE_H_
#include "build/build_config.h"
#include "third_party/blink/public/platform/web_theme_engine.h"
namespace test_runner {
class MockWebThemeEngine : public blink::WebThemeEngine {
public:
virtual ~MockWebThemeEngine() {}
#if !defined(OS_MACOSX)
// blink::WebThemeEngine:
blink::WebSize GetSize(blink::WebThemeEngine::Part) override;
void Paint(cc::PaintCanvas*,
blink::WebThemeEngine::Part,
blink::WebThemeEngine::State,
const blink::WebRect&,
const blink::WebThemeEngine::ExtraParams*) override;
#endif // !defined(OS_MACOSX)
};
} // namespace test_runner
#endif // CONTENT_SHELL_TEST_RUNNER_MOCK_WEB_THEME_ENGINE_H_