| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 virtual bool canTakeFocus(FocusType) override; | 67 virtual bool canTakeFocus(FocusType) override; |
| 68 virtual void takeFocus(FocusType) override; | 68 virtual void takeFocus(FocusType) override; |
| 69 virtual void focusedNodeChanged(Node*) override; | 69 virtual void focusedNodeChanged(Node*) override; |
| 70 virtual void focusedFrameChanged(LocalFrame*) override; | 70 virtual void focusedFrameChanged(LocalFrame*) override; |
| 71 virtual void show(NavigationPolicy) override; | 71 virtual void show(NavigationPolicy) override; |
| 72 virtual bool shouldReportDetailedMessageForSource(const WTF::String&) overri
de; | 72 virtual bool shouldReportDetailedMessageForSource(const WTF::String&) overri
de; |
| 73 virtual void addMessageToConsole( | 73 virtual void addMessageToConsole( |
| 74 LocalFrame*, MessageSource, MessageLevel, | 74 LocalFrame*, MessageSource, MessageLevel, |
| 75 const WTF::String& message, unsigned lineNumber, | 75 const WTF::String& message, unsigned lineNumber, |
| 76 const WTF::String& sourceID, const WTF::String& stackTrace) override; | 76 const WTF::String& sourceID, const WTF::String& stackTrace) override; |
| 77 virtual void scheduleAnimation() override; | 77 virtual void scheduleVisualUpdate() override; |
| 78 virtual IntRect rootViewToScreen(const IntRect&) const override; | 78 virtual IntRect rootViewToScreen(const IntRect&) const override; |
| 79 virtual WebScreenInfo screenInfo() const override; | 79 virtual WebScreenInfo screenInfo() const override; |
| 80 virtual void layoutUpdated(LocalFrame*) const override; | 80 virtual void layoutUpdated(LocalFrame*) const override; |
| 81 virtual void setCursor(const Cursor&) override; | 81 virtual void setCursor(const Cursor&) override; |
| 82 | 82 |
| 83 // ChromeClient methods: | 83 // ChromeClient methods: |
| 84 virtual String acceptLanguages() override; | 84 virtual String acceptLanguages() override; |
| 85 | 85 |
| 86 // ChromeClientImpl: | 86 // ChromeClientImpl: |
| 87 void setNewWindowNavigationPolicy(WebNavigationPolicy); | 87 void setNewWindowNavigationPolicy(WebNavigationPolicy); |
| 88 | 88 |
| 89 virtual void willSetInputMethodState() override; | 89 virtual void willSetInputMethodState() override; |
| 90 | 90 |
| 91 private: | 91 private: |
| 92 virtual bool isChromeClientImpl() const override { return true; } | 92 virtual bool isChromeClientImpl() const override { return true; } |
| 93 | 93 |
| 94 WebNavigationPolicy getNavigationPolicy(); | 94 WebNavigationPolicy getNavigationPolicy(); |
| 95 void setCursor(const WebCursorInfo&); | 95 void setCursor(const WebCursorInfo&); |
| 96 | 96 |
| 97 WebViewImpl* m_webView; // weak pointer | 97 WebViewImpl* m_webView; // weak pointer |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient
Impl(), client.isChromeClientImpl()); | 100 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient
Impl(), client.isChromeClientImpl()); |
| 101 | 101 |
| 102 } // namespace blink | 102 } // namespace blink |
| 103 | 103 |
| 104 #endif // SKY_ENGINE_WEB_CHROMECLIENTIMPL_H_ | 104 #endif // SKY_ENGINE_WEB_CHROMECLIENTIMPL_H_ |
| OLD | NEW |