| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 virtual void scheduleAnimation() override; | 81 virtual void scheduleAnimation() override; |
| 82 virtual IntRect rootViewToScreen(const IntRect&) const override; | 82 virtual IntRect rootViewToScreen(const IntRect&) const override; |
| 83 virtual WebScreenInfo screenInfo() const override; | 83 virtual WebScreenInfo screenInfo() const override; |
| 84 virtual void layoutUpdated(LocalFrame*) const override; | 84 virtual void layoutUpdated(LocalFrame*) const override; |
| 85 virtual void mouseDidMoveOverElement( | 85 virtual void mouseDidMoveOverElement( |
| 86 const HitTestResult&, unsigned modifierFlags) override; | 86 const HitTestResult&, unsigned modifierFlags) override; |
| 87 virtual void setToolTip(const WTF::String& tooltipText, TextDirection) overr
ide; | 87 virtual void setToolTip(const WTF::String& tooltipText, TextDirection) overr
ide; |
| 88 virtual void setCursor(const Cursor&) override; | 88 virtual void setCursor(const Cursor&) override; |
| 89 virtual void setTouchAction(TouchAction) override; | 89 virtual void setTouchAction(TouchAction) override; |
| 90 | 90 |
| 91 virtual GraphicsLayerFactory* graphicsLayerFactory() const override; | |
| 92 | |
| 93 // Pass 0 as the GraphicsLayer to detatch the root layer. | |
| 94 virtual void attachRootGraphicsLayer(GraphicsLayer*) override; | |
| 95 | |
| 96 // ChromeClient methods: | 91 // ChromeClient methods: |
| 97 virtual String acceptLanguages() override; | 92 virtual String acceptLanguages() override; |
| 98 | 93 |
| 99 // ChromeClientImpl: | 94 // ChromeClientImpl: |
| 100 void setNewWindowNavigationPolicy(WebNavigationPolicy); | 95 void setNewWindowNavigationPolicy(WebNavigationPolicy); |
| 101 | 96 |
| 102 // FIXME: Remove this method once we have input routing in the browser | 97 // FIXME: Remove this method once we have input routing in the browser |
| 103 // process. See http://crbug.com/339659. | 98 // process. See http://crbug.com/339659. |
| 104 virtual void forwardInputEvent(Frame*, Event*) override; | 99 virtual void forwardInputEvent(Frame*, Event*) override; |
| 105 | 100 |
| 106 virtual void willSetInputMethodState() override; | 101 virtual void willSetInputMethodState() override; |
| 107 virtual void didUpdateTextOfFocusedElementByNonUserInput() override; | 102 virtual void didUpdateTextOfFocusedElementByNonUserInput() override; |
| 108 virtual void showImeIfNeeded() override; | 103 virtual void showImeIfNeeded() override; |
| 109 | 104 |
| 110 private: | 105 private: |
| 111 virtual bool isChromeClientImpl() const override { return true; } | 106 virtual bool isChromeClientImpl() const override { return true; } |
| 112 | 107 |
| 113 WebNavigationPolicy getNavigationPolicy(); | 108 WebNavigationPolicy getNavigationPolicy(); |
| 114 void setCursor(const WebCursorInfo&); | 109 void setCursor(const WebCursorInfo&); |
| 115 | 110 |
| 116 WebViewImpl* m_webView; // weak pointer | 111 WebViewImpl* m_webView; // weak pointer |
| 117 }; | 112 }; |
| 118 | 113 |
| 119 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient
Impl(), client.isChromeClientImpl()); | 114 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient
Impl(), client.isChromeClientImpl()); |
| 120 | 115 |
| 121 } // namespace blink | 116 } // namespace blink |
| 122 | 117 |
| 123 #endif // SKY_ENGINE_WEB_CHROMECLIENTIMPL_H_ | 118 #endif // SKY_ENGINE_WEB_CHROMECLIENTIMPL_H_ |
| OLD | NEW |