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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 #include "public/web/WebColorChooser.h" | 75 #include "public/web/WebColorChooser.h" |
76 #include "public/web/WebColorSuggestion.h" | 76 #include "public/web/WebColorSuggestion.h" |
77 #include "public/web/WebConsoleMessage.h" | 77 #include "public/web/WebConsoleMessage.h" |
78 #include "public/web/WebFrameClient.h" | 78 #include "public/web/WebFrameClient.h" |
79 #include "public/web/WebInputElement.h" | 79 #include "public/web/WebInputElement.h" |
80 #include "public/web/WebInputEvent.h" | 80 #include "public/web/WebInputEvent.h" |
81 #include "public/web/WebKit.h" | 81 #include "public/web/WebKit.h" |
82 #include "public/web/WebNode.h" | 82 #include "public/web/WebNode.h" |
83 #include "public/web/WebPlugin.h" | 83 #include "public/web/WebPlugin.h" |
84 #include "public/web/WebPopupMenuInfo.h" | 84 #include "public/web/WebPopupMenuInfo.h" |
| 85 #include "public/web/WebSelectionBound.h" |
85 #include "public/web/WebSettings.h" | 86 #include "public/web/WebSettings.h" |
86 #include "public/web/WebTextDirection.h" | 87 #include "public/web/WebTextDirection.h" |
87 #include "public/web/WebTouchAction.h" | 88 #include "public/web/WebTouchAction.h" |
88 #include "public/web/WebUserGestureIndicator.h" | 89 #include "public/web/WebUserGestureIndicator.h" |
89 #include "public/web/WebUserGestureToken.h" | 90 #include "public/web/WebUserGestureToken.h" |
90 #include "public/web/WebViewClient.h" | 91 #include "public/web/WebViewClient.h" |
91 #include "public/web/WebWindowFeatures.h" | 92 #include "public/web/WebWindowFeatures.h" |
92 #include "web/ColorChooserPopupUIController.h" | 93 #include "web/ColorChooserPopupUIController.h" |
93 #include "web/ColorChooserUIController.h" | 94 #include "web/ColorChooserUIController.h" |
94 #include "web/DateTimeChooserImpl.h" | 95 #include "web/DateTimeChooserImpl.h" |
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 void ChromeClientImpl::enterFullScreenForElement(Element* element) | 705 void ChromeClientImpl::enterFullScreenForElement(Element* element) |
705 { | 706 { |
706 m_webView->enterFullScreenForElement(element); | 707 m_webView->enterFullScreenForElement(element); |
707 } | 708 } |
708 | 709 |
709 void ChromeClientImpl::exitFullScreenForElement(Element* element) | 710 void ChromeClientImpl::exitFullScreenForElement(Element* element) |
710 { | 711 { |
711 m_webView->exitFullScreenForElement(element); | 712 m_webView->exitFullScreenForElement(element); |
712 } | 713 } |
713 | 714 |
| 715 void ChromeClientImpl::clearCompositedSelectionBounds() |
| 716 { |
| 717 m_webView->clearCompositedSelectionBounds(); |
| 718 } |
| 719 |
| 720 void ChromeClientImpl::updateCompositedSelectionBounds(const WebCore::Composited
SelectionBound& anchor, const WebCore::CompositedSelectionBound& focus) |
| 721 { |
| 722 m_webView->updateCompositedSelectionBounds(WebSelectionBound(anchor), WebSel
ectionBound(focus)); |
| 723 } |
| 724 |
714 bool ChromeClientImpl::hasOpenedPopup() const | 725 bool ChromeClientImpl::hasOpenedPopup() const |
715 { | 726 { |
716 return m_webView->hasOpenedPopup(); | 727 return m_webView->hasOpenedPopup(); |
717 } | 728 } |
718 | 729 |
719 PassRefPtr<PopupMenu> ChromeClientImpl::createPopupMenu(LocalFrame& frame, Popup
MenuClient* client) const | 730 PassRefPtr<PopupMenu> ChromeClientImpl::createPopupMenu(LocalFrame& frame, Popup
MenuClient* client) const |
720 { | 731 { |
721 if (WebViewImpl::useExternalPopupMenus()) | 732 if (WebViewImpl::useExternalPopupMenus()) |
722 return adoptRef(new ExternalPopupMenu(frame, client, *m_webView)); | 733 return adoptRef(new ExternalPopupMenu(frame, client, *m_webView)); |
723 | 734 |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
873 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp
utElement)); | 884 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp
utElement)); |
874 } | 885 } |
875 | 886 |
876 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) | 887 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) |
877 { | 888 { |
878 if (m_webView->autofillClient()) | 889 if (m_webView->autofillClient()) |
879 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in
put)); | 890 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in
put)); |
880 } | 891 } |
881 | 892 |
882 } // namespace blink | 893 } // namespace blink |
OLD | NEW |