| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org) | 2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org) |
| 3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 void didAssociateFormControls(const WillBeHeapVector<RefPtrWillBeMember<Elem
ent>>&, LocalFrame*) override {} | 157 void didAssociateFormControls(const WillBeHeapVector<RefPtrWillBeMember<Elem
ent>>&, LocalFrame*) override {} |
| 158 | 158 |
| 159 void annotatedRegionsChanged() override {} | 159 void annotatedRegionsChanged() override {} |
| 160 String acceptLanguages() override; | 160 String acceptLanguages() override; |
| 161 | 161 |
| 162 void registerPopupOpeningObserver(PopupOpeningObserver*) override {} | 162 void registerPopupOpeningObserver(PopupOpeningObserver*) override {} |
| 163 void unregisterPopupOpeningObserver(PopupOpeningObserver*) override {} | 163 void unregisterPopupOpeningObserver(PopupOpeningObserver*) override {} |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 class CORE_EXPORT EmptyFrameLoaderClient : public FrameLoaderClient { | 166 class CORE_EXPORT EmptyFrameLoaderClient : public FrameLoaderClient { |
| 167 WTF_MAKE_NONCOPYABLE(EmptyFrameLoaderClient); WTF_MAKE_FAST_ALLOCATED(EmptyF
rameLoaderClient); | 167 WTF_MAKE_NONCOPYABLE(EmptyFrameLoaderClient); |
| 168 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(EmptyFrameLoaderClient); |
| 168 public: | 169 public: |
| 169 EmptyFrameLoaderClient() {} | 170 static PassOwnPtrWillBeRawPtr<EmptyFrameLoaderClient> create() { return adop
tPtrWillBeNoop(new EmptyFrameLoaderClient); } |
| 170 ~EmptyFrameLoaderClient() override {} | 171 ~EmptyFrameLoaderClient() override {} |
| 171 | 172 |
| 172 bool hasWebView() const override { return true; } // mainly for assertions | 173 bool hasWebView() const override { return true; } // mainly for assertions |
| 173 | 174 |
| 174 bool inShadowTree() const override { return false; } | 175 bool inShadowTree() const override { return false; } |
| 175 | 176 |
| 176 Frame* opener() const override { return 0; } | 177 Frame* opener() const override { return 0; } |
| 177 void setOpener(Frame*) override {} | 178 void setOpener(Frame*) override {} |
| 178 | 179 |
| 179 Frame* parent() const override { return 0; } | 180 Frame* parent() const override { return 0; } |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 v8::Local<v8::Value> createTestInterface(const AtomicString& name) override; | 250 v8::Local<v8::Value> createTestInterface(const AtomicString& name) override; |
| 250 | 251 |
| 251 WebCookieJar* cookieJar() const override { return 0; } | 252 WebCookieJar* cookieJar() const override { return 0; } |
| 252 | 253 |
| 253 void didRequestAutocomplete(HTMLFormElement*) override; | 254 void didRequestAutocomplete(HTMLFormElement*) override; |
| 254 | 255 |
| 255 PassOwnPtr<WebServiceWorkerProvider> createServiceWorkerProvider() override; | 256 PassOwnPtr<WebServiceWorkerProvider> createServiceWorkerProvider() override; |
| 256 bool isControlledByServiceWorker(DocumentLoader&) override { return false; } | 257 bool isControlledByServiceWorker(DocumentLoader&) override { return false; } |
| 257 int64_t serviceWorkerID(DocumentLoader&) override { return -1; } | 258 int64_t serviceWorkerID(DocumentLoader&) override { return -1; } |
| 258 PassOwnPtr<WebApplicationCacheHost> createApplicationCacheHost(WebApplicatio
nCacheHostClient*) override; | 259 PassOwnPtr<WebApplicationCacheHost> createApplicationCacheHost(WebApplicatio
nCacheHostClient*) override; |
| 260 |
| 261 protected: |
| 262 EmptyFrameLoaderClient() {} |
| 259 }; | 263 }; |
| 260 | 264 |
| 261 class CORE_EXPORT EmptyTextCheckerClient : public TextCheckerClient { | 265 class CORE_EXPORT EmptyTextCheckerClient : public TextCheckerClient { |
| 262 public: | 266 public: |
| 263 ~EmptyTextCheckerClient() { } | 267 ~EmptyTextCheckerClient() { } |
| 264 | 268 |
| 265 bool shouldEraseMarkersAfterChangeSelection(TextCheckingType) const override
{ return true; } | 269 bool shouldEraseMarkersAfterChangeSelection(TextCheckingType) const override
{ return true; } |
| 266 void checkSpellingOfString(const String&, int*, int*) override {} | 270 void checkSpellingOfString(const String&, int*, int*) override {} |
| 267 String getAutoCorrectSuggestionForMisspelledWord(const String&) override { r
eturn String(); } | 271 String getAutoCorrectSuggestionForMisspelledWord(const String&) override { r
eturn String(); } |
| 268 void checkGrammarOfString(const String&, Vector<GrammarDetail>&, int*, int*)
override {} | 272 void checkGrammarOfString(const String&, Vector<GrammarDetail>&, int*, int*)
override {} |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 ~EmptyDragClient() override {} | 324 ~EmptyDragClient() override {} |
| 321 DragDestinationAction actionMaskForDrag(DragData*) override { return DragDes
tinationActionNone; } | 325 DragDestinationAction actionMaskForDrag(DragData*) override { return DragDes
tinationActionNone; } |
| 322 void startDrag(DragImage*, const IntPoint&, const IntPoint&, DataTransfer*,
LocalFrame*, bool) override {} | 326 void startDrag(DragImage*, const IntPoint&, const IntPoint&, DataTransfer*,
LocalFrame*, bool) override {} |
| 323 }; | 327 }; |
| 324 | 328 |
| 325 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); | 329 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); |
| 326 | 330 |
| 327 } // namespace blink | 331 } // namespace blink |
| 328 | 332 |
| 329 #endif // EmptyClients_h | 333 #endif // EmptyClients_h |
| OLD | NEW |