Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: Source/core/loader/EmptyClients.h

Issue 1162953002: Cleanup: Move PopupOpeningObserver ownership from ChromeClient to ChromeClientImpl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/loader/EmptyClients.cpp » ('j') | Source/web/ChromeClientImpl.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 virtual bool canRunBeforeUnloadConfirmPanel() override { return false; } 105 virtual bool canRunBeforeUnloadConfirmPanel() override { return false; }
106 virtual bool runBeforeUnloadConfirmPanelInternal(LocalFrame*, const String&) override { return true; } 106 virtual bool runBeforeUnloadConfirmPanelInternal(LocalFrame*, const String&) override { return true; }
107 107
108 virtual void closeWindowSoon() override { } 108 virtual void closeWindowSoon() override { }
109 109
110 virtual void runJavaScriptAlertInternal(LocalFrame*, const String&) override { } 110 virtual void runJavaScriptAlertInternal(LocalFrame*, const String&) override { }
111 virtual bool runJavaScriptConfirmInternal(LocalFrame*, const String&) overri de { return false; } 111 virtual bool runJavaScriptConfirmInternal(LocalFrame*, const String&) overri de { return false; }
112 virtual bool runJavaScriptPromptInternal(LocalFrame*, const String&, const S tring&, String&) override { return false; } 112 virtual bool runJavaScriptPromptInternal(LocalFrame*, const String&, const S tring&, String&) override { return false; }
113 113
114 virtual bool hasOpenedPopup() const override { return false; } 114 virtual bool hasOpenedPopup() const override { return false; }
115 virtual PassRefPtrWillBeRawPtr<PopupMenu> createPopupMenuInternal(LocalFrame &, PopupMenuClient*) override; 115 virtual PassRefPtrWillBeRawPtr<PopupMenu> createPopupMenu(LocalFrame&, Popup MenuClient*) override;
116 virtual DOMWindow* pagePopupWindowForTesting() const override { return nullp tr; } 116 virtual DOMWindow* pagePopupWindowForTesting() const override { return nullp tr; }
117 117
118 virtual void setStatusbarText(const String&) override { } 118 virtual void setStatusbarText(const String&) override { }
119 119
120 virtual bool tabsToLinks() override { return false; } 120 virtual bool tabsToLinks() override { return false; }
121 121
122 virtual IntRect windowResizerRect() const override { return IntRect(); } 122 virtual IntRect windowResizerRect() const override { return IntRect(); }
123 123
124 virtual void invalidateRect(const IntRect&) override { } 124 virtual void invalidateRect(const IntRect&) override { }
125 virtual void scheduleAnimation() override { } 125 virtual void scheduleAnimation() override { }
126 126
127 virtual IntRect viewportToScreen(const IntRect& r) const override { return r ; } 127 virtual IntRect viewportToScreen(const IntRect& r) const override { return r ; }
128 virtual WebScreenInfo screenInfo() const override { return WebScreenInfo(); } 128 virtual WebScreenInfo screenInfo() const override { return WebScreenInfo(); }
129 virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const override { } 129 virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const override { }
130 130
131 virtual void showMouseOverURL(const HitTestResult&) override { } 131 virtual void showMouseOverURL(const HitTestResult&) override { }
132 132
133 virtual void setToolTip(const String&, TextDirection) override { } 133 virtual void setToolTip(const String&, TextDirection) override { }
134 134
135 virtual void printInternal(LocalFrame*) override { } 135 virtual void printInternal(LocalFrame*) override { }
136 136
137 virtual void enumerateChosenDirectory(FileChooser*) override { } 137 virtual void enumerateChosenDirectory(FileChooser*) override { }
138 138
139 virtual PassOwnPtrWillBeRawPtr<ColorChooser> createColorChooserInternal(Loca lFrame*, ColorChooserClient*, const Color&) override; 139 virtual PassOwnPtrWillBeRawPtr<ColorChooser> createColorChooser(LocalFrame*, ColorChooserClient*, const Color&) override;
140 virtual PassRefPtr<DateTimeChooser> openDateTimeChooserInternal(DateTimeChoo serClient*, const DateTimeChooserParameters&) override; 140 virtual PassRefPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserClien t*, const DateTimeChooserParameters&) override;
141 virtual void openTextDataListChooserInternal(HTMLInputElement&) override; 141 virtual void openTextDataListChooser(HTMLInputElement&) override;
142 142
143 virtual void runOpenPanelInternal(LocalFrame*, PassRefPtr<FileChooser>) over ride; 143 virtual void runOpenPanel(LocalFrame*, PassRefPtr<FileChooser>) override;
144 144
145 virtual void setCursorInternal(const Cursor&) override { } 145 virtual void setCursorInternal(const Cursor&) override { }
146 146
147 virtual void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot) override { } 147 virtual void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot) override { }
148 148
149 virtual void needTouchEvents(bool) override { } 149 virtual void needTouchEvents(bool) override { }
150 virtual void setTouchAction(TouchAction touchAction) override { }; 150 virtual void setTouchAction(TouchAction touchAction) override { };
151 151
152 virtual void didAssociateFormControls(const WillBeHeapVector<RefPtrWillBeMem ber<Element>>&, LocalFrame* frame) override { } 152 virtual void didAssociateFormControls(const WillBeHeapVector<RefPtrWillBeMem ber<Element>>&, LocalFrame* frame) override { }
153 153
154 virtual void annotatedRegionsChanged() override { } 154 virtual void annotatedRegionsChanged() override { }
155 virtual String acceptLanguages() override; 155 virtual String acceptLanguages() override;
156
157 virtual void registerPopupOpeningObserver(PopupOpeningObserver*) { };
158 virtual void unregisterPopupOpeningObserver(PopupOpeningObserver*) { };
159 virtual void notifyPopupOpeningObservers() const { };
156 }; 160 };
157 161
158 class CORE_EXPORT EmptyFrameLoaderClient : public FrameLoaderClient { 162 class CORE_EXPORT EmptyFrameLoaderClient : public FrameLoaderClient {
159 WTF_MAKE_NONCOPYABLE(EmptyFrameLoaderClient); WTF_MAKE_FAST_ALLOCATED(EmptyF rameLoaderClient); 163 WTF_MAKE_NONCOPYABLE(EmptyFrameLoaderClient); WTF_MAKE_FAST_ALLOCATED(EmptyF rameLoaderClient);
160 public: 164 public:
161 EmptyFrameLoaderClient() { } 165 EmptyFrameLoaderClient() { }
162 virtual ~EmptyFrameLoaderClient() { } 166 virtual ~EmptyFrameLoaderClient() { }
163 167
164 virtual bool hasWebView() const override { return true; } // mainly for asse rtions 168 virtual bool hasWebView() const override { return true; } // mainly for asse rtions
165 169
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 virtual ~EmptyDragClient() {} 313 virtual ~EmptyDragClient() {}
310 virtual DragDestinationAction actionMaskForDrag(DragData*) override { return DragDestinationActionNone; } 314 virtual DragDestinationAction actionMaskForDrag(DragData*) override { return DragDestinationActionNone; }
311 virtual void startDrag(DragImage*, const IntPoint&, const IntPoint&, DataTra nsfer*, LocalFrame*, bool) override { } 315 virtual void startDrag(DragImage*, const IntPoint&, const IntPoint&, DataTra nsfer*, LocalFrame*, bool) override { }
312 }; 316 };
313 317
314 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); 318 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&);
315 319
316 } // namespace blink 320 } // namespace blink
317 321
318 #endif // EmptyClients_h 322 #endif // EmptyClients_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/loader/EmptyClients.cpp » ('j') | Source/web/ChromeClientImpl.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698