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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.h

Issue 2786673002: Separate ContentSettingsClient out from LocalFrameClient (Closed)
Patch Set: added class-level comment Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 14 matching lines...) Expand all
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebLocalFrameImpl_h 31 #ifndef WebLocalFrameImpl_h
32 #define WebLocalFrameImpl_h 32 #define WebLocalFrameImpl_h
33 33
34 #include "core/editing/VisiblePosition.h" 34 #include "core/editing/VisiblePosition.h"
35 #include "core/frame/ContentSettingsClient.h"
35 #include "core/frame/LocalFrame.h" 36 #include "core/frame/LocalFrame.h"
36 #include "platform/geometry/FloatRect.h" 37 #include "platform/geometry/FloatRect.h"
37 #include "platform/heap/SelfKeepAlive.h" 38 #include "platform/heap/SelfKeepAlive.h"
38 #include "public/platform/WebFileSystemType.h" 39 #include "public/platform/WebFileSystemType.h"
39 #include "public/web/WebLocalFrame.h" 40 #include "public/web/WebLocalFrame.h"
40 #include "web/LocalFrameClientImpl.h" 41 #include "web/LocalFrameClientImpl.h"
41 #include "web/UserMediaClientImpl.h" 42 #include "web/UserMediaClientImpl.h"
42 #include "web/WebExport.h" 43 #include "web/WebExport.h"
43 #include "web/WebFrameImplBase.h" 44 #include "web/WebFrameImplBase.h"
44 #include "web/WebFrameWidgetBase.h" 45 #include "web/WebFrameWidgetBase.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 : public WebFrameImplBase, 87 : public WebFrameImplBase,
87 NON_EXPORTED_BASE(public WebLocalFrame) { 88 NON_EXPORTED_BASE(public WebLocalFrame) {
88 public: 89 public:
89 // WebFrame methods: 90 // WebFrame methods:
90 // TODO(dcheng): Fix sorting here; a number of method have been moved to 91 // TODO(dcheng): Fix sorting here; a number of method have been moved to
91 // WebLocalFrame but not correctly updated here. 92 // WebLocalFrame but not correctly updated here.
92 void close() override; 93 void close() override;
93 WebString assignedName() const override; 94 WebString assignedName() const override;
94 void setName(const WebString&) override; 95 void setName(const WebString&) override;
95 WebVector<WebIconURL> iconURLs(int iconTypesMask) const override; 96 WebVector<WebIconURL> iconURLs(int iconTypesMask) const override;
96 void setContentSettingsClient(WebContentSettingsClient*) override;
97 void setSharedWorkerRepositoryClient( 97 void setSharedWorkerRepositoryClient(
98 WebSharedWorkerRepositoryClient*) override; 98 WebSharedWorkerRepositoryClient*) override;
99 WebSize getScrollOffset() const override; 99 WebSize getScrollOffset() const override;
100 void setScrollOffset(const WebSize&) override; 100 void setScrollOffset(const WebSize&) override;
101 WebSize contentsSize() const override; 101 WebSize contentsSize() const override;
102 bool hasVisibleContent() const override; 102 bool hasVisibleContent() const override;
103 WebRect visibleContentRect() const override; 103 WebRect visibleContentRect() const override;
104 bool hasHorizontalScrollbar() const override; 104 bool hasHorizontalScrollbar() const override;
105 bool hasVerticalScrollbar() const override; 105 bool hasVerticalScrollbar() const override;
106 WebView* view() const override; 106 WebView* view() const override;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 unsigned length, 177 unsigned length,
178 WebRect&) const override; 178 WebRect&) const override;
179 size_t characterIndexForPoint(const WebPoint&) const override; 179 size_t characterIndexForPoint(const WebPoint&) const override;
180 bool executeCommand(const WebString&) override; 180 bool executeCommand(const WebString&) override;
181 bool executeCommand(const WebString&, const WebString& value) override; 181 bool executeCommand(const WebString&, const WebString& value) override;
182 bool isCommandEnabled(const WebString&) const override; 182 bool isCommandEnabled(const WebString&) const override;
183 void enableSpellChecking(bool) override; 183 void enableSpellChecking(bool) override;
184 bool isSpellCheckingEnabled() const override; 184 bool isSpellCheckingEnabled() const override;
185 void replaceMisspelledRange(const WebString&) override; 185 void replaceMisspelledRange(const WebString&) override;
186 void removeSpellingMarkers() override; 186 void removeSpellingMarkers() override;
187 void setContentSettingsClient(WebContentSettingsClient*) override;
187 bool hasSelection() const override; 188 bool hasSelection() const override;
188 WebRange selectionRange() const override; 189 WebRange selectionRange() const override;
189 WebString selectionAsText() const override; 190 WebString selectionAsText() const override;
190 WebString selectionAsMarkup() const override; 191 WebString selectionAsMarkup() const override;
191 bool selectWordAroundCaret() override; 192 bool selectWordAroundCaret() override;
192 void selectRange(const WebPoint& base, const WebPoint& extent) override; 193 void selectRange(const WebPoint& base, const WebPoint& extent) override;
193 void selectRange(const WebRange&) override; 194 void selectRange(const WebRange&) override;
194 WebString rangeAsText(const WebRange&) override; 195 WebString rangeAsText(const WebRange&) override;
195 void moveRangeSelectionExtent(const WebPoint&) override; 196 void moveRangeSelectionExtent(const WebPoint&) override;
196 void moveRangeSelection( 197 void moveRangeSelection(
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 void didFinish(); 385 void didFinish();
385 386
386 // Sets whether the WebLocalFrameImpl allows its document to be scrolled. 387 // Sets whether the WebLocalFrameImpl allows its document to be scrolled.
387 // If the parameter is true, allow the document to be scrolled. 388 // If the parameter is true, allow the document to be scrolled.
388 // Otherwise, disallow scrolling. 389 // Otherwise, disallow scrolling.
389 void setCanHaveScrollbars(bool) override; 390 void setCanHaveScrollbars(bool) override;
390 391
391 WebFrameClient* client() const { return m_client; } 392 WebFrameClient* client() const { return m_client; }
392 void setClient(WebFrameClient* client) { m_client = client; } 393 void setClient(WebFrameClient* client) { m_client = client; }
393 394
394 WebContentSettingsClient* contentSettingsClient() { 395 ContentSettingsClient& contentSettingsClient() {
395 return m_contentSettingsClient; 396 return m_contentSettingsClient;
396 } 397 }
398
397 SharedWorkerRepositoryClientImpl* sharedWorkerRepositoryClient() const { 399 SharedWorkerRepositoryClientImpl* sharedWorkerRepositoryClient() const {
398 return m_sharedWorkerRepositoryClient.get(); 400 return m_sharedWorkerRepositoryClient.get();
399 } 401 }
400 402
401 void setInputEventsTransformForEmulation(const IntSize&, float); 403 void setInputEventsTransformForEmulation(const IntSize&, float);
402 404
403 static void selectWordAroundPosition(LocalFrame*, VisiblePosition); 405 static void selectWordAroundPosition(LocalFrame*, VisiblePosition);
404 406
405 TextCheckerClient& textCheckerClient() const; 407 TextCheckerClient& textCheckerClient() const;
406 408
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 Member<LocalFrame> m_frame; 470 Member<LocalFrame> m_frame;
469 471
470 Member<WebDevToolsAgentImpl> m_devToolsAgent; 472 Member<WebDevToolsAgentImpl> m_devToolsAgent;
471 473
472 // This is set if the frame is the root of a local frame tree, and requires a 474 // This is set if the frame is the root of a local frame tree, and requires a
473 // widget for layout. 475 // widget for layout.
474 WebFrameWidgetBase* m_frameWidget; 476 WebFrameWidgetBase* m_frameWidget;
475 477
476 WebFrameClient* m_client; 478 WebFrameClient* m_client;
477 WebAutofillClient* m_autofillClient; 479 WebAutofillClient* m_autofillClient;
478 WebContentSettingsClient* m_contentSettingsClient; 480 ContentSettingsClient m_contentSettingsClient;
479 std::unique_ptr<SharedWorkerRepositoryClientImpl> 481 std::unique_ptr<SharedWorkerRepositoryClientImpl>
480 m_sharedWorkerRepositoryClient; 482 m_sharedWorkerRepositoryClient;
481 483
482 // Will be initialized after first call to ensureTextFinder(). 484 // Will be initialized after first call to ensureTextFinder().
483 Member<TextFinder> m_textFinder; 485 Member<TextFinder> m_textFinder;
484 486
485 // Valid between calls to BeginPrint() and EndPrint(). Containts the print 487 // Valid between calls to BeginPrint() and EndPrint(). Containts the print
486 // information. Is used by PrintPage(). 488 // information. Is used by PrintPage().
487 Member<ChromePrintContext> m_printContext; 489 Member<ChromePrintContext> m_printContext;
488 490
(...skipping 23 matching lines...) Expand all
512 514
513 DEFINE_TYPE_CASTS(WebLocalFrameImpl, 515 DEFINE_TYPE_CASTS(WebLocalFrameImpl,
514 WebFrame, 516 WebFrame,
515 frame, 517 frame,
516 frame->isWebLocalFrame(), 518 frame->isWebLocalFrame(),
517 frame.isWebLocalFrame()); 519 frame.isWebLocalFrame());
518 520
519 } // namespace blink 521 } // namespace blink
520 522
521 #endif 523 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/StorageClientImpl.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698