| 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 29 matching lines...) Expand all Loading... |
| 40 #include "Document.h" | 40 #include "Document.h" |
| 41 #include "DocumentLoader.h" | 41 #include "DocumentLoader.h" |
| 42 #include "FileChooser.h" | 42 #include "FileChooser.h" |
| 43 #include "FloatRect.h" | 43 #include "FloatRect.h" |
| 44 #include "FrameLoadRequest.h" | 44 #include "FrameLoadRequest.h" |
| 45 #include "FrameView.h" | 45 #include "FrameView.h" |
| 46 #include "Geolocation.h" | 46 #include "Geolocation.h" |
| 47 #include "GeolocationService.h" | 47 #include "GeolocationService.h" |
| 48 #include "GeolocationServiceBridgeChromium.h" | 48 #include "GeolocationServiceBridgeChromium.h" |
| 49 #include "GeolocationServiceChromium.h" | 49 #include "GeolocationServiceChromium.h" |
| 50 #include "GraphicsLayer.h" |
| 50 #include "HitTestResult.h" | 51 #include "HitTestResult.h" |
| 51 #include "IntRect.h" | 52 #include "IntRect.h" |
| 52 #include "Node.h" | 53 #include "Node.h" |
| 53 #include "NotificationPresenterImpl.h" | 54 #include "NotificationPresenterImpl.h" |
| 54 #include "Page.h" | 55 #include "Page.h" |
| 55 #include "PopupMenuChromium.h" | 56 #include "PopupMenuChromium.h" |
| 56 #include "ScriptController.h" | 57 #include "ScriptController.h" |
| 57 #if USE(V8) | 58 #if USE(V8) |
| 58 #include "V8Proxy.h" | 59 #include "V8Proxy.h" |
| 59 #endif | 60 #endif |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 return m_webView->notificationPresenterImpl(); | 683 return m_webView->notificationPresenterImpl(); |
| 683 } | 684 } |
| 684 #endif | 685 #endif |
| 685 | 686 |
| 686 void ChromeClientImpl::requestGeolocationPermissionForFrame(Frame* frame, Geoloc
ation* geolocation) | 687 void ChromeClientImpl::requestGeolocationPermissionForFrame(Frame* frame, Geoloc
ation* geolocation) |
| 687 { | 688 { |
| 688 GeolocationServiceChromium* geolocationService = reinterpret_cast<Geolocatio
nServiceChromium*>(geolocation->getGeolocationService()); | 689 GeolocationServiceChromium* geolocationService = reinterpret_cast<Geolocatio
nServiceChromium*>(geolocation->getGeolocationService()); |
| 689 m_webView->client()->getGeolocationService()->requestPermissionForFrame(geol
ocationService->geolocationServiceBridge()->getBridgeId(), frame->document()->ur
l()); | 690 m_webView->client()->getGeolocationService()->requestPermissionForFrame(geol
ocationService->geolocationServiceBridge()->getBridgeId(), frame->document()->ur
l()); |
| 690 } | 691 } |
| 691 | 692 |
| 693 #if USE(ACCELERATED_COMPOSITING) |
| 694 void ChromeClientImpl::attachRootGraphicsLayer(Frame* frame, GraphicsLayer* grap
hicsLayer) |
| 695 { |
| 696 m_webView->setRootGraphicsLayer(graphicsLayer ? graphicsLayer->platformLayer
() : 0); |
| 697 } |
| 698 |
| 699 void ChromeClientImpl::scheduleCompositingLayerSync() |
| 700 { |
| 701 m_webView->setRootLayerNeedsDisplay(); |
| 702 } |
| 703 #endif |
| 704 |
| 692 } // namespace WebKit | 705 } // namespace WebKit |
| OLD | NEW |