OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 #include "public/web/WebPrintParams.h" | 175 #include "public/web/WebPrintParams.h" |
176 #include "public/web/WebRange.h" | 176 #include "public/web/WebRange.h" |
177 #include "public/web/WebScriptSource.h" | 177 #include "public/web/WebScriptSource.h" |
178 #include "public/web/WebSecurityOrigin.h" | 178 #include "public/web/WebSecurityOrigin.h" |
179 #include "public/web/WebSerializedScriptValue.h" | 179 #include "public/web/WebSerializedScriptValue.h" |
180 #include "web/AssociatedURLLoader.h" | 180 #include "web/AssociatedURLLoader.h" |
181 #include "web/CompositionUnderlineVectorBuilder.h" | 181 #include "web/CompositionUnderlineVectorBuilder.h" |
182 #include "web/EventListenerWrapper.h" | 182 #include "web/EventListenerWrapper.h" |
183 #include "web/FindInPageCoordinates.h" | 183 #include "web/FindInPageCoordinates.h" |
184 #include "web/GeolocationClientProxy.h" | 184 #include "web/GeolocationClientProxy.h" |
| 185 #include "web/LocalFileSystemClient.h" |
185 #include "web/MIDIClientProxy.h" | 186 #include "web/MIDIClientProxy.h" |
186 #include "web/PageOverlay.h" | 187 #include "web/PageOverlay.h" |
187 #include "web/SharedWorkerRepositoryClientImpl.h" | 188 #include "web/SharedWorkerRepositoryClientImpl.h" |
188 #include "web/TextFinder.h" | 189 #include "web/TextFinder.h" |
189 #include "web/WebDataSourceImpl.h" | 190 #include "web/WebDataSourceImpl.h" |
190 #include "web/WebDevToolsAgentPrivate.h" | 191 #include "web/WebDevToolsAgentPrivate.h" |
191 #include "web/WebPluginContainerImpl.h" | 192 #include "web/WebPluginContainerImpl.h" |
192 #include "web/WebViewImpl.h" | 193 #include "web/WebViewImpl.h" |
193 #include "wtf/CurrentTime.h" | 194 #include "wtf/CurrentTime.h" |
194 #include "wtf/HashMap.h" | 195 #include "wtf/HashMap.h" |
(...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1636 if (m_client) | 1637 if (m_client) |
1637 notificationPresenter->initialize(m_client->notificationPresenter())
; | 1638 notificationPresenter->initialize(m_client->notificationPresenter())
; |
1638 | 1639 |
1639 provideNotification(*m_frame, notificationPresenter.release()); | 1640 provideNotification(*m_frame, notificationPresenter.release()); |
1640 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); | 1641 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); |
1641 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); | 1642 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); |
1642 m_geolocationClientProxy->setController(GeolocationController::from(m_fr
ame.get())); | 1643 m_geolocationClientProxy->setController(GeolocationController::from(m_fr
ame.get())); |
1643 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web
MIDIClient() : 0)); | 1644 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web
MIDIClient() : 0)); |
1644 if (RuntimeEnabledFeatures::screenOrientationEnabled()) | 1645 if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
1645 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client
->webScreenOrientationClient() : 0); | 1646 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client
->webScreenOrientationClient() : 0); |
| 1647 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); |
1646 } | 1648 } |
1647 } | 1649 } |
1648 | 1650 |
1649 void WebLocalFrameImpl::initializeAsMainFrame(WebCore::Page* page) | 1651 void WebLocalFrameImpl::initializeAsMainFrame(WebCore::Page* page) |
1650 { | 1652 { |
1651 setWebCoreFrame(LocalFrame::create(&m_frameLoaderClientImpl, &page->frameHos
t(), 0)); | 1653 setWebCoreFrame(LocalFrame::create(&m_frameLoaderClientImpl, &page->frameHos
t(), 0)); |
1652 | 1654 |
1653 // We must call init() after m_frame is assigned because it is referenced | 1655 // We must call init() after m_frame is assigned because it is referenced |
1654 // during init(). | 1656 // during init(). |
1655 m_frame->init(); | 1657 m_frame->init(); |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1944 | 1946 |
1945 void WebLocalFrameImpl::invalidateAll() const | 1947 void WebLocalFrameImpl::invalidateAll() const |
1946 { | 1948 { |
1947 ASSERT(frame() && frame()->view()); | 1949 ASSERT(frame() && frame()->view()); |
1948 FrameView* view = frame()->view(); | 1950 FrameView* view = frame()->view(); |
1949 view->invalidateRect(view->frameRect()); | 1951 view->invalidateRect(view->frameRect()); |
1950 invalidateScrollbar(); | 1952 invalidateScrollbar(); |
1951 } | 1953 } |
1952 | 1954 |
1953 } // namespace blink | 1955 } // namespace blink |
OLD | NEW |