blob: 5b4338cd9e8ed698ec7bf301dc66264fb9acb528 (
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
32
33
34
35
36
37
38
39
40
41
42
|
// Copyright 2015 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_BLINK_SETTINGS_IMPL_H_
#define COMPONENTS_HTML_VIEWER_BLINK_SETTINGS_IMPL_H_
#include "base/basictypes.h"
#include "components/html_viewer/blink_settings.h"
namespace blink {
class WebView;
}
namespace html_viewer {
struct WebPreferences;
// BlinkSettingsImpl configure blink for a non-testing HTMLViewer.
class BlinkSettingsImpl : public BlinkSettings {
public:
BlinkSettingsImpl();
// Additional more time-consuming configuration.
void Init() override;
// interim code: pushes layout test mode and other interim settings
// into Blink.
void ApplySettingsToWebView(blink::WebView* view) const override;
protected:
void ApplyFontRendereringSettings() const;
void ApplySettings(blink::WebView* view, const WebPreferences& prefs) const;
private:
bool experimental_webgl_enabled_;
DISALLOW_COPY_AND_ASSIGN(BlinkSettingsImpl);
};
} // namespace html_viewer
#endif // COMPONENTS_HTML_VIEWER_BLINK_SETTINGS_IMPL_H_
|