| 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 30 matching lines...) Expand all Loading... |
| 41 namespace blink { | 41 namespace blink { |
| 42 class ColorChooser; | 42 class ColorChooser; |
| 43 class ColorChooserClient; | 43 class ColorChooserClient; |
| 44 class Element; | 44 class Element; |
| 45 class Event; | 45 class Event; |
| 46 class KeyboardEvent; | 46 class KeyboardEvent; |
| 47 class RenderBox; | 47 class RenderBox; |
| 48 class DateTimeChooser; | 48 class DateTimeChooser; |
| 49 class DateTimeChooserClient; | 49 class DateTimeChooserClient; |
| 50 class WebViewImpl; | 50 class WebViewImpl; |
| 51 struct WebCursorInfo; | |
| 52 | 51 |
| 53 // Handles window-level notifications from WebCore on behalf of a WebView. | 52 // Handles window-level notifications from WebCore on behalf of a WebView. |
| 54 class ChromeClientImpl final : public ChromeClient { | 53 class ChromeClientImpl final : public ChromeClient { |
| 55 public: | 54 public: |
| 56 explicit ChromeClientImpl(WebViewImpl* webView); | 55 explicit ChromeClientImpl(WebViewImpl* webView); |
| 57 virtual ~ChromeClientImpl(); | 56 virtual ~ChromeClientImpl(); |
| 58 | 57 |
| 59 virtual void* webView() const override; | 58 virtual void* webView() const override; |
| 60 | 59 |
| 61 // ChromeClient methods: | 60 // ChromeClient methods: |
| 62 virtual void setWindowRect(const FloatRect&) override; | 61 virtual void setWindowRect(const FloatRect&) override; |
| 63 virtual FloatRect windowRect() override; | 62 virtual FloatRect windowRect() override; |
| 64 virtual void focus() override; | 63 virtual void focus() override; |
| 65 virtual bool canTakeFocus(FocusType) override; | 64 virtual bool canTakeFocus(FocusType) override; |
| 66 virtual void takeFocus(FocusType) override; | 65 virtual void takeFocus(FocusType) override; |
| 67 virtual void focusedNodeChanged(Node*) override; | 66 virtual void focusedNodeChanged(Node*) override; |
| 68 virtual void focusedFrameChanged(LocalFrame*) override; | 67 virtual void focusedFrameChanged(LocalFrame*) override; |
| 69 | 68 |
| 70 virtual bool shouldReportDetailedMessageForSource(const WTF::String&) overri
de; | 69 virtual bool shouldReportDetailedMessageForSource(const WTF::String&) overri
de; |
| 71 virtual void addMessageToConsole( | 70 virtual void addMessageToConsole( |
| 72 LocalFrame*, MessageSource, MessageLevel, | 71 LocalFrame*, MessageSource, MessageLevel, |
| 73 const WTF::String& message, unsigned lineNumber, | 72 const WTF::String& message, unsigned lineNumber, |
| 74 const WTF::String& sourceID, const WTF::String& stackTrace) override; | 73 const WTF::String& sourceID, const WTF::String& stackTrace) override; |
| 75 virtual void scheduleVisualUpdate() override; | 74 virtual void scheduleVisualUpdate() override; |
| 76 virtual IntRect rootViewToScreen(const IntRect&) const override; | 75 virtual IntRect rootViewToScreen(const IntRect&) const override; |
| 77 virtual WebScreenInfo screenInfo() const override; | 76 virtual WebScreenInfo screenInfo() const override; |
| 78 virtual void setCursor(const Cursor&) override; | |
| 79 | 77 |
| 80 // ChromeClient methods: | 78 // ChromeClient methods: |
| 81 virtual String acceptLanguages() override; | 79 virtual String acceptLanguages() override; |
| 82 | 80 |
| 83 private: | 81 private: |
| 84 WebNavigationPolicy getNavigationPolicy(); | 82 WebNavigationPolicy getNavigationPolicy(); |
| 85 void setCursor(const WebCursorInfo&); | |
| 86 | 83 |
| 87 WebViewImpl* m_webView; // weak pointer | 84 WebViewImpl* m_webView; // weak pointer |
| 88 }; | 85 }; |
| 89 | 86 |
| 90 } // namespace blink | 87 } // namespace blink |
| 91 | 88 |
| 92 #endif // SKY_ENGINE_WEB_CHROMECLIENTIMPL_H_ | 89 #endif // SKY_ENGINE_WEB_CHROMECLIENTIMPL_H_ |
| OLD | NEW |