| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 , m_menuProvider(0) | 124 , m_menuProvider(0) |
| 125 { | 125 { |
| 126 ScriptWrappable::init(this); | 126 ScriptWrappable::init(this); |
| 127 } | 127 } |
| 128 | 128 |
| 129 InspectorFrontendHost::~InspectorFrontendHost() | 129 InspectorFrontendHost::~InspectorFrontendHost() |
| 130 { | 130 { |
| 131 ASSERT(!m_client); | 131 ASSERT(!m_client); |
| 132 } | 132 } |
| 133 | 133 |
| 134 void InspectorFrontendHost::trace(Visitor* visitor) |
| 135 { |
| 136 visitor->trace(m_frontendPage); |
| 137 } |
| 138 |
| 134 void InspectorFrontendHost::disconnectClient() | 139 void InspectorFrontendHost::disconnectClient() |
| 135 { | 140 { |
| 136 m_client = 0; | 141 m_client = 0; |
| 137 if (m_menuProvider) | 142 if (m_menuProvider) |
| 138 m_menuProvider->disconnect(); | 143 m_menuProvider->disconnect(); |
| 139 m_frontendPage = 0; | 144 m_frontendPage = nullptr; |
| 140 } | 145 } |
| 141 | 146 |
| 142 void InspectorFrontendHost::setZoomFactor(float zoom) | 147 void InspectorFrontendHost::setZoomFactor(float zoom) |
| 143 { | 148 { |
| 144 m_frontendPage->deprecatedLocalMainFrame()->setPageAndTextZoomFactors(zoom,
1); | 149 m_frontendPage->deprecatedLocalMainFrame()->setPageAndTextZoomFactors(zoom,
1); |
| 145 } | 150 } |
| 146 | 151 |
| 147 float InspectorFrontendHost::zoomFactor() | 152 float InspectorFrontendHost::zoomFactor() |
| 148 { | 153 { |
| 149 return m_frontendPage->deprecatedLocalMainFrame()->pageZoomFactor(); | 154 return m_frontendPage->deprecatedLocalMainFrame()->pageZoomFactor(); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 { | 250 { |
| 246 return m_client && m_client->isUnderTest(); | 251 return m_client && m_client->isUnderTest(); |
| 247 } | 252 } |
| 248 | 253 |
| 249 bool InspectorFrontendHost::isHostedMode() | 254 bool InspectorFrontendHost::isHostedMode() |
| 250 { | 255 { |
| 251 return false; | 256 return false; |
| 252 } | 257 } |
| 253 | 258 |
| 254 } // namespace blink | 259 } // namespace blink |
| OLD | NEW |