| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 187 |
| 188 // ChromeClientImpl: | 188 // ChromeClientImpl: |
| 189 void setCursorForPlugin(const WebCursorInfo&); | 189 void setCursorForPlugin(const WebCursorInfo&); |
| 190 void setNewWindowNavigationPolicy(WebNavigationPolicy); | 190 void setNewWindowNavigationPolicy(WebNavigationPolicy); |
| 191 | 191 |
| 192 virtual bool selectItemWritingDirectionIsNatural(); | 192 virtual bool selectItemWritingDirectionIsNatural(); |
| 193 virtual bool selectItemAlignmentFollowsMenuWritingDirection(); | 193 virtual bool selectItemAlignmentFollowsMenuWritingDirection(); |
| 194 virtual bool hasOpenedPopup() const OVERRIDE; | 194 virtual bool hasOpenedPopup() const OVERRIDE; |
| 195 virtual PassRefPtr<WebCore::PopupMenu> createPopupMenu(WebCore::PopupMenuCli
ent*) const; | 195 virtual PassRefPtr<WebCore::PopupMenu> createPopupMenu(WebCore::PopupMenuCli
ent*) const; |
| 196 virtual PassRefPtr<WebCore::SearchPopupMenu> createSearchPopupMenu(WebCore::
PopupMenuClient*) const; | 196 virtual PassRefPtr<WebCore::SearchPopupMenu> createSearchPopupMenu(WebCore::
PopupMenuClient*) const; |
| 197 #if ENABLE(PAGE_POPUP) | |
| 198 virtual WebCore::PagePopup* openPagePopup(WebCore::PagePopupClient*, const W
ebCore::IntRect&) OVERRIDE; | 197 virtual WebCore::PagePopup* openPagePopup(WebCore::PagePopupClient*, const W
ebCore::IntRect&) OVERRIDE; |
| 199 virtual void closePagePopup(WebCore::PagePopup*) OVERRIDE; | 198 virtual void closePagePopup(WebCore::PagePopup*) OVERRIDE; |
| 200 virtual void setPagePopupDriver(WebCore::PagePopupDriver*) OVERRIDE; | 199 virtual void setPagePopupDriver(WebCore::PagePopupDriver*) OVERRIDE; |
| 201 virtual void resetPagePopupDriver() OVERRIDE; | 200 virtual void resetPagePopupDriver() OVERRIDE; |
| 202 #endif | |
| 203 virtual bool willAddTextFieldDecorationsTo(WebCore::HTMLInputElement*) OVERR
IDE; | 201 virtual bool willAddTextFieldDecorationsTo(WebCore::HTMLInputElement*) OVERR
IDE; |
| 204 virtual void addTextFieldDecorationsTo(WebCore::HTMLInputElement*) OVERRIDE; | 202 virtual void addTextFieldDecorationsTo(WebCore::HTMLInputElement*) OVERRIDE; |
| 205 | 203 |
| 206 virtual bool shouldRunModalDialogDuringPageDismissal(const DialogType&, cons
t String& dialogMessage, WebCore::FrameLoader::PageDismissalType) const; | 204 virtual bool shouldRunModalDialogDuringPageDismissal(const DialogType&, cons
t String& dialogMessage, WebCore::FrameLoader::PageDismissalType) const; |
| 207 | 205 |
| 208 virtual bool shouldRubberBandInDirection(WebCore::ScrollDirection) const; | 206 virtual bool shouldRubberBandInDirection(WebCore::ScrollDirection) const; |
| 209 virtual void numWheelEventHandlersChanged(unsigned); | 207 virtual void numWheelEventHandlersChanged(unsigned); |
| 210 | 208 |
| 211 virtual bool shouldAutoscrollForDragAndDrop(WebCore::RenderBox* scrollable)
const OVERRIDE; | 209 virtual bool shouldAutoscrollForDragAndDrop(WebCore::RenderBox* scrollable)
const OVERRIDE; |
| 212 | 210 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 224 | 222 |
| 225 WebViewImpl* m_webView; // weak pointer | 223 WebViewImpl* m_webView; // weak pointer |
| 226 bool m_toolbarsVisible; | 224 bool m_toolbarsVisible; |
| 227 bool m_statusbarVisible; | 225 bool m_statusbarVisible; |
| 228 bool m_scrollbarsVisible; | 226 bool m_scrollbarsVisible; |
| 229 bool m_menubarVisible; | 227 bool m_menubarVisible; |
| 230 bool m_resizable; | 228 bool m_resizable; |
| 231 | 229 |
| 232 // The policy for how the next webview to be created will be shown. | 230 // The policy for how the next webview to be created will be shown. |
| 233 WebNavigationPolicy m_nextNewWindowNavigationPolicy; | 231 WebNavigationPolicy m_nextNewWindowNavigationPolicy; |
| 234 #if ENABLE(PAGE_POPUP) | |
| 235 WebCore::PagePopupDriver* m_pagePopupDriver; | 232 WebCore::PagePopupDriver* m_pagePopupDriver; |
| 236 #endif | |
| 237 }; | 233 }; |
| 238 | 234 |
| 239 #if ENABLE(NAVIGATOR_CONTENT_UTILS) | 235 #if ENABLE(NAVIGATOR_CONTENT_UTILS) |
| 240 class NavigatorContentUtilsClientImpl : public WebCore::NavigatorContentUtilsCli
ent { | 236 class NavigatorContentUtilsClientImpl : public WebCore::NavigatorContentUtilsCli
ent { |
| 241 public: | 237 public: |
| 242 static PassOwnPtr<NavigatorContentUtilsClientImpl> create(WebViewImpl*); | 238 static PassOwnPtr<NavigatorContentUtilsClientImpl> create(WebViewImpl*); |
| 243 ~NavigatorContentUtilsClientImpl() { } | 239 ~NavigatorContentUtilsClientImpl() { } |
| 244 | 240 |
| 245 virtual void registerProtocolHandler(const String& scheme, const String& bas
eURL, const String& url, const String& title) OVERRIDE; | 241 virtual void registerProtocolHandler(const String& scheme, const String& bas
eURL, const String& url, const String& title) OVERRIDE; |
| 246 | 242 |
| 247 private: | 243 private: |
| 248 explicit NavigatorContentUtilsClientImpl(WebViewImpl*); | 244 explicit NavigatorContentUtilsClientImpl(WebViewImpl*); |
| 249 | 245 |
| 250 WebViewImpl* m_webView; | 246 WebViewImpl* m_webView; |
| 251 }; | 247 }; |
| 252 #endif | 248 #endif |
| 253 | 249 |
| 254 } // namespace WebKit | 250 } // namespace WebKit |
| 255 | 251 |
| 256 #endif | 252 #endif |
| OLD | NEW |