| 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 30 matching lines...) Expand all Loading... |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class PagePopup; | 43 class PagePopup; |
| 44 class PagePopupClient; | 44 class PagePopupClient; |
| 45 class WebViewImpl; | 45 class WebViewImpl; |
| 46 struct WebCursorInfo; | 46 struct WebCursorInfo; |
| 47 | 47 |
| 48 // Handles window-level notifications from core on behalf of a WebView. | 48 // Handles window-level notifications from core on behalf of a WebView. |
| 49 class WEB_EXPORT ChromeClientImpl final : public ChromeClient { | 49 class WEB_EXPORT ChromeClientImpl final : public ChromeClient { |
| 50 public: | 50 public: |
| 51 static PassOwnPtrWillBeRawPtr<ChromeClientImpl> create(WebViewImpl*); | 51 static RawPtr<ChromeClientImpl> create(WebViewImpl*); |
| 52 ~ChromeClientImpl() override; | 52 ~ChromeClientImpl() override; |
| 53 | 53 |
| 54 void* webView() const override; | 54 void* webView() const override; |
| 55 | 55 |
| 56 // ChromeClient methods: | 56 // ChromeClient methods: |
| 57 void chromeDestroyed() override; | 57 void chromeDestroyed() override; |
| 58 void setWindowRect(const IntRect&) override; | 58 void setWindowRect(const IntRect&) override; |
| 59 IntRect windowRect() override; | 59 IntRect windowRect() override; |
| 60 IntRect pageRect() override; | 60 IntRect pageRect() override; |
| 61 void focus() override; | 61 void focus() override; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 WebScreenInfo screenInfo() const override; | 99 WebScreenInfo screenInfo() const override; |
| 100 void contentsSizeChanged(LocalFrame*, const IntSize&) const override; | 100 void contentsSizeChanged(LocalFrame*, const IntSize&) const override; |
| 101 void pageScaleFactorChanged() const override; | 101 void pageScaleFactorChanged() const override; |
| 102 float clampPageScaleFactorToLimits(float scale) const override; | 102 float clampPageScaleFactorToLimits(float scale) const override; |
| 103 void layoutUpdated(LocalFrame*) const override; | 103 void layoutUpdated(LocalFrame*) const override; |
| 104 void showMouseOverURL(const HitTestResult&) override; | 104 void showMouseOverURL(const HitTestResult&) override; |
| 105 void setToolTip(const String& tooltipText, TextDirection) override; | 105 void setToolTip(const String& tooltipText, TextDirection) override; |
| 106 void dispatchViewportPropertiesDidChange(const ViewportDescription&) const o
verride; | 106 void dispatchViewportPropertiesDidChange(const ViewportDescription&) const o
verride; |
| 107 void printDelegate(LocalFrame*) override; | 107 void printDelegate(LocalFrame*) override; |
| 108 void annotatedRegionsChanged() override; | 108 void annotatedRegionsChanged() override; |
| 109 PassOwnPtrWillBeRawPtr<ColorChooser> openColorChooser(LocalFrame*, ColorChoo
serClient*, const Color&) override; | 109 RawPtr<ColorChooser> openColorChooser(LocalFrame*, ColorChooserClient*, cons
t Color&) override; |
| 110 PassRefPtrWillBeRawPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserC
lient*, const DateTimeChooserParameters&) override; | 110 RawPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserClient*, const Da
teTimeChooserParameters&) override; |
| 111 void openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) override; | 111 void openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) override; |
| 112 void enumerateChosenDirectory(FileChooser*) override; | 112 void enumerateChosenDirectory(FileChooser*) override; |
| 113 void setCursor(const Cursor&, LocalFrame* localRoot) override; | 113 void setCursor(const Cursor&, LocalFrame* localRoot) override; |
| 114 Cursor lastSetCursorForTesting() const override; | 114 Cursor lastSetCursorForTesting() const override; |
| 115 void setEventListenerProperties(WebEventListenerClass, WebEventListenerPrope
rties) override; | 115 void setEventListenerProperties(WebEventListenerClass, WebEventListenerPrope
rties) override; |
| 116 WebEventListenerProperties eventListenerProperties(WebEventListenerClass) co
nst override; | 116 WebEventListenerProperties eventListenerProperties(WebEventListenerClass) co
nst override; |
| 117 void setHaveScrollEventHandlers(bool hasEventHandlers) override; | 117 void setHaveScrollEventHandlers(bool hasEventHandlers) override; |
| 118 bool haveScrollEventHandlers() const override; | 118 bool haveScrollEventHandlers() const override; |
| 119 void setTouchAction(TouchAction) override; | 119 void setTouchAction(TouchAction) override; |
| 120 | 120 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 135 // ChromeClient methods: | 135 // ChromeClient methods: |
| 136 void postAccessibilityNotification(AXObject*, AXObjectCache::AXNotification)
override; | 136 void postAccessibilityNotification(AXObject*, AXObjectCache::AXNotification)
override; |
| 137 String acceptLanguages() override; | 137 String acceptLanguages() override; |
| 138 | 138 |
| 139 // ChromeClientImpl: | 139 // ChromeClientImpl: |
| 140 void setCursorForPlugin(const WebCursorInfo&, LocalFrame* localRoot); | 140 void setCursorForPlugin(const WebCursorInfo&, LocalFrame* localRoot); |
| 141 void setNewWindowNavigationPolicy(WebNavigationPolicy); | 141 void setNewWindowNavigationPolicy(WebNavigationPolicy); |
| 142 void setCursorOverridden(bool); | 142 void setCursorOverridden(bool); |
| 143 | 143 |
| 144 bool hasOpenedPopup() const override; | 144 bool hasOpenedPopup() const override; |
| 145 PassRefPtrWillBeRawPtr<PopupMenu> openPopupMenu(LocalFrame&, HTMLSelectEleme
nt&) override; | 145 RawPtr<PopupMenu> openPopupMenu(LocalFrame&, HTMLSelectElement&) override; |
| 146 PagePopup* openPagePopup(PagePopupClient*); | 146 PagePopup* openPagePopup(PagePopupClient*); |
| 147 void closePagePopup(PagePopup*); | 147 void closePagePopup(PagePopup*); |
| 148 DOMWindow* pagePopupWindowForTesting() const override; | 148 DOMWindow* pagePopupWindowForTesting() const override; |
| 149 | 149 |
| 150 bool shouldOpenModalDialogDuringPageDismissal(const DialogType&, const Strin
g& dialogMessage, Document::PageDismissalType) const override; | 150 bool shouldOpenModalDialogDuringPageDismissal(const DialogType&, const Strin
g& dialogMessage, Document::PageDismissalType) const override; |
| 151 | 151 |
| 152 bool requestPointerLock() override; | 152 bool requestPointerLock() override; |
| 153 void requestPointerUnlock() override; | 153 void requestPointerUnlock() override; |
| 154 | 154 |
| 155 // AutofillClient pass throughs: | 155 // AutofillClient pass throughs: |
| 156 void didAssociateFormControls(const WillBeHeapVector<RefPtrWillBeMember<Elem
ent>>&, LocalFrame*) override; | 156 void didAssociateFormControls(const HeapVector<Member<Element>>&, LocalFrame
*) override; |
| 157 void handleKeyboardEventOnTextField(HTMLInputElement&, KeyboardEvent&) overr
ide; | 157 void handleKeyboardEventOnTextField(HTMLInputElement&, KeyboardEvent&) overr
ide; |
| 158 void didChangeValueInTextField(HTMLFormControlElement&) override; | 158 void didChangeValueInTextField(HTMLFormControlElement&) override; |
| 159 void didEndEditingOnTextField(HTMLInputElement&) override; | 159 void didEndEditingOnTextField(HTMLInputElement&) override; |
| 160 void openTextDataListChooser(HTMLInputElement&) override; | 160 void openTextDataListChooser(HTMLInputElement&) override; |
| 161 void textFieldDataListChanged(HTMLInputElement&) override; | 161 void textFieldDataListChanged(HTMLInputElement&) override; |
| 162 void ajaxSucceeded(LocalFrame*) override; | 162 void ajaxSucceeded(LocalFrame*) override; |
| 163 | 163 |
| 164 void didCancelCompositionOnSelectionChange() override; | 164 void didCancelCompositionOnSelectionChange() override; |
| 165 void willSetInputMethodState() override; | 165 void willSetInputMethodState() override; |
| 166 void didUpdateTextOfFocusedElementByNonUserInput() override; | 166 void didUpdateTextOfFocusedElementByNonUserInput() override; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 194 Cursor m_lastSetMouseCursorForTesting; | 194 Cursor m_lastSetMouseCursorForTesting; |
| 195 bool m_cursorOverridden; | 195 bool m_cursorOverridden; |
| 196 bool m_didRequestNonEmptyToolTip; | 196 bool m_didRequestNonEmptyToolTip; |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient
Impl(), client.isChromeClientImpl()); | 199 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient
Impl(), client.isChromeClientImpl()); |
| 200 | 200 |
| 201 } // namespace blink | 201 } // namespace blink |
| 202 | 202 |
| 203 #endif | 203 #endif |
| OLD | NEW |