Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2131)

Unified Diff: blimp/engine/app/settings_manager.cc

Issue 2629743003: Remove all blimp engine code (Closed)
Patch Set: Use consistent comment style in //chrome Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/engine/app/settings_manager.h ('k') | blimp/engine/app/settings_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « blimp/engine/app/settings_manager.h ('k') | blimp/engine/app/settings_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698