| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 virtual void layoutUpdated(LocalFrame*) const { } | 153 virtual void layoutUpdated(LocalFrame*) const { } |
| 154 | 154 |
| 155 void mouseDidMoveOverElement(const HitTestResult&); | 155 void mouseDidMoveOverElement(const HitTestResult&); |
| 156 virtual void setToolTip(const String&, TextDirection) = 0; | 156 virtual void setToolTip(const String&, TextDirection) = 0; |
| 157 void clearToolTip(); | 157 void clearToolTip(); |
| 158 | 158 |
| 159 void print(LocalFrame*); | 159 void print(LocalFrame*); |
| 160 | 160 |
| 161 virtual void annotatedRegionsChanged() = 0; | 161 virtual void annotatedRegionsChanged() = 0; |
| 162 | 162 |
| 163 virtual PassOwnPtrWillBeRawPtr<ColorChooser> openColorChooser(LocalFrame*, C
olorChooserClient*, const Color&) = 0; | 163 virtual RawPtr<ColorChooser> openColorChooser(LocalFrame*, ColorChooserClien
t*, const Color&) = 0; |
| 164 | 164 |
| 165 // This function is used for: | 165 // This function is used for: |
| 166 // - Mandatory date/time choosers if !ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 166 // - Mandatory date/time choosers if !ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| 167 // - Date/time choosers for types for which LayoutTheme::supportsCalendarPi
cker | 167 // - Date/time choosers for types for which LayoutTheme::supportsCalendarPi
cker |
| 168 // returns true, if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 168 // returns true, if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| 169 // - <datalist> UI for date/time input types regardless of | 169 // - <datalist> UI for date/time input types regardless of |
| 170 // ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 170 // ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| 171 virtual PassRefPtrWillBeRawPtr<DateTimeChooser> openDateTimeChooser(DateTime
ChooserClient*, const DateTimeChooserParameters&) = 0; | 171 virtual RawPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserClient*,
const DateTimeChooserParameters&) = 0; |
| 172 | 172 |
| 173 virtual void openTextDataListChooser(HTMLInputElement&)= 0; | 173 virtual void openTextDataListChooser(HTMLInputElement&)= 0; |
| 174 | 174 |
| 175 virtual void openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) = 0; | 175 virtual void openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) = 0; |
| 176 | 176 |
| 177 // Asychronous request to enumerate all files in a directory chosen by the u
ser. | 177 // Asychronous request to enumerate all files in a directory chosen by the u
ser. |
| 178 virtual void enumerateChosenDirectory(FileChooser*) = 0; | 178 virtual void enumerateChosenDirectory(FileChooser*) = 0; |
| 179 | 179 |
| 180 // Pass 0 as the GraphicsLayer to detach the root layer. | 180 // Pass 0 as the GraphicsLayer to detach the root layer. |
| 181 // This sets the graphics layer for the LocalFrame's WebWidget, if it has | 181 // This sets the graphics layer for the LocalFrame's WebWidget, if it has |
| (...skipping 15 matching lines...) Expand all Loading... |
| 197 | 197 |
| 198 virtual void setEventListenerProperties(WebEventListenerClass, WebEventListe
nerProperties) = 0; | 198 virtual void setEventListenerProperties(WebEventListenerClass, WebEventListe
nerProperties) = 0; |
| 199 virtual WebEventListenerProperties eventListenerProperties(WebEventListenerC
lass) const = 0; | 199 virtual WebEventListenerProperties eventListenerProperties(WebEventListenerC
lass) const = 0; |
| 200 virtual void setHaveScrollEventHandlers(bool) = 0; | 200 virtual void setHaveScrollEventHandlers(bool) = 0; |
| 201 virtual bool haveScrollEventHandlers() const = 0; | 201 virtual bool haveScrollEventHandlers() const = 0; |
| 202 | 202 |
| 203 virtual void setTouchAction(TouchAction) = 0; | 203 virtual void setTouchAction(TouchAction) = 0; |
| 204 | 204 |
| 205 // Checks if there is an opened popup, called by LayoutMenuList::showPopup()
. | 205 // Checks if there is an opened popup, called by LayoutMenuList::showPopup()
. |
| 206 virtual bool hasOpenedPopup() const = 0; | 206 virtual bool hasOpenedPopup() const = 0; |
| 207 virtual PassRefPtrWillBeRawPtr<PopupMenu> openPopupMenu(LocalFrame&, HTMLSel
ectElement&) = 0; | 207 virtual RawPtr<PopupMenu> openPopupMenu(LocalFrame&, HTMLSelectElement&) = 0
; |
| 208 virtual DOMWindow* pagePopupWindowForTesting() const = 0; | 208 virtual DOMWindow* pagePopupWindowForTesting() const = 0; |
| 209 | 209 |
| 210 virtual void postAccessibilityNotification(AXObject*, AXObjectCache::AXNotif
ication) { } | 210 virtual void postAccessibilityNotification(AXObject*, AXObjectCache::AXNotif
ication) { } |
| 211 virtual String acceptLanguages() = 0; | 211 virtual String acceptLanguages() = 0; |
| 212 | 212 |
| 213 enum DialogType { | 213 enum DialogType { |
| 214 AlertDialog = 0, | 214 AlertDialog = 0, |
| 215 ConfirmDialog = 1, | 215 ConfirmDialog = 1, |
| 216 PromptDialog = 2, | 216 PromptDialog = 2, |
| 217 HTMLDialog = 3 | 217 HTMLDialog = 3 |
| 218 }; | 218 }; |
| 219 virtual bool shouldOpenModalDialogDuringPageDismissal(const DialogType&, con
st String&, Document::PageDismissalType) const { return true; } | 219 virtual bool shouldOpenModalDialogDuringPageDismissal(const DialogType&, con
st String&, Document::PageDismissalType) const { return true; } |
| 220 | 220 |
| 221 virtual bool isSVGImageChromeClient() const { return false; } | 221 virtual bool isSVGImageChromeClient() const { return false; } |
| 222 | 222 |
| 223 virtual bool requestPointerLock() { return false; } | 223 virtual bool requestPointerLock() { return false; } |
| 224 virtual void requestPointerUnlock() { } | 224 virtual void requestPointerUnlock() { } |
| 225 | 225 |
| 226 virtual IntSize minimumWindowSize() const { return IntSize(100, 100); } | 226 virtual IntSize minimumWindowSize() const { return IntSize(100, 100); } |
| 227 | 227 |
| 228 virtual bool isChromeClientImpl() const { return false; } | 228 virtual bool isChromeClientImpl() const { return false; } |
| 229 | 229 |
| 230 virtual void didAssociateFormControls(const WillBeHeapVector<RefPtrWillBeMem
ber<Element>>&, LocalFrame*) { } | 230 virtual void didAssociateFormControls(const HeapVector<Member<Element>>&, Lo
calFrame*) { } |
| 231 virtual void didChangeValueInTextField(HTMLFormControlElement&) { } | 231 virtual void didChangeValueInTextField(HTMLFormControlElement&) { } |
| 232 virtual void didEndEditingOnTextField(HTMLInputElement&) { } | 232 virtual void didEndEditingOnTextField(HTMLInputElement&) { } |
| 233 virtual void handleKeyboardEventOnTextField(HTMLInputElement&, KeyboardEvent
&) { } | 233 virtual void handleKeyboardEventOnTextField(HTMLInputElement&, KeyboardEvent
&) { } |
| 234 virtual void textFieldDataListChanged(HTMLInputElement&) { } | 234 virtual void textFieldDataListChanged(HTMLInputElement&) { } |
| 235 virtual void ajaxSucceeded(LocalFrame*) { } | 235 virtual void ajaxSucceeded(LocalFrame*) { } |
| 236 | 236 |
| 237 // Input method editor related functions. | 237 // Input method editor related functions. |
| 238 virtual void didCancelCompositionOnSelectionChange() { } | 238 virtual void didCancelCompositionOnSelectionChange() { } |
| 239 virtual void willSetInputMethodState() { } | 239 virtual void willSetInputMethodState() { } |
| 240 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } | 240 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 | 277 |
| 278 LayoutPoint m_lastToolTipPoint; | 278 LayoutPoint m_lastToolTipPoint; |
| 279 String m_lastToolTipText; | 279 String m_lastToolTipText; |
| 280 | 280 |
| 281 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); | 281 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); |
| 282 }; | 282 }; |
| 283 | 283 |
| 284 } // namespace blink | 284 } // namespace blink |
| 285 | 285 |
| 286 #endif // ChromeClient_h | 286 #endif // ChromeClient_h |
| OLD | NEW |