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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 #include "public/web/WebTouchAction.h" | 83 #include "public/web/WebTouchAction.h" |
84 #include "public/web/WebUserGestureIndicator.h" | 84 #include "public/web/WebUserGestureIndicator.h" |
85 #include "public/web/WebUserGestureToken.h" | 85 #include "public/web/WebUserGestureToken.h" |
86 #include "public/web/WebViewClient.h" | 86 #include "public/web/WebViewClient.h" |
87 #include "public/web/WebWindowFeatures.h" | 87 #include "public/web/WebWindowFeatures.h" |
88 #include "web/ColorChooserPopupUIController.h" | 88 #include "web/ColorChooserPopupUIController.h" |
89 #include "web/ColorChooserUIController.h" | 89 #include "web/ColorChooserUIController.h" |
90 #include "web/DateTimeChooserImpl.h" | 90 #include "web/DateTimeChooserImpl.h" |
91 #include "web/ExternalDateTimeChooser.h" | 91 #include "web/ExternalDateTimeChooser.h" |
92 #include "web/ExternalPopupMenu.h" | 92 #include "web/ExternalPopupMenu.h" |
93 #include "web/PopupMenuChromium.h" | 93 #include "web/PopupMenuImpl.h" |
94 #include "web/WebFileChooserCompletionImpl.h" | 94 #include "web/WebFileChooserCompletionImpl.h" |
95 #include "web/WebInputEventConversion.h" | 95 #include "web/WebInputEventConversion.h" |
96 #include "web/WebLocalFrameImpl.h" | 96 #include "web/WebLocalFrameImpl.h" |
97 #include "web/WebPluginContainerImpl.h" | 97 #include "web/WebPluginContainerImpl.h" |
98 #include "web/WebPopupMenuImpl.h" | |
99 #include "web/WebSettingsImpl.h" | 98 #include "web/WebSettingsImpl.h" |
100 #include "web/WebViewImpl.h" | 99 #include "web/WebViewImpl.h" |
101 #include "wtf/text/CString.h" | 100 #include "wtf/text/CString.h" |
102 #include "wtf/text/StringBuilder.h" | 101 #include "wtf/text/StringBuilder.h" |
103 #include "wtf/text/StringConcatenate.h" | 102 #include "wtf/text/StringConcatenate.h" |
104 #include "wtf/unicode/CharacterNames.h" | 103 #include "wtf/unicode/CharacterNames.h" |
105 | 104 |
106 namespace blink { | 105 namespace blink { |
107 | 106 |
108 // Converts a AXObjectCache::AXNotification to a WebAXEvent | 107 // Converts a AXObjectCache::AXNotification to a WebAXEvent |
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 void ChromeClientImpl::updateCompositedSelectionBounds(const CompositedSelection
Bound& anchor, const CompositedSelectionBound& focus) | 716 void ChromeClientImpl::updateCompositedSelectionBounds(const CompositedSelection
Bound& anchor, const CompositedSelectionBound& focus) |
718 { | 717 { |
719 m_webView->updateCompositedSelectionBounds(toWebSelectionBound(anchor), toWe
bSelectionBound(focus)); | 718 m_webView->updateCompositedSelectionBounds(toWebSelectionBound(anchor), toWe
bSelectionBound(focus)); |
720 } | 719 } |
721 | 720 |
722 bool ChromeClientImpl::hasOpenedPopup() const | 721 bool ChromeClientImpl::hasOpenedPopup() const |
723 { | 722 { |
724 return m_webView->hasOpenedPopup(); | 723 return m_webView->hasOpenedPopup(); |
725 } | 724 } |
726 | 725 |
727 PassRefPtrWillBeRawPtr<PopupMenu> ChromeClientImpl::createPopupMenu(LocalFrame&
frame, PopupMenuClient* client) const | 726 PassRefPtrWillBeRawPtr<PopupMenu> ChromeClientImpl::createPopupMenu(LocalFrame&
frame, PopupMenuClient* client) |
728 { | 727 { |
729 if (WebViewImpl::useExternalPopupMenus()) | 728 if (WebViewImpl::useExternalPopupMenus()) |
730 return adoptRefWillBeNoop(new ExternalPopupMenu(frame, client, *m_webVie
w)); | 729 return adoptRefWillBeNoop(new ExternalPopupMenu(frame, client, *m_webVie
w)); |
731 | 730 |
732 return adoptRefWillBeNoop(new PopupMenuChromium(frame, client)); | 731 return PopupMenuImpl::create(this, client); |
733 } | 732 } |
734 | 733 |
735 PagePopup* ChromeClientImpl::openPagePopup(PagePopupClient* client, const IntRec
t& originBoundsInRootView) | 734 PagePopup* ChromeClientImpl::openPagePopup(PagePopupClient* client, const IntRec
t& originBoundsInRootView) |
736 { | 735 { |
737 return m_webView->openPagePopup(client, originBoundsInRootView); | 736 return m_webView->openPagePopup(client, originBoundsInRootView); |
738 } | 737 } |
739 | 738 |
740 void ChromeClientImpl::closePagePopup(PagePopup* popup) | 739 void ChromeClientImpl::closePagePopup(PagePopup* popup) |
741 { | 740 { |
742 m_webView->closePagePopup(popup); | 741 m_webView->closePagePopup(popup); |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
868 { | 867 { |
869 // FIXME: remove. See http://crbug.com/425756 | 868 // FIXME: remove. See http://crbug.com/425756 |
870 if (m_webView->autofillClient()) | 869 if (m_webView->autofillClient()) |
871 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in
put)); | 870 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in
put)); |
872 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(input.document().
frame()); | 871 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(input.document().
frame()); |
873 if (webframe->autofillClient()) | 872 if (webframe->autofillClient()) |
874 webframe->autofillClient()->openTextDataListChooser(WebInputElement(&inp
ut)); | 873 webframe->autofillClient()->openTextDataListChooser(WebInputElement(&inp
ut)); |
875 } | 874 } |
876 | 875 |
877 } // namespace blink | 876 } // namespace blink |
OLD | NEW |