OLD | NEW |
| (Empty) |
1 // Copyright 2015 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 COMPONENTS_HTML_VIEWER_BLINK_SETTINGS_IMPL_H_ | |
6 #define COMPONENTS_HTML_VIEWER_BLINK_SETTINGS_IMPL_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "components/html_viewer/blink_settings.h" | |
10 | |
11 namespace blink { | |
12 class WebView; | |
13 } | |
14 | |
15 namespace html_viewer { | |
16 struct WebPreferences; | |
17 | |
18 // BlinkSettingsImpl configure blink for a non-testing HTMLViewer. | |
19 class BlinkSettingsImpl : public BlinkSettings { | |
20 public: | |
21 BlinkSettingsImpl(); | |
22 | |
23 // Additional more time-consuming configuration. | |
24 void Init() override; | |
25 | |
26 // interim code: pushes layout test mode and other interim settings | |
27 // into Blink. | |
28 void ApplySettingsToWebView(blink::WebView* view) const override; | |
29 | |
30 protected: | |
31 void ApplyFontRendereringSettings() const; | |
32 void ApplySettings(blink::WebView* view, const WebPreferences& prefs) const; | |
33 | |
34 private: | |
35 bool experimental_webgl_enabled_; | |
36 | |
37 DISALLOW_COPY_AND_ASSIGN(BlinkSettingsImpl); | |
38 }; | |
39 | |
40 } // namespace html_viewer | |
41 | |
42 #endif // COMPONENTS_HTML_VIEWER_BLINK_SETTINGS_IMPL_H_ | |
OLD | NEW |