| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 , m_baseBackgroundColor(Color::white) | 187 , m_baseBackgroundColor(Color::white) |
| 188 , m_backgroundColorOverride(Color::transparent) | 188 , m_backgroundColorOverride(Color::transparent) |
| 189 , m_zoomFactorOverride(0) | 189 , m_zoomFactorOverride(0) |
| 190 , m_userGestureObserved(false) | 190 , m_userGestureObserved(false) |
| 191 { | 191 { |
| 192 Page::PageClients pageClients; | 192 Page::PageClients pageClients; |
| 193 pageClients.chromeClient = &m_chromeClientImpl; | 193 pageClients.chromeClient = &m_chromeClientImpl; |
| 194 pageClients.editorClient = &m_editorClientImpl; | 194 pageClients.editorClient = &m_editorClientImpl; |
| 195 pageClients.spellCheckerClient = &m_spellCheckerClientImpl; | 195 pageClients.spellCheckerClient = &m_spellCheckerClientImpl; |
| 196 | 196 |
| 197 m_page = adoptPtr(new Page(pageClients)); | 197 m_page = adoptPtr(new Page(pageClients, m_client->services())); |
| 198 m_page->makeOrdinary(); | 198 m_page->makeOrdinary(); |
| 199 | 199 |
| 200 setDeviceScaleFactor(m_client->screenInfo().deviceScaleFactor); | 200 setDeviceScaleFactor(m_client->screenInfo().deviceScaleFactor); |
| 201 setVisibilityState(m_client->visibilityState(), true); | 201 setVisibilityState(m_client->visibilityState(), true); |
| 202 | 202 |
| 203 m_layerTreeView = m_client->initializeLayerTreeView(); | 203 m_layerTreeView = m_client->initializeLayerTreeView(); |
| 204 } | 204 } |
| 205 | 205 |
| 206 WebViewImpl::~WebViewImpl() | 206 WebViewImpl::~WebViewImpl() |
| 207 { | 207 { |
| (...skipping 2197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2405 m_layerTreeView->setVisible(visible); | 2405 m_layerTreeView->setVisible(visible); |
| 2406 } | 2406 } |
| 2407 } | 2407 } |
| 2408 | 2408 |
| 2409 bool WebViewImpl::shouldDisableDesktopWorkarounds() | 2409 bool WebViewImpl::shouldDisableDesktopWorkarounds() |
| 2410 { | 2410 { |
| 2411 return true; | 2411 return true; |
| 2412 } | 2412 } |
| 2413 | 2413 |
| 2414 } // namespace blink | 2414 } // namespace blink |
| OLD | NEW |