| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 #include "core/rendering/RenderBox.h" | 128 #include "core/rendering/RenderBox.h" |
| 129 #include "core/rendering/RenderFrame.h" | 129 #include "core/rendering/RenderFrame.h" |
| 130 #include "core/rendering/RenderLayer.h" | 130 #include "core/rendering/RenderLayer.h" |
| 131 #include "core/rendering/RenderObject.h" | 131 #include "core/rendering/RenderObject.h" |
| 132 #include "core/rendering/RenderTreeAsText.h" | 132 #include "core/rendering/RenderTreeAsText.h" |
| 133 #include "core/rendering/RenderView.h" | 133 #include "core/rendering/RenderView.h" |
| 134 #include "core/rendering/style/StyleInheritedData.h" | 134 #include "core/rendering/style/StyleInheritedData.h" |
| 135 #include "core/timing/Performance.h" | 135 #include "core/timing/Performance.h" |
| 136 #include "modules/geolocation/GeolocationController.h" | 136 #include "modules/geolocation/GeolocationController.h" |
| 137 #include "modules/notifications/NotificationController.h" | 137 #include "modules/notifications/NotificationController.h" |
| 138 #include "modules/screen_orientation/ScreenOrientationController.h" |
| 138 #include "platform/TraceEvent.h" | 139 #include "platform/TraceEvent.h" |
| 139 #include "platform/UserGestureIndicator.h" | 140 #include "platform/UserGestureIndicator.h" |
| 140 #include "platform/clipboard/ClipboardUtilities.h" | 141 #include "platform/clipboard/ClipboardUtilities.h" |
| 141 #include "platform/fonts/FontCache.h" | 142 #include "platform/fonts/FontCache.h" |
| 142 #include "platform/graphics/GraphicsContext.h" | 143 #include "platform/graphics/GraphicsContext.h" |
| 143 #include "platform/graphics/GraphicsLayerClient.h" | 144 #include "platform/graphics/GraphicsLayerClient.h" |
| 144 #include "platform/graphics/skia/SkiaUtils.h" | 145 #include "platform/graphics/skia/SkiaUtils.h" |
| 145 #include "platform/heap/Handle.h" | 146 #include "platform/heap/Handle.h" |
| 146 #include "platform/network/ResourceRequest.h" | 147 #include "platform/network/ResourceRequest.h" |
| 147 #include "platform/scroll/ScrollTypes.h" | 148 #include "platform/scroll/ScrollTypes.h" |
| (...skipping 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1613 if (m_frame) { | 1614 if (m_frame) { |
| 1614 OwnPtr<NotificationPresenterImpl> notificationPresenter = adoptPtr(new N
otificationPresenterImpl()); | 1615 OwnPtr<NotificationPresenterImpl> notificationPresenter = adoptPtr(new N
otificationPresenterImpl()); |
| 1615 if (m_client) | 1616 if (m_client) |
| 1616 notificationPresenter->initialize(m_client->notificationPresenter())
; | 1617 notificationPresenter->initialize(m_client->notificationPresenter())
; |
| 1617 | 1618 |
| 1618 provideNotification(*m_frame, notificationPresenter.release()); | 1619 provideNotification(*m_frame, notificationPresenter.release()); |
| 1619 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); | 1620 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); |
| 1620 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); | 1621 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); |
| 1621 m_geolocationClientProxy->setController(GeolocationController::from(m_fr
ame.get())); | 1622 m_geolocationClientProxy->setController(GeolocationController::from(m_fr
ame.get())); |
| 1622 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web
MIDIClient() : 0)); | 1623 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web
MIDIClient() : 0)); |
| 1624 if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
| 1625 ScreenOrientationController::provideTo(*m_frame, m_client->webScreen
OrientationClient()); |
| 1623 } | 1626 } |
| 1624 } | 1627 } |
| 1625 | 1628 |
| 1626 void WebLocalFrameImpl::initializeAsMainFrame(WebCore::Page* page) | 1629 void WebLocalFrameImpl::initializeAsMainFrame(WebCore::Page* page) |
| 1627 { | 1630 { |
| 1628 setWebCoreFrame(LocalFrame::create(&m_frameLoaderClientImpl, &page->frameHos
t(), 0)); | 1631 setWebCoreFrame(LocalFrame::create(&m_frameLoaderClientImpl, &page->frameHos
t(), 0)); |
| 1629 | 1632 |
| 1630 // We must call init() after m_frame is assigned because it is referenced | 1633 // We must call init() after m_frame is assigned because it is referenced |
| 1631 // during init(). | 1634 // during init(). |
| 1632 m_frame->init(); | 1635 m_frame->init(); |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1922 | 1925 |
| 1923 void WebLocalFrameImpl::invalidateAll() const | 1926 void WebLocalFrameImpl::invalidateAll() const |
| 1924 { | 1927 { |
| 1925 ASSERT(frame() && frame()->view()); | 1928 ASSERT(frame() && frame()->view()); |
| 1926 FrameView* view = frame()->view(); | 1929 FrameView* view = frame()->view(); |
| 1927 view->invalidateRect(view->frameRect()); | 1930 view->invalidateRect(view->frameRect()); |
| 1928 invalidateScrollbar(); | 1931 invalidateScrollbar(); |
| 1929 } | 1932 } |
| 1930 | 1933 |
| 1931 } // namespace blink | 1934 } // namespace blink |
| OLD | NEW |