| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 bool handleExternally); | 163 bool handleExternally); |
| 164 virtual void popupClosed(WebCore::PopupContainer* popupContainer); | 164 virtual void popupClosed(WebCore::PopupContainer* popupContainer); |
| 165 virtual void postAccessibilityNotification(WebCore::AccessibilityObject*, We
bCore::AXObjectCache::AXNotification); | 165 virtual void postAccessibilityNotification(WebCore::AccessibilityObject*, We
bCore::AXObjectCache::AXNotification); |
| 166 | 166 |
| 167 // ChromeClientImpl: | 167 // ChromeClientImpl: |
| 168 void setCursorForPlugin(const WebCursorInfo&); | 168 void setCursorForPlugin(const WebCursorInfo&); |
| 169 void setNewWindowNavigationPolicy(WebNavigationPolicy); | 169 void setNewWindowNavigationPolicy(WebNavigationPolicy); |
| 170 | 170 |
| 171 virtual bool hasOpenedPopup() const OVERRIDE; | 171 virtual bool hasOpenedPopup() const OVERRIDE; |
| 172 virtual PassRefPtr<WebCore::PopupMenu> createPopupMenu(WebCore::PopupMenuCli
ent*) const; | 172 virtual PassRefPtr<WebCore::PopupMenu> createPopupMenu(WebCore::PopupMenuCli
ent*) const; |
| 173 #if ENABLE(PAGE_POPUP) | |
| 174 virtual WebCore::PagePopup* openPagePopup(WebCore::PagePopupClient*, const W
ebCore::IntRect&) OVERRIDE; | 173 virtual WebCore::PagePopup* openPagePopup(WebCore::PagePopupClient*, const W
ebCore::IntRect&) OVERRIDE; |
| 175 virtual void closePagePopup(WebCore::PagePopup*) OVERRIDE; | 174 virtual void closePagePopup(WebCore::PagePopup*) OVERRIDE; |
| 176 virtual void setPagePopupDriver(WebCore::PagePopupDriver*) OVERRIDE; | 175 virtual void setPagePopupDriver(WebCore::PagePopupDriver*) OVERRIDE; |
| 177 virtual void resetPagePopupDriver() OVERRIDE; | 176 virtual void resetPagePopupDriver() OVERRIDE; |
| 178 #endif | |
| 179 virtual bool willAddTextFieldDecorationsTo(WebCore::HTMLInputElement*) OVERR
IDE; | 177 virtual bool willAddTextFieldDecorationsTo(WebCore::HTMLInputElement*) OVERR
IDE; |
| 180 virtual void addTextFieldDecorationsTo(WebCore::HTMLInputElement*) OVERRIDE; | 178 virtual void addTextFieldDecorationsTo(WebCore::HTMLInputElement*) OVERRIDE; |
| 181 | 179 |
| 182 virtual bool shouldRunModalDialogDuringPageDismissal(const DialogType&, cons
t String& dialogMessage, WebCore::FrameLoader::PageDismissalType) const; | 180 virtual bool shouldRunModalDialogDuringPageDismissal(const DialogType&, cons
t String& dialogMessage, WebCore::FrameLoader::PageDismissalType) const; |
| 183 | 181 |
| 184 virtual bool shouldRubberBandInDirection(WebCore::ScrollDirection) const; | 182 virtual bool shouldRubberBandInDirection(WebCore::ScrollDirection) const; |
| 185 virtual void numWheelEventHandlersChanged(unsigned); | 183 virtual void numWheelEventHandlersChanged(unsigned); |
| 186 | 184 |
| 187 virtual bool requestPointerLock(); | 185 virtual bool requestPointerLock(); |
| 188 virtual void requestPointerUnlock(); | 186 virtual void requestPointerUnlock(); |
| 189 virtual bool isPointerLocked(); | 187 virtual bool isPointerLocked(); |
| 190 | 188 |
| 191 virtual void didAssociateFormControls(const Vector<RefPtr<WebCore::Element>
>&) OVERRIDE; | 189 virtual void didAssociateFormControls(const Vector<RefPtr<WebCore::Element>
>&) OVERRIDE; |
| 192 | 190 |
| 193 private: | 191 private: |
| 194 WebNavigationPolicy getNavigationPolicy(); | 192 WebNavigationPolicy getNavigationPolicy(); |
| 195 void getPopupMenuInfo(WebCore::PopupContainer*, WebPopupMenuInfo*); | 193 void getPopupMenuInfo(WebCore::PopupContainer*, WebPopupMenuInfo*); |
| 196 void setCursor(const WebCursorInfo&); | 194 void setCursor(const WebCursorInfo&); |
| 197 | 195 |
| 198 WebViewImpl* m_webView; // weak pointer | 196 WebViewImpl* m_webView; // weak pointer |
| 199 bool m_toolbarsVisible; | 197 bool m_toolbarsVisible; |
| 200 bool m_statusbarVisible; | 198 bool m_statusbarVisible; |
| 201 bool m_scrollbarsVisible; | 199 bool m_scrollbarsVisible; |
| 202 bool m_menubarVisible; | 200 bool m_menubarVisible; |
| 203 bool m_resizable; | 201 bool m_resizable; |
| 204 | 202 |
| 205 // The policy for how the next webview to be created will be shown. | 203 // The policy for how the next webview to be created will be shown. |
| 206 WebNavigationPolicy m_nextNewWindowNavigationPolicy; | 204 WebNavigationPolicy m_nextNewWindowNavigationPolicy; |
| 207 #if ENABLE(PAGE_POPUP) | |
| 208 WebCore::PagePopupDriver* m_pagePopupDriver; | 205 WebCore::PagePopupDriver* m_pagePopupDriver; |
| 209 #endif | |
| 210 }; | 206 }; |
| 211 | 207 |
| 212 #if ENABLE(NAVIGATOR_CONTENT_UTILS) | 208 #if ENABLE(NAVIGATOR_CONTENT_UTILS) |
| 213 class NavigatorContentUtilsClientImpl : public WebCore::NavigatorContentUtilsCli
ent { | 209 class NavigatorContentUtilsClientImpl : public WebCore::NavigatorContentUtilsCli
ent { |
| 214 public: | 210 public: |
| 215 static PassOwnPtr<NavigatorContentUtilsClientImpl> create(WebViewImpl*); | 211 static PassOwnPtr<NavigatorContentUtilsClientImpl> create(WebViewImpl*); |
| 216 ~NavigatorContentUtilsClientImpl() { } | 212 ~NavigatorContentUtilsClientImpl() { } |
| 217 | 213 |
| 218 virtual void registerProtocolHandler(const String& scheme, const String& bas
eURL, const String& url, const String& title) OVERRIDE; | 214 virtual void registerProtocolHandler(const String& scheme, const String& bas
eURL, const String& url, const String& title) OVERRIDE; |
| 219 | 215 |
| 220 private: | 216 private: |
| 221 explicit NavigatorContentUtilsClientImpl(WebViewImpl*); | 217 explicit NavigatorContentUtilsClientImpl(WebViewImpl*); |
| 222 | 218 |
| 223 WebViewImpl* m_webView; | 219 WebViewImpl* m_webView; |
| 224 }; | 220 }; |
| 225 #endif | 221 #endif |
| 226 | 222 |
| 227 } // namespace WebKit | 223 } // namespace WebKit |
| 228 | 224 |
| 229 #endif | 225 #endif |
| OLD | NEW |