| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 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 are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 #include "core/page/Page.h" | 51 #include "core/page/Page.h" |
| 52 #include "core/page/PagePopupDriver.h" | 52 #include "core/page/PagePopupDriver.h" |
| 53 #include "core/page/WindowFeatures.h" | 53 #include "core/page/WindowFeatures.h" |
| 54 #include "core/rendering/HitTestResult.h" | 54 #include "core/rendering/HitTestResult.h" |
| 55 #include "core/rendering/RenderPart.h" | 55 #include "core/rendering/RenderPart.h" |
| 56 #include "core/rendering/compositing/CompositedSelectionBound.h" | 56 #include "core/rendering/compositing/CompositedSelectionBound.h" |
| 57 #include "platform/Cursor.h" | 57 #include "platform/Cursor.h" |
| 58 #include "platform/FileChooser.h" | 58 #include "platform/FileChooser.h" |
| 59 #include "platform/PlatformScreen.h" | 59 #include "platform/PlatformScreen.h" |
| 60 #include "platform/RuntimeEnabledFeatures.h" | 60 #include "platform/RuntimeEnabledFeatures.h" |
| 61 #include "platform/TraceEvent.h" |
| 61 #include "platform/exported/WrappedResourceRequest.h" | 62 #include "platform/exported/WrappedResourceRequest.h" |
| 62 #include "platform/geometry/FloatRect.h" | 63 #include "platform/geometry/FloatRect.h" |
| 63 #include "platform/geometry/IntRect.h" | 64 #include "platform/geometry/IntRect.h" |
| 64 #include "platform/graphics/GraphicsLayer.h" | 65 #include "platform/graphics/GraphicsLayer.h" |
| 65 #include "platform/weborigin/SecurityOrigin.h" | 66 #include "platform/weborigin/SecurityOrigin.h" |
| 66 #include "public/platform/Platform.h" | 67 #include "public/platform/Platform.h" |
| 67 #include "public/platform/WebCursorInfo.h" | 68 #include "public/platform/WebCursorInfo.h" |
| 68 #include "public/platform/WebRect.h" | 69 #include "public/platform/WebRect.h" |
| 69 #include "public/platform/WebSelectionBound.h" | 70 #include "public/platform/WebSelectionBound.h" |
| 70 #include "public/platform/WebURLRequest.h" | 71 #include "public/platform/WebURLRequest.h" |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 void ChromeClientImpl::enterFullScreenForElement(Element* element) | 701 void ChromeClientImpl::enterFullScreenForElement(Element* element) |
| 701 { | 702 { |
| 702 m_webView->enterFullScreenForElement(element); | 703 m_webView->enterFullScreenForElement(element); |
| 703 } | 704 } |
| 704 | 705 |
| 705 void ChromeClientImpl::exitFullScreenForElement(Element* element) | 706 void ChromeClientImpl::exitFullScreenForElement(Element* element) |
| 706 { | 707 { |
| 707 m_webView->exitFullScreenForElement(element); | 708 m_webView->exitFullScreenForElement(element); |
| 708 } | 709 } |
| 709 | 710 |
| 711 int ChromeClientImpl::compositorId() const |
| 712 { |
| 713 if (WebViewClient* client = m_webView->client()) { |
| 714 int id = client->compositorId(); |
| 715 TRACE_EVENT1("teleport", "ChromeClientImpl::compositorId", "id", id); |
| 716 return id; |
| 717 } |
| 718 return 0; |
| 719 } |
| 720 |
| 710 void ChromeClientImpl::clearCompositedSelectionBounds() | 721 void ChromeClientImpl::clearCompositedSelectionBounds() |
| 711 { | 722 { |
| 712 m_webView->clearCompositedSelectionBounds(); | 723 m_webView->clearCompositedSelectionBounds(); |
| 713 } | 724 } |
| 714 | 725 |
| 715 void ChromeClientImpl::updateCompositedSelectionBounds(const CompositedSelection
Bound& anchor, const CompositedSelectionBound& focus) | 726 void ChromeClientImpl::updateCompositedSelectionBounds(const CompositedSelection
Bound& anchor, const CompositedSelectionBound& focus) |
| 716 { | 727 { |
| 717 m_webView->updateCompositedSelectionBounds(toWebSelectionBound(anchor), toWe
bSelectionBound(focus)); | 728 m_webView->updateCompositedSelectionBounds(toWebSelectionBound(anchor), toWe
bSelectionBound(focus)); |
| 718 } | 729 } |
| 719 | 730 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp
utElement)); | 862 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp
utElement)); |
| 852 } | 863 } |
| 853 | 864 |
| 854 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) | 865 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) |
| 855 { | 866 { |
| 856 if (m_webView->autofillClient()) | 867 if (m_webView->autofillClient()) |
| 857 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in
put)); | 868 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in
put)); |
| 858 } | 869 } |
| 859 | 870 |
| 860 } // namespace blink | 871 } // namespace blink |
| OLD | NEW |