| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 PassOwnPtrWillBeRawPtr<ColorChooser> openColorChooser(LocalFrame*, ColorChoo
serClient*, const Color&) override; |
| 110 PassRefPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserClient*, cons
t DateTimeChooserParameters&) override; | 110 PassRefPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserClient*, cons
t DateTimeChooserParameters&) 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&) override; | 113 void setCursor(const Cursor&, LocalFrame* localRoot) override; |
| 114 Cursor lastSetCursorForTesting() const override; | 114 Cursor lastSetCursorForTesting() const override; |
| 115 void needTouchEvents(bool needTouchEvents) override; | 115 void needTouchEvents(bool needTouchEvents) override; |
| 116 void setTouchAction(TouchAction) override; | 116 void setTouchAction(TouchAction) override; |
| 117 | 117 |
| 118 GraphicsLayerFactory* graphicsLayerFactory() const override; | 118 GraphicsLayerFactory* graphicsLayerFactory() const override; |
| 119 | 119 |
| 120 // Pass 0 as the GraphicsLayer to detatch the root layer. | 120 // Pass 0 as the GraphicsLayer to detatch the root layer. |
| 121 void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot) override
; | 121 void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot) override
; |
| 122 | 122 |
| 123 void setCompositedDisplayList(PassOwnPtr<CompositedDisplayList>) override; | 123 void setCompositedDisplayList(PassOwnPtr<CompositedDisplayList>) override; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 void didObserveNonGetFetchFromScript() const override; | 177 void didObserveNonGetFetchFromScript() const override; |
| 178 | 178 |
| 179 private: | 179 private: |
| 180 explicit ChromeClientImpl(WebViewImpl*); | 180 explicit ChromeClientImpl(WebViewImpl*); |
| 181 | 181 |
| 182 bool isChromeClientImpl() const override { return true; } | 182 bool isChromeClientImpl() const override { return true; } |
| 183 void registerPopupOpeningObserver(PopupOpeningObserver*) override; | 183 void registerPopupOpeningObserver(PopupOpeningObserver*) override; |
| 184 void unregisterPopupOpeningObserver(PopupOpeningObserver*) override; | 184 void unregisterPopupOpeningObserver(PopupOpeningObserver*) override; |
| 185 | 185 |
| 186 void notifyPopupOpeningObservers() const; | 186 void notifyPopupOpeningObservers() const; |
| 187 void setCursor(const WebCursorInfo&); | 187 void setCursor(const WebCursorInfo&, LocalFrame* localRoot); |
| 188 | 188 |
| 189 WebViewImpl* m_webView; // Weak pointer. | 189 WebViewImpl* m_webView; // Weak pointer. |
| 190 WindowFeatures m_windowFeatures; | 190 WindowFeatures m_windowFeatures; |
| 191 Vector<PopupOpeningObserver*> m_popupOpeningObservers; | 191 Vector<PopupOpeningObserver*> m_popupOpeningObservers; |
| 192 Cursor m_lastSetMouseCursorForTesting; | 192 Cursor m_lastSetMouseCursorForTesting; |
| 193 bool m_cursorOverridden; | 193 bool m_cursorOverridden; |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient
Impl(), client.isChromeClientImpl()); | 196 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient
Impl(), client.isChromeClientImpl()); |
| 197 | 197 |
| 198 } // namespace blink | 198 } // namespace blink |
| 199 | 199 |
| 200 #endif | 200 #endif |
| OLD | NEW |