Index: blimp/engine/app/settings_manager.cc |
diff --git a/blimp/engine/app/settings_manager.cc b/blimp/engine/app/settings_manager.cc |
deleted file mode 100644 |
index 8577b3cbdb8e6125f85f761ff57bf9d5b36a1308..0000000000000000000000000000000000000000 |
--- a/blimp/engine/app/settings_manager.cc |
+++ /dev/null |
@@ -1,53 +0,0 @@ |
-// Copyright 2016 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. |
- |
-#include <blimp/engine/app/settings_manager.h> |
-#include "content/public/browser/render_view_host.h" |
-#include "content/public/common/web_preferences.h" |
- |
-namespace blimp { |
-namespace engine { |
- |
-SettingsManager::SettingsManager() {} |
- |
-SettingsManager::~SettingsManager() {} |
- |
-void SettingsManager::AddObserver(Observer* observer) { |
- observer_list_.AddObserver(observer); |
-} |
- |
-void SettingsManager::RemoveObserver(Observer* observer) { |
- observer_list_.RemoveObserver(observer); |
-} |
- |
-void SettingsManager::UpdateWebkitPreferences(content::WebPreferences* prefs) { |
- prefs->record_whole_document = settings_.record_whole_document; |
- prefs->animation_policy = settings_.animation_policy; |
- prefs->viewport_meta_enabled = settings_.viewport_meta_enabled; |
- prefs->default_minimum_page_scale_factor = |
- settings_.default_minimum_page_scale_factor; |
- prefs->default_maximum_page_scale_factor = |
- settings_.default_maximum_page_scale_factor; |
- prefs->shrinks_viewport_contents_to_fit = |
- settings_.shrinks_viewport_contents_to_fit; |
- prefs->use_solid_color_scrollbars = true; |
-} |
- |
-const EngineSettings& SettingsManager::GetEngineSettings() const { |
- return settings_; |
-} |
- |
-void SettingsManager::UpdateEngineSettings(const EngineSettings& settings) { |
- EngineSettings old_settings = settings_; |
- settings_ = settings; |
- |
- if (settings_.record_whole_document != old_settings.record_whole_document) { |
- // Notify the observers that the web preferences have changed. |
- for (auto& observer : observer_list_) |
- observer.OnWebPreferencesChanged(); |
- } |
-} |
- |
-} // namespace engine |
-} // namespace blimp |