| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <cmath> | 5 #include <cmath> |
| 6 | 6 |
| 7 #include "content/browser/host_zoom_map.h" | 7 #include "content/browser/host_zoom_map.h" |
| 8 | 8 |
| 9 #include "base/string_piece.h" | 9 #include "base/string_piece.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "content/browser/renderer_host/render_process_host.h" | 12 #include "content/browser/renderer_host/render_process_host.h" |
| 13 #include "content/browser/renderer_host/render_view_host.h" | 13 #include "content/browser/renderer_host/render_view_host.h" |
| 14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 #include "content/public/browser/notification_service.h" | 15 #include "content/public/browser/notification_service.h" |
| 16 #include "content/public/browser/notification_types.h" | 16 #include "content/public/browser/notification_types.h" |
| 17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
| 18 #include "net/base/net_util.h" | 18 #include "net/base/net_util.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 20 | 20 |
| 21 using content::BrowserThread; |
| 21 using WebKit::WebView; | 22 using WebKit::WebView; |
| 22 | 23 |
| 23 HostZoomMap::HostZoomMap() | 24 HostZoomMap::HostZoomMap() |
| 24 : default_zoom_level_(0.0), | 25 : default_zoom_level_(0.0), |
| 25 original_(this) { | 26 original_(this) { |
| 26 Init(); | 27 Init(); |
| 27 } | 28 } |
| 28 | 29 |
| 29 HostZoomMap::HostZoomMap(HostZoomMap* original) | 30 HostZoomMap::HostZoomMap(HostZoomMap* original) |
| 30 : default_zoom_level_(0.0), | 31 : default_zoom_level_(0.0), |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 } | 139 } |
| 139 break; | 140 break; |
| 140 } | 141 } |
| 141 default: | 142 default: |
| 142 NOTREACHED() << "Unexpected preference observed."; | 143 NOTREACHED() << "Unexpected preference observed."; |
| 143 } | 144 } |
| 144 } | 145 } |
| 145 | 146 |
| 146 HostZoomMap::~HostZoomMap() { | 147 HostZoomMap::~HostZoomMap() { |
| 147 } | 148 } |
| OLD | NEW |