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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 virtual void layoutUpdated(LocalFrame*) const override; | 119 virtual void layoutUpdated(LocalFrame*) const override; |
120 virtual void mouseDidMoveOverElement( | 120 virtual void mouseDidMoveOverElement( |
121 const HitTestResult&, unsigned modifierFlags) override; | 121 const HitTestResult&, unsigned modifierFlags) override; |
122 virtual void setToolTip(const WTF::String& tooltipText, TextDirection) overr
ide; | 122 virtual void setToolTip(const WTF::String& tooltipText, TextDirection) overr
ide; |
123 virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&)
const override; | 123 virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&)
const override; |
124 virtual void print(LocalFrame*) override; | 124 virtual void print(LocalFrame*) override; |
125 virtual void annotatedRegionsChanged() override; | 125 virtual void annotatedRegionsChanged() override; |
126 virtual bool paintCustomOverhangArea(GraphicsContext*, const IntRect&, const
IntRect&, const IntRect&) override; | 126 virtual bool paintCustomOverhangArea(GraphicsContext*, const IntRect&, const
IntRect&, const IntRect&) override; |
127 virtual PassOwnPtrWillBeRawPtr<ColorChooser> createColorChooser(LocalFrame*,
ColorChooserClient*, const Color&) override; | 127 virtual PassOwnPtrWillBeRawPtr<ColorChooser> createColorChooser(LocalFrame*,
ColorChooserClient*, const Color&) override; |
128 virtual PassRefPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserClien
t*, const DateTimeChooserParameters&) override; | 128 virtual PassRefPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserClien
t*, const DateTimeChooserParameters&) override; |
129 virtual void openTextDataListChooser(HTMLInputElement&) override; | |
130 virtual void runOpenPanel(LocalFrame*, PassRefPtr<FileChooser>) override; | 129 virtual void runOpenPanel(LocalFrame*, PassRefPtr<FileChooser>) override; |
131 virtual void enumerateChosenDirectory(FileChooser*) override; | 130 virtual void enumerateChosenDirectory(FileChooser*) override; |
132 virtual void setCursor(const Cursor&) override; | 131 virtual void setCursor(const Cursor&) override; |
133 virtual void needTouchEvents(bool needTouchEvents) override; | 132 virtual void needTouchEvents(bool needTouchEvents) override; |
134 virtual void setTouchAction(TouchAction) override; | 133 virtual void setTouchAction(TouchAction) override; |
135 | 134 |
136 virtual GraphicsLayerFactory* graphicsLayerFactory() const override; | 135 virtual GraphicsLayerFactory* graphicsLayerFactory() const override; |
137 | 136 |
138 // Pass 0 as the GraphicsLayer to detatch the root layer. | 137 // Pass 0 as the GraphicsLayer to detatch the root layer. |
139 virtual void attachRootGraphicsLayer(GraphicsLayer*) override; | 138 virtual void attachRootGraphicsLayer(GraphicsLayer*) override; |
(...skipping 18 matching lines...) Expand all Loading... |
158 void closePagePopup(PagePopup*); | 157 void closePagePopup(PagePopup*); |
159 virtual void setPagePopupDriver(PagePopupDriver*) override; | 158 virtual void setPagePopupDriver(PagePopupDriver*) override; |
160 virtual void resetPagePopupDriver() override; | 159 virtual void resetPagePopupDriver() override; |
161 virtual PagePopupDriver* pagePopupDriver() const override { return m_pagePop
upDriver; } | 160 virtual PagePopupDriver* pagePopupDriver() const override { return m_pagePop
upDriver; } |
162 | 161 |
163 virtual bool shouldRunModalDialogDuringPageDismissal(const DialogType&, cons
t String& dialogMessage, Document::PageDismissalType) const override; | 162 virtual bool shouldRunModalDialogDuringPageDismissal(const DialogType&, cons
t String& dialogMessage, Document::PageDismissalType) const override; |
164 | 163 |
165 virtual bool requestPointerLock() override; | 164 virtual bool requestPointerLock() override; |
166 virtual void requestPointerUnlock() override; | 165 virtual void requestPointerUnlock() override; |
167 | 166 |
168 virtual void didAssociateFormControls(const WillBeHeapVector<RefPtrWillBeMem
ber<Element> >&) override; | 167 // AutofillClient pass throughs: |
| 168 virtual void didAssociateFormControls(const WillBeHeapVector<RefPtrWillBeMem
ber<Element> >&, LocalFrame*) override; |
| 169 virtual void handleKeyboardEventOnTextField(HTMLInputElement&, KeyboardEvent
&) override; |
169 virtual void didChangeValueInTextField(HTMLFormControlElement&) override; | 170 virtual void didChangeValueInTextField(HTMLFormControlElement&) override; |
170 virtual void didEndEditingOnTextField(HTMLInputElement&) override; | 171 virtual void didEndEditingOnTextField(HTMLInputElement&) override; |
171 virtual void handleKeyboardEventOnTextField(HTMLInputElement&, KeyboardEvent
&) override; | 172 virtual void openTextDataListChooser(HTMLInputElement&) override; |
172 virtual void textFieldDataListChanged(HTMLFormControlElement&) override; | 173 virtual void textFieldDataListChanged(HTMLFormControlElement&) override; |
173 | 174 |
174 virtual void didCancelCompositionOnSelectionChange() override; | 175 virtual void didCancelCompositionOnSelectionChange() override; |
175 virtual void willSetInputMethodState() override; | 176 virtual void willSetInputMethodState() override; |
176 virtual void didUpdateTextOfFocusedElementByNonUserInput() override; | 177 virtual void didUpdateTextOfFocusedElementByNonUserInput() override; |
177 virtual void showImeIfNeeded() override; | 178 virtual void showImeIfNeeded() override; |
178 | 179 |
179 private: | 180 private: |
180 virtual bool isChromeClientImpl() const override { return true; } | 181 virtual bool isChromeClientImpl() const override { return true; } |
181 | 182 |
182 WebNavigationPolicy getNavigationPolicy(const WindowFeatures&); | 183 WebNavigationPolicy getNavigationPolicy(const WindowFeatures&); |
183 void setCursor(const WebCursorInfo&); | 184 void setCursor(const WebCursorInfo&); |
184 | 185 |
185 WebViewImpl* m_webView; // weak pointer | 186 WebViewImpl* m_webView; // weak pointer |
186 WindowFeatures m_windowFeatures; | 187 WindowFeatures m_windowFeatures; |
187 | 188 |
188 PagePopupDriver* m_pagePopupDriver; | 189 PagePopupDriver* m_pagePopupDriver; |
189 }; | 190 }; |
190 | 191 |
191 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient
Impl(), client.isChromeClientImpl()); | 192 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient
Impl(), client.isChromeClientImpl()); |
192 | 193 |
193 } // namespace blink | 194 } // namespace blink |
194 | 195 |
195 #endif | 196 #endif |
OLD | NEW |