| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_HTML_VIEWER_LAYOUT_TEST_BLINK_SETTINGS_IMPL_H_ | 5 #ifndef COMPONENTS_HTML_VIEWER_LAYOUT_TEST_BLINK_SETTINGS_IMPL_H_ |
| 6 #define COMPONENTS_HTML_VIEWER_LAYOUT_TEST_BLINK_SETTINGS_IMPL_H_ | 6 #define COMPONENTS_HTML_VIEWER_LAYOUT_TEST_BLINK_SETTINGS_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
| 9 #include "components/html_viewer/blink_settings_impl.h" | 9 #include "components/html_viewer/blink_settings_impl.h" |
| 10 | 10 |
| 11 namespace html_viewer { | 11 namespace html_viewer { |
| 12 struct WebPreferences; | 12 struct WebPreferences; |
| 13 | 13 |
| 14 // LayoutTestBlinkSettingsImpl is a subclass of BlinkSettings that can | 14 // LayoutTestBlinkSettingsImpl is a subclass of BlinkSettings that can |
| 15 // configure Blink for running layout tests. | 15 // configure Blink for running layout tests. |
| 16 class LayoutTestBlinkSettingsImpl : public BlinkSettingsImpl { | 16 class LayoutTestBlinkSettingsImpl : public BlinkSettingsImpl { |
| 17 public: | 17 public: |
| 18 LayoutTestBlinkSettingsImpl(); | 18 LayoutTestBlinkSettingsImpl(); |
| 19 void Init() override; | 19 void Init() override; |
| 20 | 20 |
| 21 private: | 21 private: |
| 22 void ApplySettingsToWebView(blink::WebView* view) const override; | 22 void ApplySettingsToWebView(blink::WebView* view) const override; |
| 23 | 23 |
| 24 bool accelerated_2d_canvas_enabled_; | 24 bool accelerated_2d_canvas_enabled_; |
| 25 | 25 |
| 26 DISALLOW_COPY_AND_ASSIGN(LayoutTestBlinkSettingsImpl); | 26 DISALLOW_COPY_AND_ASSIGN(LayoutTestBlinkSettingsImpl); |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 } // namespace html_viewer | 29 } // namespace html_viewer |
| 30 | 30 |
| 31 #endif // COMPONENTS_HTML_VIEWER_LAYOUT_TEST_BLINK_SETTINGS_IMPL_H_ | 31 #endif // COMPONENTS_HTML_VIEWER_LAYOUT_TEST_BLINK_SETTINGS_IMPL_H_ |
| OLD | NEW |