| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, 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 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 virtual void layoutUpdated(LocalFrame*) const { } | 154 virtual void layoutUpdated(LocalFrame*) const { } |
| 155 | 155 |
| 156 void mouseDidMoveOverElement(const HitTestResult&); | 156 void mouseDidMoveOverElement(const HitTestResult&); |
| 157 virtual void setToolTip(const String&, TextDirection) = 0; | 157 virtual void setToolTip(const String&, TextDirection) = 0; |
| 158 void clearToolTip(); | 158 void clearToolTip(); |
| 159 | 159 |
| 160 void print(LocalFrame*); | 160 void print(LocalFrame*); |
| 161 | 161 |
| 162 virtual void annotatedRegionsChanged() = 0; | 162 virtual void annotatedRegionsChanged() = 0; |
| 163 | 163 |
| 164 virtual PassOwnPtrWillBeRawPtr<ColorChooser> openColorChooser(LocalFrame*, C
olorChooserClient*, const Color&) = 0; | 164 virtual RawPtr<ColorChooser> openColorChooser(LocalFrame*, ColorChooserClien
t*, const Color&) = 0; |
| 165 | 165 |
| 166 // This function is used for: | 166 // This function is used for: |
| 167 // - Mandatory date/time choosers if !ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 167 // - Mandatory date/time choosers if !ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| 168 // - Date/time choosers for types for which LayoutTheme::supportsCalendarPi
cker | 168 // - Date/time choosers for types for which LayoutTheme::supportsCalendarPi
cker |
| 169 // returns true, if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 169 // returns true, if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| 170 // - <datalist> UI for date/time input types regardless of | 170 // - <datalist> UI for date/time input types regardless of |
| 171 // ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 171 // ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| 172 virtual PassRefPtrWillBeRawPtr<DateTimeChooser> openDateTimeChooser(DateTime
ChooserClient*, const DateTimeChooserParameters&) = 0; | 172 virtual RawPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserClient*,
const DateTimeChooserParameters&) = 0; |
| 173 | 173 |
| 174 virtual void openTextDataListChooser(HTMLInputElement&)= 0; | 174 virtual void openTextDataListChooser(HTMLInputElement&)= 0; |
| 175 | 175 |
| 176 virtual void openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) = 0; | 176 virtual void openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) = 0; |
| 177 | 177 |
| 178 // Asychronous request to enumerate all files in a directory chosen by the u
ser. | 178 // Asychronous request to enumerate all files in a directory chosen by the u
ser. |
| 179 virtual void enumerateChosenDirectory(FileChooser*) = 0; | 179 virtual void enumerateChosenDirectory(FileChooser*) = 0; |
| 180 | 180 |
| 181 // Allows ports to customize the type of graphics layers created by this pag
e. | 181 // Allows ports to customize the type of graphics layers created by this pag
e. |
| 182 virtual GraphicsLayerFactory* graphicsLayerFactory() const { return nullptr;
} | 182 virtual GraphicsLayerFactory* graphicsLayerFactory() const { return nullptr;
} |
| (...skipping 18 matching lines...) Expand all Loading... |
| 201 | 201 |
| 202 virtual void setEventListenerProperties(WebEventListenerClass, WebEventListe
nerProperties) = 0; | 202 virtual void setEventListenerProperties(WebEventListenerClass, WebEventListe
nerProperties) = 0; |
| 203 virtual WebEventListenerProperties eventListenerProperties(WebEventListenerC
lass) const = 0; | 203 virtual WebEventListenerProperties eventListenerProperties(WebEventListenerC
lass) const = 0; |
| 204 virtual void setHaveScrollEventHandlers(bool) = 0; | 204 virtual void setHaveScrollEventHandlers(bool) = 0; |
| 205 virtual bool haveScrollEventHandlers() const = 0; | 205 virtual bool haveScrollEventHandlers() const = 0; |
| 206 | 206 |
| 207 virtual void setTouchAction(TouchAction) = 0; | 207 virtual void setTouchAction(TouchAction) = 0; |
| 208 | 208 |
| 209 // Checks if there is an opened popup, called by LayoutMenuList::showPopup()
. | 209 // Checks if there is an opened popup, called by LayoutMenuList::showPopup()
. |
| 210 virtual bool hasOpenedPopup() const = 0; | 210 virtual bool hasOpenedPopup() const = 0; |
| 211 virtual PassRefPtrWillBeRawPtr<PopupMenu> openPopupMenu(LocalFrame&, HTMLSel
ectElement&) = 0; | 211 virtual RawPtr<PopupMenu> openPopupMenu(LocalFrame&, HTMLSelectElement&) = 0
; |
| 212 virtual DOMWindow* pagePopupWindowForTesting() const = 0; | 212 virtual DOMWindow* pagePopupWindowForTesting() const = 0; |
| 213 | 213 |
| 214 virtual void postAccessibilityNotification(AXObject*, AXObjectCache::AXNotif
ication) { } | 214 virtual void postAccessibilityNotification(AXObject*, AXObjectCache::AXNotif
ication) { } |
| 215 virtual String acceptLanguages() = 0; | 215 virtual String acceptLanguages() = 0; |
| 216 | 216 |
| 217 enum DialogType { | 217 enum DialogType { |
| 218 AlertDialog = 0, | 218 AlertDialog = 0, |
| 219 ConfirmDialog = 1, | 219 ConfirmDialog = 1, |
| 220 PromptDialog = 2, | 220 PromptDialog = 2, |
| 221 HTMLDialog = 3 | 221 HTMLDialog = 3 |
| 222 }; | 222 }; |
| 223 virtual bool shouldOpenModalDialogDuringPageDismissal(const DialogType&, con
st String&, Document::PageDismissalType) const { return true; } | 223 virtual bool shouldOpenModalDialogDuringPageDismissal(const DialogType&, con
st String&, Document::PageDismissalType) const { return true; } |
| 224 | 224 |
| 225 virtual bool isSVGImageChromeClient() const { return false; } | 225 virtual bool isSVGImageChromeClient() const { return false; } |
| 226 | 226 |
| 227 virtual bool requestPointerLock() { return false; } | 227 virtual bool requestPointerLock() { return false; } |
| 228 virtual void requestPointerUnlock() { } | 228 virtual void requestPointerUnlock() { } |
| 229 | 229 |
| 230 virtual IntSize minimumWindowSize() const { return IntSize(100, 100); } | 230 virtual IntSize minimumWindowSize() const { return IntSize(100, 100); } |
| 231 | 231 |
| 232 virtual bool isChromeClientImpl() const { return false; } | 232 virtual bool isChromeClientImpl() const { return false; } |
| 233 | 233 |
| 234 virtual void didAssociateFormControls(const WillBeHeapVector<RefPtrWillBeMem
ber<Element>>&, LocalFrame*) { } | 234 virtual void didAssociateFormControls(const HeapVector<Member<Element>>&, Lo
calFrame*) { } |
| 235 virtual void didChangeValueInTextField(HTMLFormControlElement&) { } | 235 virtual void didChangeValueInTextField(HTMLFormControlElement&) { } |
| 236 virtual void didEndEditingOnTextField(HTMLInputElement&) { } | 236 virtual void didEndEditingOnTextField(HTMLInputElement&) { } |
| 237 virtual void handleKeyboardEventOnTextField(HTMLInputElement&, KeyboardEvent
&) { } | 237 virtual void handleKeyboardEventOnTextField(HTMLInputElement&, KeyboardEvent
&) { } |
| 238 virtual void textFieldDataListChanged(HTMLInputElement&) { } | 238 virtual void textFieldDataListChanged(HTMLInputElement&) { } |
| 239 virtual void ajaxSucceeded(LocalFrame*) { } | 239 virtual void ajaxSucceeded(LocalFrame*) { } |
| 240 | 240 |
| 241 // Input method editor related functions. | 241 // Input method editor related functions. |
| 242 virtual void didCancelCompositionOnSelectionChange() { } | 242 virtual void didCancelCompositionOnSelectionChange() { } |
| 243 virtual void willSetInputMethodState() { } | 243 virtual void willSetInputMethodState() { } |
| 244 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } | 244 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 | 281 |
| 282 LayoutPoint m_lastToolTipPoint; | 282 LayoutPoint m_lastToolTipPoint; |
| 283 String m_lastToolTipText; | 283 String m_lastToolTipText; |
| 284 | 284 |
| 285 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); | 285 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); |
| 286 }; | 286 }; |
| 287 | 287 |
| 288 } // namespace blink | 288 } // namespace blink |
| 289 | 289 |
| 290 #endif // ChromeClient_h | 290 #endif // ChromeClient_h |
| OLD | NEW |