| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 void registerViewportLayers() const override; | 170 void registerViewportLayers() const override; |
| 171 | 171 |
| 172 void showUnhandledTapUIIfNeeded(IntPoint, Node*, bool) override; | 172 void showUnhandledTapUIIfNeeded(IntPoint, Node*, bool) override; |
| 173 void onMouseDown(Node*) override; | 173 void onMouseDown(Node*) override; |
| 174 void didUpdateTopControls() const override; | 174 void didUpdateTopControls() const override; |
| 175 | 175 |
| 176 FloatSize elasticOverscroll() const override; | 176 FloatSize elasticOverscroll() const override; |
| 177 | 177 |
| 178 void didObserveNonGetFetchFromScript() const override; | 178 void didObserveNonGetFetchFromScript() const override; |
| 179 | 179 |
| 180 PassOwnPtr<WebFrameScheduler> createFrameScheduler() override; | 180 PassOwnPtr<WebFrameScheduler> createFrameScheduler(WebBlameContext*) overrid
e; |
| 181 | 181 |
| 182 private: | 182 private: |
| 183 explicit ChromeClientImpl(WebViewImpl*); | 183 explicit ChromeClientImpl(WebViewImpl*); |
| 184 | 184 |
| 185 bool isChromeClientImpl() const override { return true; } | 185 bool isChromeClientImpl() const override { return true; } |
| 186 void registerPopupOpeningObserver(PopupOpeningObserver*) override; | 186 void registerPopupOpeningObserver(PopupOpeningObserver*) override; |
| 187 void unregisterPopupOpeningObserver(PopupOpeningObserver*) override; | 187 void unregisterPopupOpeningObserver(PopupOpeningObserver*) override; |
| 188 | 188 |
| 189 void notifyPopupOpeningObservers() const; | 189 void notifyPopupOpeningObservers() const; |
| 190 void setCursor(const WebCursorInfo&, LocalFrame* localRoot); | 190 void setCursor(const WebCursorInfo&, LocalFrame* localRoot); |
| 191 | 191 |
| 192 WebViewImpl* m_webView; // Weak pointer. | 192 WebViewImpl* m_webView; // Weak pointer. |
| 193 WindowFeatures m_windowFeatures; | 193 WindowFeatures m_windowFeatures; |
| 194 Vector<PopupOpeningObserver*> m_popupOpeningObservers; | 194 Vector<PopupOpeningObserver*> m_popupOpeningObservers; |
| 195 Cursor m_lastSetMouseCursorForTesting; | 195 Cursor m_lastSetMouseCursorForTesting; |
| 196 bool m_cursorOverridden; | 196 bool m_cursorOverridden; |
| 197 bool m_didRequestNonEmptyToolTip; | 197 bool m_didRequestNonEmptyToolTip; |
| 198 }; | 198 }; |
| 199 | 199 |
| 200 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient
Impl(), client.isChromeClientImpl()); | 200 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient
Impl(), client.isChromeClientImpl()); |
| 201 | 201 |
| 202 } // namespace blink | 202 } // namespace blink |
| 203 | 203 |
| 204 #endif | 204 #endif |
| OLD | NEW |