| 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_H_ | |
| 6 #define COMPONENTS_HTML_VIEWER_BLINK_SETTINGS_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 class WebView; | |
| 12 } | |
| 13 | |
| 14 namespace html_viewer { | |
| 15 | |
| 16 // BlinkSettings is a pure-virtual interface for configuring blink for | |
| 17 // use by this HTMLViewer. | |
| 18 // | |
| 19 // TODO(rjkroege): The methods labeled "interim" are waiting on the a | |
| 20 // future rationaliztion of the code comprising blink::WebSettings, | |
| 21 // content::WebPreferences etc. per http://crbug.com/481108 | |
| 22 // | |
| 23 // TODO(rjkroege): Support configuring preferences via mojo as necessary. | |
| 24 class BlinkSettings { | |
| 25 public: | |
| 26 BlinkSettings(); | |
| 27 virtual ~BlinkSettings(); | |
| 28 | |
| 29 // Additional more time-consuming configuration. | |
| 30 virtual void Init() = 0; | |
| 31 | |
| 32 // interim code: pushes settings into Blink. | |
| 33 virtual void ApplySettingsToWebView(blink::WebView* view) const = 0; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(BlinkSettings); | |
| 36 }; | |
| 37 | |
| 38 } // namespace html_viewer | |
| 39 | |
| 40 #endif // COMPONENTS_HTML_VIEWER_BLINK_SETTINGS_H_ | |
| OLD | NEW |