OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "base/message_loop.h" | 5 #include "base/message_loop.h" |
6 #include "base/prefs/pref_service.h" | 6 #include "base/prefs/pref_service.h" |
7 #include "chrome/browser/ui/browser.h" | 7 #include "chrome/browser/ui/browser.h" |
8 #include "chrome/browser/ui/browser_finder.h" | 8 #include "chrome/browser/ui/browser_finder.h" |
9 #include "chrome/browser/ui/zoom/zoom_controller.h" | 9 #include "chrome/browser/ui/zoom/zoom_controller.h" |
10 #include "chrome/browser/ui/zoom/zoom_observer.h" | 10 #include "chrome/browser/ui/zoom/zoom_observer.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 profile()->GetPrefs()->SetDouble(prefs::kDefaultZoomLevel, 110.0f); | 61 profile()->GetPrefs()->SetDouble(prefs::kDefaultZoomLevel, 110.0f); |
62 } | 62 } |
63 | 63 |
64 TEST_F(ZoomControllerTest, Observe) { | 64 TEST_F(ZoomControllerTest, Observe) { |
65 EXPECT_CALL(zoom_observer_, OnZoomChanged(web_contents(), false)).Times(1); | 65 EXPECT_CALL(zoom_observer_, OnZoomChanged(web_contents(), false)).Times(1); |
66 | 66 |
67 content::HostZoomMap* host_zoom_map = | 67 content::HostZoomMap* host_zoom_map = |
68 content::HostZoomMap::GetForBrowserContext( | 68 content::HostZoomMap::GetForBrowserContext( |
69 web_contents()->GetBrowserContext()); | 69 web_contents()->GetBrowserContext()); |
70 | 70 |
71 host_zoom_map->SetZoomLevel(std::string(), 110.0f); | 71 host_zoom_map->SetZoomLevelForHost(std::string(), 110.0f); |
72 } | 72 } |
OLD | NEW |