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 23 matching lines...) Expand all Loading... |
34 #include "sky/engine/core/page/ChromeClient.h" | 34 #include "sky/engine/core/page/ChromeClient.h" |
35 #include "sky/engine/core/page/EditorClient.h" | 35 #include "sky/engine/core/page/EditorClient.h" |
36 #include "sky/engine/core/page/FocusType.h" | 36 #include "sky/engine/core/page/FocusType.h" |
37 #include "sky/engine/core/page/Page.h" | 37 #include "sky/engine/core/page/Page.h" |
38 #include "sky/engine/core/page/SpellCheckerClient.h" | 38 #include "sky/engine/core/page/SpellCheckerClient.h" |
39 #include "sky/engine/platform/geometry/FloatRect.h" | 39 #include "sky/engine/platform/geometry/FloatRect.h" |
40 #include "sky/engine/platform/network/ResourceError.h" | 40 #include "sky/engine/platform/network/ResourceError.h" |
41 #include "sky/engine/platform/text/TextCheckerClient.h" | 41 #include "sky/engine/platform/text/TextCheckerClient.h" |
42 #include "sky/engine/public/platform/WebScreenInfo.h" | 42 #include "sky/engine/public/platform/WebScreenInfo.h" |
43 #include "sky/engine/wtf/Forward.h" | 43 #include "sky/engine/wtf/Forward.h" |
44 #include "v8/include/v8.h" | |
45 | 44 |
46 /* | 45 /* |
47 This file holds empty Client stubs for use by WebCore. | 46 This file holds empty Client stubs for use by WebCore. |
48 Viewless element needs to create a dummy Page->LocalFrame->FrameView tree for u
se in parsing or executing JavaScript. | 47 Viewless element needs to create a dummy Page->LocalFrame->FrameView tree for u
se in parsing or executing JavaScript. |
49 This tree depends heavily on Clients (usually provided by WebKit classes). | 48 This tree depends heavily on Clients (usually provided by WebKit classes). |
50 | 49 |
51 This file was first created for SVGImage as it had no way to access the current
Page (nor should it, | 50 This file was first created for SVGImage as it had no way to access the current
Page (nor should it, |
52 since Images are not tied to a page). | 51 since Images are not tied to a page). |
53 See http://bugs.webkit.org/show_bug.cgi?id=5971 for the original discussion abo
ut this file. | 52 See http://bugs.webkit.org/show_bug.cgi?id=5971 for the original discussion abo
ut this file. |
54 | 53 |
(...skipping 28 matching lines...) Expand all Loading... |
83 virtual void didStopLoading() override { } | 82 virtual void didStopLoading() override { } |
84 | 83 |
85 virtual void loadURLExternally(const ResourceRequest&, NavigationPolicy, con
st String& = String()) override { } | 84 virtual void loadURLExternally(const ResourceRequest&, NavigationPolicy, con
st String& = String()) override { } |
86 virtual mojo::View* createChildFrame() override { return nullptr; } | 85 virtual mojo::View* createChildFrame() override { return nullptr; } |
87 | 86 |
88 virtual void transitionToCommittedForNewPage() override { } | 87 virtual void transitionToCommittedForNewPage() override { } |
89 | 88 |
90 virtual void selectorMatchChanged(const Vector<String>&, const Vector<String
>&) override { } | 89 virtual void selectorMatchChanged(const Vector<String>&, const Vector<String
>&) override { } |
91 | 90 |
92 virtual void documentElementAvailable() override { } | 91 virtual void documentElementAvailable() override { } |
93 | |
94 virtual void didCreateScriptContext(v8::Handle<v8::Context>) override { } | |
95 virtual void willReleaseScriptContext(v8::Handle<v8::Context>) override { } | |
96 }; | 92 }; |
97 | 93 |
98 class EmptyTextCheckerClient : public TextCheckerClient { | 94 class EmptyTextCheckerClient : public TextCheckerClient { |
99 public: | 95 public: |
100 ~EmptyTextCheckerClient() { } | 96 ~EmptyTextCheckerClient() { } |
101 | 97 |
102 virtual bool shouldEraseMarkersAfterChangeSelection(TextCheckingType) const
override { return true; } | 98 virtual bool shouldEraseMarkersAfterChangeSelection(TextCheckingType) const
override { return true; } |
103 virtual void checkSpellingOfString(const String&, int*, int*) override { } | 99 virtual void checkSpellingOfString(const String&, int*, int*) override { } |
104 virtual String getAutoCorrectSuggestionForMisspelledWord(const String&) over
ride { return String(); } | 100 virtual String getAutoCorrectSuggestionForMisspelledWord(const String&) over
ride { return String(); } |
105 virtual void checkGrammarOfString(const String&, Vector<GrammarDetail>&, int
*, int*) override { } | 101 virtual void checkGrammarOfString(const String&, Vector<GrammarDetail>&, int
*, int*) override { } |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 virtual bool canPaste(LocalFrame*, bool defaultValue) const override { retur
n defaultValue; } | 135 virtual bool canPaste(LocalFrame*, bool defaultValue) const override { retur
n defaultValue; } |
140 | 136 |
141 virtual bool handleKeyboardEvent() override { return false; } | 137 virtual bool handleKeyboardEvent() override { return false; } |
142 }; | 138 }; |
143 | 139 |
144 void fillWithEmptyClients(Page::PageClients&); | 140 void fillWithEmptyClients(Page::PageClients&); |
145 | 141 |
146 } | 142 } |
147 | 143 |
148 #endif // SKY_ENGINE_CORE_LOADER_EMPTYCLIENTS_H_ | 144 #endif // SKY_ENGINE_CORE_LOADER_EMPTYCLIENTS_H_ |
OLD | NEW |