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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 Ideally, whenever you change a Client class, you should add a stub here. | 62 Ideally, whenever you change a Client class, you should add a stub here. |
63 Brittle, yes. Unfortunate, yes. Hopefully temporary. | 63 Brittle, yes. Unfortunate, yes. Hopefully temporary. |
64 */ | 64 */ |
65 | 65 |
66 namespace blink { | 66 namespace blink { |
67 | 67 |
68 class EmptyChromeClient : public ChromeClient { | 68 class EmptyChromeClient : public ChromeClient { |
69 WTF_MAKE_FAST_ALLOCATED; | 69 WTF_MAKE_FAST_ALLOCATED; |
70 public: | 70 public: |
71 virtual ~EmptyChromeClient() { } | 71 virtual ~EmptyChromeClient() { } |
72 virtual void chromeDestroyed() OVERRIDE { } | 72 virtual void chromeDestroyed() override { } |
73 | 73 |
74 virtual void* webView() const OVERRIDE { return 0; } | 74 virtual void* webView() const override { return 0; } |
75 virtual void setWindowRect(const FloatRect&) OVERRIDE { } | 75 virtual void setWindowRect(const FloatRect&) override { } |
76 virtual FloatRect windowRect() OVERRIDE { return FloatRect(); } | 76 virtual FloatRect windowRect() override { return FloatRect(); } |
77 | 77 |
78 virtual FloatRect pageRect() OVERRIDE { return FloatRect(); } | 78 virtual FloatRect pageRect() override { return FloatRect(); } |
79 | 79 |
80 virtual void focus() OVERRIDE { } | 80 virtual void focus() override { } |
81 | 81 |
82 virtual bool canTakeFocus(FocusType) OVERRIDE { return false; } | 82 virtual bool canTakeFocus(FocusType) override { return false; } |
83 virtual void takeFocus(FocusType) OVERRIDE { } | 83 virtual void takeFocus(FocusType) override { } |
84 | 84 |
85 virtual void focusedNodeChanged(Node*) OVERRIDE { } | 85 virtual void focusedNodeChanged(Node*) override { } |
86 virtual void focusedFrameChanged(LocalFrame*) OVERRIDE { } | 86 virtual void focusedFrameChanged(LocalFrame*) override { } |
87 virtual Page* createWindow(LocalFrame*, const FrameLoadRequest&, const Windo
wFeatures&, NavigationPolicy, ShouldSendReferrer) OVERRIDE { return 0; } | 87 virtual Page* createWindow(LocalFrame*, const FrameLoadRequest&, const Windo
wFeatures&, NavigationPolicy, ShouldSendReferrer) override { return 0; } |
88 virtual void show(NavigationPolicy) OVERRIDE { } | 88 virtual void show(NavigationPolicy) override { } |
89 | 89 |
90 virtual bool canRunModal() OVERRIDE { return false; } | 90 virtual bool canRunModal() override { return false; } |
91 virtual void runModal() OVERRIDE { } | 91 virtual void runModal() override { } |
92 | 92 |
93 virtual void setToolbarsVisible(bool) OVERRIDE { } | 93 virtual void setToolbarsVisible(bool) override { } |
94 virtual bool toolbarsVisible() OVERRIDE { return false; } | 94 virtual bool toolbarsVisible() override { return false; } |
95 | 95 |
96 virtual void setStatusbarVisible(bool) OVERRIDE { } | 96 virtual void setStatusbarVisible(bool) override { } |
97 virtual bool statusbarVisible() OVERRIDE { return false; } | 97 virtual bool statusbarVisible() override { return false; } |
98 | 98 |
99 virtual void setScrollbarsVisible(bool) OVERRIDE { } | 99 virtual void setScrollbarsVisible(bool) override { } |
100 virtual bool scrollbarsVisible() OVERRIDE { return false; } | 100 virtual bool scrollbarsVisible() override { return false; } |
101 | 101 |
102 virtual void setMenubarVisible(bool) OVERRIDE { } | 102 virtual void setMenubarVisible(bool) override { } |
103 virtual bool menubarVisible() OVERRIDE { return false; } | 103 virtual bool menubarVisible() override { return false; } |
104 | 104 |
105 virtual void setResizable(bool) OVERRIDE { } | 105 virtual void setResizable(bool) override { } |
106 | 106 |
107 virtual bool shouldReportDetailedMessageForSource(const String&) OVERRIDE {
return false; } | 107 virtual bool shouldReportDetailedMessageForSource(const String&) override {
return false; } |
108 virtual void addMessageToConsole(LocalFrame*, MessageSource, MessageLevel, c
onst String&, unsigned, const String&, const String&) OVERRIDE { } | 108 virtual void addMessageToConsole(LocalFrame*, MessageSource, MessageLevel, c
onst String&, unsigned, const String&, const String&) override { } |
109 | 109 |
110 virtual bool canRunBeforeUnloadConfirmPanel() OVERRIDE { return false; } | 110 virtual bool canRunBeforeUnloadConfirmPanel() override { return false; } |
111 virtual bool runBeforeUnloadConfirmPanel(const String&, LocalFrame*) OVERRID
E { return true; } | 111 virtual bool runBeforeUnloadConfirmPanel(const String&, LocalFrame*) overrid
e { return true; } |
112 | 112 |
113 virtual void closeWindowSoon() OVERRIDE { } | 113 virtual void closeWindowSoon() override { } |
114 | 114 |
115 virtual void runJavaScriptAlert(LocalFrame*, const String&) OVERRIDE { } | 115 virtual void runJavaScriptAlert(LocalFrame*, const String&) override { } |
116 virtual bool runJavaScriptConfirm(LocalFrame*, const String&) OVERRIDE { ret
urn false; } | 116 virtual bool runJavaScriptConfirm(LocalFrame*, const String&) override { ret
urn false; } |
117 virtual bool runJavaScriptPrompt(LocalFrame*, const String&, const String&,
String&) OVERRIDE { return false; } | 117 virtual bool runJavaScriptPrompt(LocalFrame*, const String&, const String&,
String&) override { return false; } |
118 | 118 |
119 virtual bool hasOpenedPopup() const OVERRIDE { return false; } | 119 virtual bool hasOpenedPopup() const override { return false; } |
120 virtual PassRefPtrWillBeRawPtr<PopupMenu> createPopupMenu(LocalFrame&, Popup
MenuClient*) const OVERRIDE; | 120 virtual PassRefPtrWillBeRawPtr<PopupMenu> createPopupMenu(LocalFrame&, Popup
MenuClient*) const override; |
121 virtual void setPagePopupDriver(PagePopupDriver*) OVERRIDE { } | 121 virtual void setPagePopupDriver(PagePopupDriver*) override { } |
122 virtual void resetPagePopupDriver() OVERRIDE { } | 122 virtual void resetPagePopupDriver() override { } |
123 virtual PagePopupDriver* pagePopupDriver() const OVERRIDE { return nullptr;
} | 123 virtual PagePopupDriver* pagePopupDriver() const override { return nullptr;
} |
124 | 124 |
125 virtual void setStatusbarText(const String&) OVERRIDE { } | 125 virtual void setStatusbarText(const String&) override { } |
126 | 126 |
127 virtual bool tabsToLinks() OVERRIDE { return false; } | 127 virtual bool tabsToLinks() override { return false; } |
128 | 128 |
129 virtual IntRect windowResizerRect() const OVERRIDE { return IntRect(); } | 129 virtual IntRect windowResizerRect() const override { return IntRect(); } |
130 | 130 |
131 virtual void invalidateContentsAndRootView(const IntRect&) OVERRIDE { } | 131 virtual void invalidateContentsAndRootView(const IntRect&) override { } |
132 virtual void invalidateContentsForSlowScroll(const IntRect&) OVERRIDE { } | 132 virtual void invalidateContentsForSlowScroll(const IntRect&) override { } |
133 virtual void scheduleAnimation() OVERRIDE { } | 133 virtual void scheduleAnimation() override { } |
134 | 134 |
135 virtual IntRect rootViewToScreen(const IntRect& r) const OVERRIDE { return r
; } | 135 virtual IntRect rootViewToScreen(const IntRect& r) const override { return r
; } |
136 virtual blink::WebScreenInfo screenInfo() const OVERRIDE { return blink::Web
ScreenInfo(); } | 136 virtual blink::WebScreenInfo screenInfo() const override { return blink::Web
ScreenInfo(); } |
137 virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const OVERRIDE
{ } | 137 virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const override
{ } |
138 | 138 |
139 virtual void mouseDidMoveOverElement(const HitTestResult&, unsigned) OVERRID
E { } | 139 virtual void mouseDidMoveOverElement(const HitTestResult&, unsigned) overrid
e { } |
140 | 140 |
141 virtual void setToolTip(const String&, TextDirection) OVERRIDE { } | 141 virtual void setToolTip(const String&, TextDirection) override { } |
142 | 142 |
143 virtual void print(LocalFrame*) OVERRIDE { } | 143 virtual void print(LocalFrame*) override { } |
144 | 144 |
145 virtual void enumerateChosenDirectory(FileChooser*) OVERRIDE { } | 145 virtual void enumerateChosenDirectory(FileChooser*) override { } |
146 | 146 |
147 virtual PassOwnPtr<ColorChooser> createColorChooser(LocalFrame*, ColorChoose
rClient*, const Color&) OVERRIDE; | 147 virtual PassOwnPtr<ColorChooser> createColorChooser(LocalFrame*, ColorChoose
rClient*, const Color&) override; |
148 virtual PassRefPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserClien
t*, const DateTimeChooserParameters&) OVERRIDE; | 148 virtual PassRefPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserClien
t*, const DateTimeChooserParameters&) override; |
149 virtual void openTextDataListChooser(HTMLInputElement&) OVERRIDE; | 149 virtual void openTextDataListChooser(HTMLInputElement&) override; |
150 | 150 |
151 virtual void runOpenPanel(LocalFrame*, PassRefPtr<FileChooser>) OVERRIDE; | 151 virtual void runOpenPanel(LocalFrame*, PassRefPtr<FileChooser>) override; |
152 | 152 |
153 virtual void setCursor(const Cursor&) OVERRIDE { } | 153 virtual void setCursor(const Cursor&) override { } |
154 | 154 |
155 virtual void attachRootGraphicsLayer(GraphicsLayer*) OVERRIDE { } | 155 virtual void attachRootGraphicsLayer(GraphicsLayer*) override { } |
156 | 156 |
157 virtual void needTouchEvents(bool) OVERRIDE { } | 157 virtual void needTouchEvents(bool) override { } |
158 virtual void setTouchAction(TouchAction touchAction) OVERRIDE { }; | 158 virtual void setTouchAction(TouchAction touchAction) override { }; |
159 | 159 |
160 virtual void didAssociateFormControls(const WillBeHeapVector<RefPtrWillBeMem
ber<Element> >&) OVERRIDE { } | 160 virtual void didAssociateFormControls(const WillBeHeapVector<RefPtrWillBeMem
ber<Element> >&) override { } |
161 | 161 |
162 virtual void annotatedRegionsChanged() OVERRIDE { } | 162 virtual void annotatedRegionsChanged() override { } |
163 virtual bool paintCustomOverhangArea(GraphicsContext*, const IntRect&, const
IntRect&, const IntRect&) OVERRIDE { return false; } | 163 virtual bool paintCustomOverhangArea(GraphicsContext*, const IntRect&, const
IntRect&, const IntRect&) override { return false; } |
164 virtual String acceptLanguages() OVERRIDE; | 164 virtual String acceptLanguages() override; |
165 }; | 165 }; |
166 | 166 |
167 class EmptyFrameLoaderClient : public FrameLoaderClient { | 167 class EmptyFrameLoaderClient : public FrameLoaderClient { |
168 WTF_MAKE_NONCOPYABLE(EmptyFrameLoaderClient); WTF_MAKE_FAST_ALLOCATED; | 168 WTF_MAKE_NONCOPYABLE(EmptyFrameLoaderClient); WTF_MAKE_FAST_ALLOCATED; |
169 public: | 169 public: |
170 EmptyFrameLoaderClient() { } | 170 EmptyFrameLoaderClient() { } |
171 virtual ~EmptyFrameLoaderClient() { } | 171 virtual ~EmptyFrameLoaderClient() { } |
172 | 172 |
173 virtual bool hasWebView() const OVERRIDE { return true; } // mainly for asse
rtions | 173 virtual bool hasWebView() const override { return true; } // mainly for asse
rtions |
174 | 174 |
175 virtual Frame* opener() const OVERRIDE { return 0; } | 175 virtual Frame* opener() const override { return 0; } |
176 virtual void setOpener(Frame*) OVERRIDE { } | 176 virtual void setOpener(Frame*) override { } |
177 | 177 |
178 virtual Frame* parent() const OVERRIDE { return 0; } | 178 virtual Frame* parent() const override { return 0; } |
179 virtual Frame* top() const OVERRIDE { return 0; } | 179 virtual Frame* top() const override { return 0; } |
180 virtual Frame* previousSibling() const OVERRIDE { return 0; } | 180 virtual Frame* previousSibling() const override { return 0; } |
181 virtual Frame* nextSibling() const OVERRIDE { return 0; } | 181 virtual Frame* nextSibling() const override { return 0; } |
182 virtual Frame* firstChild() const OVERRIDE { return 0; } | 182 virtual Frame* firstChild() const override { return 0; } |
183 virtual Frame* lastChild() const OVERRIDE { return 0; } | 183 virtual Frame* lastChild() const override { return 0; } |
184 virtual void detachedFromParent() OVERRIDE { } | 184 virtual void detachedFromParent() override { } |
185 | 185 |
186 virtual void dispatchWillSendRequest(DocumentLoader*, unsigned long, Resourc
eRequest&, const ResourceResponse&) OVERRIDE { } | 186 virtual void dispatchWillSendRequest(DocumentLoader*, unsigned long, Resourc
eRequest&, const ResourceResponse&) override { } |
187 virtual void dispatchDidReceiveResponse(DocumentLoader*, unsigned long, cons
t ResourceResponse&) OVERRIDE { } | 187 virtual void dispatchDidReceiveResponse(DocumentLoader*, unsigned long, cons
t ResourceResponse&) override { } |
188 virtual void dispatchDidFinishLoading(DocumentLoader*, unsigned long) OVERRI
DE { } | 188 virtual void dispatchDidFinishLoading(DocumentLoader*, unsigned long) overri
de { } |
189 virtual void dispatchDidLoadResourceFromMemoryCache(const ResourceRequest&,
const ResourceResponse&) OVERRIDE { } | 189 virtual void dispatchDidLoadResourceFromMemoryCache(const ResourceRequest&,
const ResourceResponse&) override { } |
190 | 190 |
191 virtual void dispatchDidHandleOnloadEvents() OVERRIDE { } | 191 virtual void dispatchDidHandleOnloadEvents() override { } |
192 virtual void dispatchDidReceiveServerRedirectForProvisionalLoad() OVERRIDE {
} | 192 virtual void dispatchDidReceiveServerRedirectForProvisionalLoad() override {
} |
193 virtual void dispatchWillClose() OVERRIDE { } | 193 virtual void dispatchWillClose() override { } |
194 virtual void dispatchDidStartProvisionalLoad(bool isTransitionNavigation) OV
ERRIDE { } | 194 virtual void dispatchDidStartProvisionalLoad(bool isTransitionNavigation) ov
erride { } |
195 virtual void dispatchDidReceiveTitle(const String&) OVERRIDE { } | 195 virtual void dispatchDidReceiveTitle(const String&) override { } |
196 virtual void dispatchDidChangeIcons(IconType) OVERRIDE { } | 196 virtual void dispatchDidChangeIcons(IconType) override { } |
197 virtual void dispatchDidCommitLoad(LocalFrame*, HistoryItem*, HistoryCommitT
ype) OVERRIDE { } | 197 virtual void dispatchDidCommitLoad(LocalFrame*, HistoryItem*, HistoryCommitT
ype) override { } |
198 virtual void dispatchDidFailProvisionalLoad(const ResourceError&) OVERRIDE {
} | 198 virtual void dispatchDidFailProvisionalLoad(const ResourceError&) override {
} |
199 virtual void dispatchDidFailLoad(const ResourceError&) OVERRIDE { } | 199 virtual void dispatchDidFailLoad(const ResourceError&) override { } |
200 virtual void dispatchDidFinishDocumentLoad() OVERRIDE { } | 200 virtual void dispatchDidFinishDocumentLoad() override { } |
201 virtual void dispatchDidFinishLoad() OVERRIDE { } | 201 virtual void dispatchDidFinishLoad() override { } |
202 virtual void dispatchDidFirstVisuallyNonEmptyLayout() OVERRIDE { } | 202 virtual void dispatchDidFirstVisuallyNonEmptyLayout() override { } |
203 virtual void dispatchDidChangeThemeColor() OVERRIDE { }; | 203 virtual void dispatchDidChangeThemeColor() override { }; |
204 | 204 |
205 virtual NavigationPolicy decidePolicyForNavigation(const ResourceRequest&, D
ocumentLoader*, NavigationPolicy, bool isTransitionNavigation) OVERRIDE; | 205 virtual NavigationPolicy decidePolicyForNavigation(const ResourceRequest&, D
ocumentLoader*, NavigationPolicy, bool isTransitionNavigation) override; |
206 | 206 |
207 virtual void dispatchWillSendSubmitEvent(HTMLFormElement*) OVERRIDE; | 207 virtual void dispatchWillSendSubmitEvent(HTMLFormElement*) override; |
208 virtual void dispatchWillSubmitForm(HTMLFormElement*) OVERRIDE; | 208 virtual void dispatchWillSubmitForm(HTMLFormElement*) override; |
209 | 209 |
210 virtual void didStartLoading(LoadStartType) OVERRIDE { } | 210 virtual void didStartLoading(LoadStartType) override { } |
211 virtual void progressEstimateChanged(double) OVERRIDE { } | 211 virtual void progressEstimateChanged(double) override { } |
212 virtual void didStopLoading() OVERRIDE { } | 212 virtual void didStopLoading() override { } |
213 | 213 |
214 virtual void loadURLExternally(const ResourceRequest&, NavigationPolicy, con
st String& = String()) OVERRIDE { } | 214 virtual void loadURLExternally(const ResourceRequest&, NavigationPolicy, con
st String& = String()) override { } |
215 | 215 |
216 virtual PassRefPtr<DocumentLoader> createDocumentLoader(LocalFrame*, const R
esourceRequest&, const SubstituteData&) OVERRIDE; | 216 virtual PassRefPtr<DocumentLoader> createDocumentLoader(LocalFrame*, const R
esourceRequest&, const SubstituteData&) override; |
217 | 217 |
218 virtual String userAgent(const KURL&) OVERRIDE { return ""; } | 218 virtual String userAgent(const KURL&) override { return ""; } |
219 | 219 |
220 virtual String doNotTrackValue() OVERRIDE { return String(); } | 220 virtual String doNotTrackValue() override { return String(); } |
221 | 221 |
222 virtual void transitionToCommittedForNewPage() OVERRIDE { } | 222 virtual void transitionToCommittedForNewPage() override { } |
223 | 223 |
224 virtual bool navigateBackForward(int offset) const OVERRIDE { return false;
} | 224 virtual bool navigateBackForward(int offset) const override { return false;
} |
225 virtual void didDisplayInsecureContent() OVERRIDE { } | 225 virtual void didDisplayInsecureContent() override { } |
226 virtual void didRunInsecureContent(SecurityOrigin*, const KURL&) OVERRIDE {
} | 226 virtual void didRunInsecureContent(SecurityOrigin*, const KURL&) override {
} |
227 virtual void didDetectXSS(const KURL&, bool) OVERRIDE { } | 227 virtual void didDetectXSS(const KURL&, bool) override { } |
228 virtual void didDispatchPingLoader(const KURL&) OVERRIDE { } | 228 virtual void didDispatchPingLoader(const KURL&) override { } |
229 virtual void selectorMatchChanged(const Vector<String>&, const Vector<String
>&) OVERRIDE { } | 229 virtual void selectorMatchChanged(const Vector<String>&, const Vector<String
>&) override { } |
230 virtual PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const KURL&, const At
omicString&, const Referrer&, HTMLFrameOwnerElement*) OVERRIDE; | 230 virtual PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const KURL&, const At
omicString&, const Referrer&, HTMLFrameOwnerElement*) override; |
231 virtual PassRefPtr<Widget> createPlugin(HTMLPlugInElement*, const KURL&, con
st Vector<String>&, const Vector<String>&, const String&, bool, DetachedPluginPo
licy) OVERRIDE; | 231 virtual PassRefPtr<Widget> createPlugin(HTMLPlugInElement*, const KURL&, con
st Vector<String>&, const Vector<String>&, const String&, bool, DetachedPluginPo
licy) override; |
232 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const OV
ERRIDE { return false; } | 232 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const ov
erride { return false; } |
233 virtual PassRefPtr<Widget> createJavaAppletWidget(HTMLAppletElement*, const
KURL&, const Vector<String>&, const Vector<String>&) OVERRIDE; | 233 virtual PassRefPtr<Widget> createJavaAppletWidget(HTMLAppletElement*, const
KURL&, const Vector<String>&, const Vector<String>&) override; |
234 | 234 |
235 virtual ObjectContentType objectContentType(const KURL&, const String&, bool
) OVERRIDE { return ObjectContentType(); } | 235 virtual ObjectContentType objectContentType(const KURL&, const String&, bool
) override { return ObjectContentType(); } |
236 | 236 |
237 virtual void dispatchDidClearWindowObjectInMainWorld() OVERRIDE { } | 237 virtual void dispatchDidClearWindowObjectInMainWorld() override { } |
238 virtual void documentElementAvailable() OVERRIDE { } | 238 virtual void documentElementAvailable() override { } |
239 | 239 |
240 virtual void didCreateScriptContext(v8::Handle<v8::Context>, int extensionGr
oup, int worldId) OVERRIDE { } | 240 virtual void didCreateScriptContext(v8::Handle<v8::Context>, int extensionGr
oup, int worldId) override { } |
241 virtual void willReleaseScriptContext(v8::Handle<v8::Context>, int worldId)
OVERRIDE { } | 241 virtual void willReleaseScriptContext(v8::Handle<v8::Context>, int worldId)
override { } |
242 virtual bool allowScriptExtension(const String& extensionName, int extension
Group, int worldId) OVERRIDE { return false; } | 242 virtual bool allowScriptExtension(const String& extensionName, int extension
Group, int worldId) override { return false; } |
243 | 243 |
244 virtual blink::WebCookieJar* cookieJar() const OVERRIDE { return 0; } | 244 virtual blink::WebCookieJar* cookieJar() const override { return 0; } |
245 | 245 |
246 virtual void didRequestAutocomplete(HTMLFormElement*) OVERRIDE; | 246 virtual void didRequestAutocomplete(HTMLFormElement*) override; |
247 | 247 |
248 virtual PassOwnPtr<blink::WebServiceWorkerProvider> createServiceWorkerProvi
der() OVERRIDE; | 248 virtual PassOwnPtr<blink::WebServiceWorkerProvider> createServiceWorkerProvi
der() override; |
249 virtual bool isControlledByServiceWorker() OVERRIDE { return false; } | 249 virtual bool isControlledByServiceWorker() override { return false; } |
250 virtual PassOwnPtr<blink::WebApplicationCacheHost> createApplicationCacheHos
t(blink::WebApplicationCacheHostClient*) OVERRIDE; | 250 virtual PassOwnPtr<blink::WebApplicationCacheHost> createApplicationCacheHos
t(blink::WebApplicationCacheHostClient*) override; |
251 }; | 251 }; |
252 | 252 |
253 class EmptyTextCheckerClient : public TextCheckerClient { | 253 class EmptyTextCheckerClient : public TextCheckerClient { |
254 public: | 254 public: |
255 ~EmptyTextCheckerClient() { } | 255 ~EmptyTextCheckerClient() { } |
256 | 256 |
257 virtual bool shouldEraseMarkersAfterChangeSelection(TextCheckingType) const
OVERRIDE { return true; } | 257 virtual bool shouldEraseMarkersAfterChangeSelection(TextCheckingType) const
override { return true; } |
258 virtual void checkSpellingOfString(const String&, int*, int*) OVERRIDE { } | 258 virtual void checkSpellingOfString(const String&, int*, int*) override { } |
259 virtual String getAutoCorrectSuggestionForMisspelledWord(const String&) OVER
RIDE { return String(); } | 259 virtual String getAutoCorrectSuggestionForMisspelledWord(const String&) over
ride { return String(); } |
260 virtual void checkGrammarOfString(const String&, Vector<GrammarDetail>&, int
*, int*) OVERRIDE { } | 260 virtual void checkGrammarOfString(const String&, Vector<GrammarDetail>&, int
*, int*) override { } |
261 virtual void requestCheckingOfString(PassRefPtrWillBeRawPtr<TextCheckingRequ
est>) OVERRIDE; | 261 virtual void requestCheckingOfString(PassRefPtrWillBeRawPtr<TextCheckingRequ
est>) override; |
262 }; | 262 }; |
263 | 263 |
264 class EmptySpellCheckerClient : public SpellCheckerClient { | 264 class EmptySpellCheckerClient : public SpellCheckerClient { |
265 WTF_MAKE_NONCOPYABLE(EmptySpellCheckerClient); WTF_MAKE_FAST_ALLOCATED; | 265 WTF_MAKE_NONCOPYABLE(EmptySpellCheckerClient); WTF_MAKE_FAST_ALLOCATED; |
266 public: | 266 public: |
267 EmptySpellCheckerClient() { } | 267 EmptySpellCheckerClient() { } |
268 virtual ~EmptySpellCheckerClient() { } | 268 virtual ~EmptySpellCheckerClient() { } |
269 | 269 |
270 virtual bool isContinuousSpellCheckingEnabled() OVERRIDE { return false; } | 270 virtual bool isContinuousSpellCheckingEnabled() override { return false; } |
271 virtual void toggleContinuousSpellChecking() OVERRIDE { } | 271 virtual void toggleContinuousSpellChecking() override { } |
272 virtual bool isGrammarCheckingEnabled() OVERRIDE { return false; } | 272 virtual bool isGrammarCheckingEnabled() override { return false; } |
273 | 273 |
274 virtual TextCheckerClient& textChecker() OVERRIDE { return m_textCheckerClie
nt; } | 274 virtual TextCheckerClient& textChecker() override { return m_textCheckerClie
nt; } |
275 | 275 |
276 virtual void updateSpellingUIWithMisspelledWord(const String&) OVERRIDE { } | 276 virtual void updateSpellingUIWithMisspelledWord(const String&) override { } |
277 virtual void showSpellingUI(bool) OVERRIDE { } | 277 virtual void showSpellingUI(bool) override { } |
278 virtual bool spellingUIIsShowing() OVERRIDE { return false; } | 278 virtual bool spellingUIIsShowing() override { return false; } |
279 | 279 |
280 private: | 280 private: |
281 EmptyTextCheckerClient m_textCheckerClient; | 281 EmptyTextCheckerClient m_textCheckerClient; |
282 }; | 282 }; |
283 | 283 |
284 class EmptyEditorClient FINAL : public EditorClient { | 284 class EmptyEditorClient final : public EditorClient { |
285 WTF_MAKE_NONCOPYABLE(EmptyEditorClient); WTF_MAKE_FAST_ALLOCATED; | 285 WTF_MAKE_NONCOPYABLE(EmptyEditorClient); WTF_MAKE_FAST_ALLOCATED; |
286 public: | 286 public: |
287 EmptyEditorClient() { } | 287 EmptyEditorClient() { } |
288 virtual ~EmptyEditorClient() { } | 288 virtual ~EmptyEditorClient() { } |
289 | 289 |
290 virtual void respondToChangedContents() OVERRIDE { } | 290 virtual void respondToChangedContents() override { } |
291 virtual void respondToChangedSelection(LocalFrame*, SelectionType) OVERRIDE
{ } | 291 virtual void respondToChangedSelection(LocalFrame*, SelectionType) override
{ } |
292 | 292 |
293 virtual bool canCopyCut(LocalFrame*, bool defaultValue) const OVERRIDE { ret
urn defaultValue; } | 293 virtual bool canCopyCut(LocalFrame*, bool defaultValue) const override { ret
urn defaultValue; } |
294 virtual bool canPaste(LocalFrame*, bool defaultValue) const OVERRIDE { retur
n defaultValue; } | 294 virtual bool canPaste(LocalFrame*, bool defaultValue) const override { retur
n defaultValue; } |
295 | 295 |
296 virtual bool handleKeyboardEvent() OVERRIDE { return false; } | 296 virtual bool handleKeyboardEvent() override { return false; } |
297 }; | 297 }; |
298 | 298 |
299 class EmptyContextMenuClient FINAL : public ContextMenuClient { | 299 class EmptyContextMenuClient final : public ContextMenuClient { |
300 WTF_MAKE_NONCOPYABLE(EmptyContextMenuClient); WTF_MAKE_FAST_ALLOCATED; | 300 WTF_MAKE_NONCOPYABLE(EmptyContextMenuClient); WTF_MAKE_FAST_ALLOCATED; |
301 public: | 301 public: |
302 EmptyContextMenuClient() { } | 302 EmptyContextMenuClient() { } |
303 virtual ~EmptyContextMenuClient() { } | 303 virtual ~EmptyContextMenuClient() { } |
304 virtual void showContextMenu(const ContextMenu*) OVERRIDE { } | 304 virtual void showContextMenu(const ContextMenu*) override { } |
305 virtual void clearContextMenu() OVERRIDE { } | 305 virtual void clearContextMenu() override { } |
306 }; | 306 }; |
307 | 307 |
308 class EmptyDragClient FINAL : public DragClient { | 308 class EmptyDragClient final : public DragClient { |
309 WTF_MAKE_NONCOPYABLE(EmptyDragClient); WTF_MAKE_FAST_ALLOCATED; | 309 WTF_MAKE_NONCOPYABLE(EmptyDragClient); WTF_MAKE_FAST_ALLOCATED; |
310 public: | 310 public: |
311 EmptyDragClient() { } | 311 EmptyDragClient() { } |
312 virtual ~EmptyDragClient() {} | 312 virtual ~EmptyDragClient() {} |
313 virtual DragDestinationAction actionMaskForDrag(DragData*) OVERRIDE { return
DragDestinationActionNone; } | 313 virtual DragDestinationAction actionMaskForDrag(DragData*) override { return
DragDestinationActionNone; } |
314 virtual void startDrag(DragImage*, const IntPoint&, const IntPoint&, DataTra
nsfer*, LocalFrame*, bool) OVERRIDE { } | 314 virtual void startDrag(DragImage*, const IntPoint&, const IntPoint&, DataTra
nsfer*, LocalFrame*, bool) override { } |
315 }; | 315 }; |
316 | 316 |
317 class EmptyInspectorClient FINAL : public InspectorClient { | 317 class EmptyInspectorClient final : public InspectorClient { |
318 WTF_MAKE_NONCOPYABLE(EmptyInspectorClient); WTF_MAKE_FAST_ALLOCATED; | 318 WTF_MAKE_NONCOPYABLE(EmptyInspectorClient); WTF_MAKE_FAST_ALLOCATED; |
319 public: | 319 public: |
320 EmptyInspectorClient() { } | 320 EmptyInspectorClient() { } |
321 virtual ~EmptyInspectorClient() { } | 321 virtual ~EmptyInspectorClient() { } |
322 | 322 |
323 virtual void highlight() OVERRIDE { } | 323 virtual void highlight() override { } |
324 virtual void hideHighlight() OVERRIDE { } | 324 virtual void hideHighlight() override { } |
325 }; | 325 }; |
326 | 326 |
327 class EmptyBackForwardClient FINAL : public BackForwardClient { | 327 class EmptyBackForwardClient final : public BackForwardClient { |
328 public: | 328 public: |
329 virtual int backListCount() OVERRIDE { return 0; } | 329 virtual int backListCount() override { return 0; } |
330 virtual int forwardListCount() OVERRIDE { return 0; } | 330 virtual int forwardListCount() override { return 0; } |
331 virtual int backForwardListCount() OVERRIDE { return 0; } | 331 virtual int backForwardListCount() override { return 0; } |
332 }; | 332 }; |
333 | 333 |
334 class EmptyStorageClient FINAL : public StorageClient { | 334 class EmptyStorageClient final : public StorageClient { |
335 public: | 335 public: |
336 virtual PassOwnPtr<StorageNamespace> createSessionStorageNamespace() OVERRID
E; | 336 virtual PassOwnPtr<StorageNamespace> createSessionStorageNamespace() overrid
e; |
337 virtual bool canAccessStorage(LocalFrame*, StorageType) const OVERRIDE { ret
urn false; } | 337 virtual bool canAccessStorage(LocalFrame*, StorageType) const override { ret
urn false; } |
338 }; | 338 }; |
339 | 339 |
340 void fillWithEmptyClients(Page::PageClients&); | 340 void fillWithEmptyClients(Page::PageClients&); |
341 | 341 |
342 } | 342 } |
343 | 343 |
344 #endif // EmptyClients_h | 344 #endif // EmptyClients_h |
OLD | NEW |