| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 void setScrollbarsVisible(bool) override; | 72 void setScrollbarsVisible(bool) override; |
| 73 bool scrollbarsVisible() override; | 73 bool scrollbarsVisible() override; |
| 74 void setMenubarVisible(bool) override; | 74 void setMenubarVisible(bool) override; |
| 75 bool menubarVisible() override; | 75 bool menubarVisible() override; |
| 76 void setResizable(bool) override; | 76 void setResizable(bool) override; |
| 77 bool shouldReportDetailedMessageForSource(LocalFrame&, const String&) overri
de; | 77 bool shouldReportDetailedMessageForSource(LocalFrame&, const String&) overri
de; |
| 78 void addMessageToConsole( | 78 void addMessageToConsole( |
| 79 LocalFrame*, MessageSource, MessageLevel, | 79 LocalFrame*, MessageSource, MessageLevel, |
| 80 const String& message, unsigned lineNumber, | 80 const String& message, unsigned lineNumber, |
| 81 const String& sourceID, const String& stackTrace) override; | 81 const String& sourceID, const String& stackTrace) override; |
| 82 bool canRunBeforeUnloadConfirmPanel() override; | 82 bool canOpenBeforeUnloadConfirmPanel() override; |
| 83 bool runBeforeUnloadConfirmPanelInternal(LocalFrame*, const String&) overrid
e; | 83 bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, const String&) overri
de; |
| 84 void closeWindowSoon() override; | 84 void closeWindowSoon() override; |
| 85 void runJavaScriptAlertInternal(LocalFrame*, const String&) override; | 85 void openJavaScriptAlertDelegate(LocalFrame*, const String&) override; |
| 86 bool runJavaScriptConfirmInternal(LocalFrame*, const String&) override; | 86 bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) override; |
| 87 bool runJavaScriptPromptInternal( | 87 bool openJavaScriptPromptDelegate( |
| 88 LocalFrame*, const String& message, | 88 LocalFrame*, const String& message, |
| 89 const String& defaultValue, String& result) override; | 89 const String& defaultValue, String& result) override; |
| 90 void setStatusbarText(const String& message) override; | 90 void setStatusbarText(const String& message) override; |
| 91 bool tabsToLinks() override; | 91 bool tabsToLinks() override; |
| 92 IntRect windowResizerRect() const override; | 92 IntRect windowResizerRect() const override; |
| 93 void invalidateRect(const IntRect&) override; | 93 void invalidateRect(const IntRect&) override; |
| 94 void scheduleAnimation() override; | 94 void scheduleAnimation() override; |
| 95 void scheduleAnimationForFrame(LocalFrame* localRoot) override; | 95 void scheduleAnimationForFrame(LocalFrame* localRoot) override; |
| 96 IntRect viewportToScreen(const IntRect&) const override; | 96 IntRect viewportToScreen(const IntRect&) const override; |
| 97 WebScreenInfo screenInfo() const override; | 97 WebScreenInfo screenInfo() const override; |
| 98 void contentsSizeChanged(LocalFrame*, const IntSize&) const override; | 98 void contentsSizeChanged(LocalFrame*, const IntSize&) const override; |
| 99 void pageScaleFactorChanged() const override; | 99 void pageScaleFactorChanged() const override; |
| 100 float clampPageScaleFactorToLimits(float scale) const override; | 100 float clampPageScaleFactorToLimits(float scale) const override; |
| 101 void layoutUpdated(LocalFrame*) const override; | 101 void layoutUpdated(LocalFrame*) const override; |
| 102 void showMouseOverURL(const HitTestResult&) override; | 102 void showMouseOverURL(const HitTestResult&) override; |
| 103 void setToolTip(const String& tooltipText, TextDirection) override; | 103 void setToolTip(const String& tooltipText, TextDirection) override; |
| 104 void dispatchViewportPropertiesDidChange(const ViewportDescription&) const o
verride; | 104 void dispatchViewportPropertiesDidChange(const ViewportDescription&) const o
verride; |
| 105 void printInternal(LocalFrame*) override; | 105 void printDelegate(LocalFrame*) override; |
| 106 void annotatedRegionsChanged() override; | 106 void annotatedRegionsChanged() override; |
| 107 PassOwnPtrWillBeRawPtr<ColorChooser> createColorChooser(LocalFrame*, ColorCh
ooserClient*, const Color&) override; | 107 PassOwnPtrWillBeRawPtr<ColorChooser> openColorChooser(LocalFrame*, ColorChoo
serClient*, const Color&) override; |
| 108 PassRefPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserClient*, cons
t DateTimeChooserParameters&) override; | 108 PassRefPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserClient*, cons
t DateTimeChooserParameters&) override; |
| 109 void runOpenPanel(LocalFrame*, PassRefPtr<FileChooser>) override; | 109 void openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) override; |
| 110 void enumerateChosenDirectory(FileChooser*) override; | 110 void enumerateChosenDirectory(FileChooser*) override; |
| 111 void setCursor(const Cursor&) override; | 111 void setCursor(const Cursor&) override; |
| 112 Cursor lastSetCursorForTesting() const override; | 112 Cursor lastSetCursorForTesting() const override; |
| 113 void needTouchEvents(bool needTouchEvents) override; | 113 void needTouchEvents(bool needTouchEvents) override; |
| 114 void setTouchAction(TouchAction) override; | 114 void setTouchAction(TouchAction) override; |
| 115 | 115 |
| 116 GraphicsLayerFactory* graphicsLayerFactory() const override; | 116 GraphicsLayerFactory* graphicsLayerFactory() const override; |
| 117 | 117 |
| 118 // Pass 0 as the GraphicsLayer to detatch the root layer. | 118 // Pass 0 as the GraphicsLayer to detatch the root layer. |
| 119 void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot) override
; | 119 void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot) override
; |
| 120 | 120 |
| 121 void attachCompositorAnimationTimeline(WebCompositorAnimationTimeline*, Loca
lFrame* localRoot) override; | 121 void attachCompositorAnimationTimeline(WebCompositorAnimationTimeline*, Loca
lFrame* localRoot) override; |
| 122 void detachCompositorAnimationTimeline(WebCompositorAnimationTimeline*, Loca
lFrame* localRoot) override; | 122 void detachCompositorAnimationTimeline(WebCompositorAnimationTimeline*, Loca
lFrame* localRoot) override; |
| 123 | 123 |
| 124 void enterFullScreenForElement(Element*) override; | 124 void enterFullScreenForElement(Element*) override; |
| 125 void exitFullScreenForElement(Element*) override; | 125 void exitFullScreenForElement(Element*) override; |
| 126 | 126 |
| 127 void clearCompositedSelection() override; | 127 void clearCompositedSelection() override; |
| 128 void updateCompositedSelection(const CompositedSelection&) override; | 128 void updateCompositedSelection(const CompositedSelection&) override; |
| 129 | 129 |
| 130 // ChromeClient methods: | 130 // ChromeClient methods: |
| 131 void postAccessibilityNotification(AXObject*, AXObjectCache::AXNotification)
override; | 131 void postAccessibilityNotification(AXObject*, AXObjectCache::AXNotification)
override; |
| 132 String acceptLanguages() override; | 132 String acceptLanguages() override; |
| 133 | 133 |
| 134 // ChromeClientImpl: | 134 // ChromeClientImpl: |
| 135 void setCursorForPlugin(const WebCursorInfo&); | 135 void setCursorForPlugin(const WebCursorInfo&); |
| 136 void setNewWindowNavigationPolicy(WebNavigationPolicy); | 136 void setNewWindowNavigationPolicy(WebNavigationPolicy); |
| 137 | 137 |
| 138 bool hasOpenedPopup() const override; | 138 bool hasOpenedPopup() const override; |
| 139 PassRefPtrWillBeRawPtr<PopupMenu> createPopupMenu(LocalFrame&, PopupMenuClie
nt*) override; | 139 PassRefPtrWillBeRawPtr<PopupMenu> openPopupMenu(LocalFrame&, PopupMenuClient
*) override; |
| 140 PagePopup* openPagePopup(PagePopupClient*); | 140 PagePopup* openPagePopup(PagePopupClient*); |
| 141 void closePagePopup(PagePopup*); | 141 void closePagePopup(PagePopup*); |
| 142 DOMWindow* pagePopupWindowForTesting() const override; | 142 DOMWindow* pagePopupWindowForTesting() const override; |
| 143 | 143 |
| 144 bool shouldRunModalDialogDuringPageDismissal(const DialogType&, const String
& dialogMessage, Document::PageDismissalType) const override; | 144 bool shouldOpenModalDialogDuringPageDismissal(const DialogType&, const Strin
g& dialogMessage, Document::PageDismissalType) const override; |
| 145 | 145 |
| 146 bool requestPointerLock() override; | 146 bool requestPointerLock() override; |
| 147 void requestPointerUnlock() override; | 147 void requestPointerUnlock() override; |
| 148 | 148 |
| 149 // AutofillClient pass throughs: | 149 // AutofillClient pass throughs: |
| 150 void didAssociateFormControls(const WillBeHeapVector<RefPtrWillBeMember<Elem
ent>>&, LocalFrame*) override; | 150 void didAssociateFormControls(const WillBeHeapVector<RefPtrWillBeMember<Elem
ent>>&, LocalFrame*) override; |
| 151 void handleKeyboardEventOnTextField(HTMLInputElement&, KeyboardEvent&) overr
ide; | 151 void handleKeyboardEventOnTextField(HTMLInputElement&, KeyboardEvent&) overr
ide; |
| 152 void didChangeValueInTextField(HTMLFormControlElement&) override; | 152 void didChangeValueInTextField(HTMLFormControlElement&) override; |
| 153 void didEndEditingOnTextField(HTMLInputElement&) override; | 153 void didEndEditingOnTextField(HTMLInputElement&) override; |
| 154 void openTextDataListChooser(HTMLInputElement&) override; | 154 void openTextDataListChooser(HTMLInputElement&) override; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 177 WindowFeatures m_windowFeatures; | 177 WindowFeatures m_windowFeatures; |
| 178 Vector<PopupOpeningObserver*> m_popupOpeningObservers; | 178 Vector<PopupOpeningObserver*> m_popupOpeningObservers; |
| 179 Cursor m_lastSetMouseCursorForTesting; | 179 Cursor m_lastSetMouseCursorForTesting; |
| 180 }; | 180 }; |
| 181 | 181 |
| 182 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient
Impl(), client.isChromeClientImpl()); | 182 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient
Impl(), client.isChromeClientImpl()); |
| 183 | 183 |
| 184 } // namespace blink | 184 } // namespace blink |
| 185 | 185 |
| 186 #endif | 186 #endif |
| OLD | NEW |