webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
WebView.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2003, 2004, 2005, 2006 Apple Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  * 3. Neither the name of Apple Inc. ("Apple") nor the names of
14  * its contributors may be used to endorse or promote products derived
15  * from this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
18  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20  * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
21  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28 
29 #import <Foundation/Foundation.h>
30 
31 #if !TARGET_OS_IPHONE
32 #import <AppKit/AppKit.h>
33 #else
34 #import <WebKitLegacy/WAKAppKitStubs.h>
35 #import <WebKitLegacy/WAKView.h>
36 #if !defined(IBAction)
37 #define IBAction void
38 #endif
39 #endif
40 
42 @class DOMDocument;
43 @class DOMElement;
44 @class DOMNode;
45 @class DOMRange;
46 
47 @class WebArchive;
48 @class WebBackForwardList;
49 @class WebDataSource;
50 @class WebFrame;
51 @class WebFrameView;
52 @class WebHistoryItem;
53 @class WebPreferences;
54 @class WebScriptObject;
55 @class WebViewPrivate;
56 
57 @protocol WebDownloadDelegate;
58 @protocol WebEditingDelegate;
59 @protocol WebFrameLoadDelegate;
60 @protocol WebPolicyDelegate;
61 @protocol WebResourceLoadDelegate;
62 @protocol WebUIDelegate;
63 
64 // Element dictionary keys
65 extern NSString *WebElementDOMNodeKey; // DOMNode of the element
66 extern NSString *WebElementFrameKey; // WebFrame of the element
67 extern NSString *WebElementImageAltStringKey; // NSString of the ALT attribute of the image element
68 extern NSString *WebElementImageKey; // NSImage of the image element
69 extern NSString *WebElementImageRectKey; // NSValue of an NSRect, the rect of the image element
70 extern NSString *WebElementImageURLKey; // NSURL of the image element
71 extern NSString *WebElementIsSelectedKey; // NSNumber of BOOL indicating whether the element is selected or not
72 extern NSString *WebElementLinkURLKey; // NSURL of the link if the element is within an anchor
73 extern NSString *WebElementLinkTargetFrameKey; // WebFrame of the target of the anchor
74 extern NSString *WebElementLinkTitleKey; // NSString of the title of the anchor
75 extern NSString *WebElementLinkLabelKey; // NSString of the text within the anchor
76 
77 /*
78  @discussion Notifications sent by WebView to mark the progress of loads.
79  @constant WebViewProgressStartedNotification Posted whenever a load begins in the WebView, including
80  a load that is initiated in a subframe. After receiving this notification zero or more
81  WebViewProgressEstimateChangedNotifications will be sent. The userInfo will be nil.
82  @constant WebViewProgressEstimateChangedNotification Posted whenever the value of
83  estimatedProgress changes. The userInfo will be nil.
84  @constant WebViewProgressFinishedNotification Posted when the load for a WebView has finished.
85  The userInfo will be nil.
86 */
89 #if !TARGET_OS_IPHONE
91 #endif
92 
127 @interface WebView : NSView
128 {
129 @private
130  WebViewPrivate *_private;
131 }
132 
139 + (BOOL)canShowMIMEType:(NSString *)MIMEType;
140 
141 
148 + (BOOL)canShowMIMETypeAsHTML:(NSString *)MIMEType;
149 
156 
164 + (void)setMIMETypesShownAsHTML:(NSArray *)MIMETypes;
165 
166 #if !TARGET_OS_IPHONE
167 
175 + (NSURL *)URLFromPasteboard:(NSPasteboard *)pasteboard;
176 
185 + (NSString *)URLTitleFromPasteboard:(NSPasteboard *)pasteboard;
186 #endif
187 
194 
207 - (instancetype)initWithFrame:(NSRect)frame frameName:(NSString *)frameName groupName:(NSString *)groupName;
208 
219 - (void)close;
220 
226 @property (nonatomic) BOOL shouldCloseWithWindow;
227 
232 @property (nonatomic, assign) id <WebUIDelegate> UIDelegate;
233 
239 
244 @property (nonatomic, assign) id <WebDownloadDelegate> downloadDelegate;
245 
250 @property (nonatomic, assign) id <WebFrameLoadDelegate> frameLoadDelegate;
251 
256 @property (nonatomic, assign) id <WebPolicyDelegate> policyDelegate;
257 
263 @property (nonatomic, readonly, strong) WebFrame *mainFrame;
264 
271 @property (nonatomic, readonly, strong) WebFrame *selectedFrame;
272 
277 @property (nonatomic, readonly, strong) WebBackForwardList *backForwardList;
278 
285 
291 - (BOOL)goBack;
292 
298 - (BOOL)goForward;
299 
306 
311 @property (nonatomic) float textSizeMultiplier;
312 
317 @property (nonatomic, copy) NSString *applicationNameForUserAgent;
318 
334 @property (nonatomic, copy) NSString *customUserAgent;
335 
342 - (NSString *)userAgentForURL:(NSURL *)URL;
343 
344 
349 @property (nonatomic, readonly) BOOL supportsTextEncoding;
350 
362 @property (nonatomic, copy) NSString *customTextEncodingName;
363 
370 @property (nonatomic, copy) NSString *mediaStyle;
371 
378 
384 @property (nonatomic, readonly, strong) WebScriptObject *windowScriptObject;
385 
392 @property (nonatomic, strong) WebPreferences *preferences;
393 
399 @property (nonatomic, copy) NSString *preferencesIdentifier;
400 
408 @property (nonatomic, strong) NSWindow *hostWindow;
409 
419 - (BOOL)searchFor:(NSString *)string direction:(BOOL)forward caseSensitive:(BOOL)caseFlag wrap:(BOOL)wrapFlag;
420 
432 + (void)registerViewClass:(Class)viewClass representationClass:(Class)representationClass forMIMEType:(NSString *)MIMEType;
433 
439 @property (nonatomic, copy) NSString *groupName;
440 
451 @property (nonatomic, readonly) double estimatedProgress;
452 
457 @property (nonatomic, getter=isLoading, readonly) BOOL loading;
458 
465 
466 #if !TARGET_OS_IPHONE
467 
472 
479 - (void)writeSelectionWithPasteboardTypes:(NSArray *)types toPasteboard:(NSPasteboard *)pasteboard;
480 
487 
495 - (void)writeElement:(NSDictionary *)element withPasteboardTypes:(NSArray *)types toPasteboard:(NSPasteboard *)pasteboard;
496 
504 
510 #endif /* !TARGET_OS_IPHONE */
511 
516 @property (nonatomic) BOOL drawsBackground;
517 
525 @property (nonatomic) BOOL shouldUpdateWhileOffscreen;
526 
531 @property (nonatomic, copy) NSString *mainFrameURL;
532 
537 @property (nonatomic, readonly, strong) DOMDocument *mainFrameDocument;
538 
543 @property (nonatomic, readonly, copy) NSString *mainFrameTitle;
544 
545 #if TARGET_OS_IPHONE
546 
551 - (NSURL *)mainFrameIconURL;
552 #else
553 
557 @property (nonatomic, readonly, strong) NSImage *mainFrameIcon;
558 #endif
559 
560 @end
561 
562 #if TARGET_OS_IPHONE
563 @interface WebView (WebIBActions)
564 #else
565 @interface WebView (WebIBActions) <NSUserInterfaceValidations>
566 #endif
567 - (IBAction)takeStringURLFrom:(id)sender;
568 - (IBAction)stopLoading:(id)sender;
569 - (IBAction)reload:(id)sender;
570 - (IBAction)reloadFromOrigin:(id)sender;
571 @property (nonatomic, readonly) BOOL canGoBack;
572 - (IBAction)goBack:(id)sender;
573 @property (nonatomic, readonly) BOOL canGoForward;
574 - (IBAction)goForward:(id)sender;
575 @property (nonatomic, readonly) BOOL canMakeTextLarger;
576 - (IBAction)makeTextLarger:(id)sender;
577 @property (nonatomic, readonly) BOOL canMakeTextSmaller;
578 - (IBAction)makeTextSmaller:(id)sender;
579 @property (nonatomic, readonly) BOOL canMakeTextStandardSize;
580 - (IBAction)makeTextStandardSize:(id)sender;
581 #if !TARGET_OS_IPHONE
582 - (IBAction)toggleContinuousSpellChecking:(id)sender;
583 - (IBAction)toggleSmartInsertDelete:(id)sender;
584 #endif
585 #if TARGET_OS_IPHONE
586 - (void)stopLoadingAndClear;
587 #endif
588 @end
589 
590 
591 // WebView editing support
592 
598 
600 - (DOMCSSStyleDeclaration *)computedStyleForElement:(DOMElement *)element pseudoElement:(NSString *)pseudoElement;
601 @end
602 
605 - (void)setSelectedDOMRange:(DOMRange *)range affinity:(NSSelectionAffinity)selectionAffinity;
606 @property (nonatomic, readonly, strong) DOMRange *selectedDOMRange;
607 @property (nonatomic, readonly) NSSelectionAffinity selectionAffinity;
608 @property (nonatomic, readonly) BOOL maintainsInactiveSelection;
609 @property (nonatomic, getter=isEditable) BOOL editable;
610 @property (nonatomic, strong) DOMCSSStyleDeclaration *typingStyle;
611 @property (nonatomic) BOOL smartInsertDeleteEnabled;
613 #if !TARGET_OS_IPHONE
614 @property (nonatomic, readonly) NSInteger spellCheckerDocumentTag;
615 #endif
616 @property (nonatomic, readonly, strong) NSUndoManager *undoManager;
617 @property (nonatomic, assign) id <WebEditingDelegate> editingDelegate;
619 @end
620 
628 @end
629 
631 
632 - (void)copy:(id)sender;
633 - (void)cut:(id)sender;
634 - (void)paste:(id)sender;
635 - (void)copyFont:(id)sender;
636 - (void)pasteFont:(id)sender;
637 - (void)delete:(id)sender;
638 - (void)pasteAsPlainText:(id)sender;
639 - (void)pasteAsRichText:(id)sender;
640 
641 - (void)changeFont:(id)sender;
642 - (void)changeAttributes:(id)sender;
643 - (void)changeDocumentBackgroundColor:(id)sender;
644 - (void)changeColor:(id)sender;
645 
646 - (void)alignCenter:(id)sender;
647 - (void)alignJustified:(id)sender;
648 - (void)alignLeft:(id)sender;
649 - (void)alignRight:(id)sender;
650 
651 - (void)checkSpelling:(id)sender;
652 - (void)showGuessPanel:(id)sender;
653 - (void)performFindPanelAction:(id)sender;
654 
655 - (void)startSpeaking:(id)sender;
656 - (void)stopSpeaking:(id)sender;
657 
658 - (void)moveToBeginningOfSentence:(id)sender;
659 - (void)moveToBeginningOfSentenceAndModifySelection:(id)sender;
660 - (void)moveToEndOfSentence:(id)sender;
661 - (void)moveToEndOfSentenceAndModifySelection:(id)sender;
662 - (void)selectSentence:(id)sender;
663 
664 - (void)overWrite:(id)sender;
665 
666 #if TARGET_OS_IPHONE
667 - (void)clearText:(id)sender;
668 - (void)insertDictationPhrases:(NSArray *)dictationPhrases metadata:(id)metadata;
669 - (void)toggleBold:(id)sender;
670 - (void)toggleItalic:(id)sender;
671 - (void)toggleUnderline:(id)sender;
672 #endif
673 
674 /*
675 The following methods are declared in NSResponder.h.
676 WebView overrides each method in this list, providing
677 a custom implementation for each.
678 
679 - (void)capitalizeWord:(id)sender;
680 - (void)centerSelectionInVisibleArea:(id)sender;
681 - (void)changeCaseOfLetter:(id)sender;
682 - (void)complete:(id)sender;
683 - (void)deleteBackward:(id)sender;
684 - (void)deleteBackwardByDecomposingPreviousCharacter:(id)sender;
685 - (void)deleteForward:(id)sender;
686 - (void)deleteToBeginningOfLine:(id)sender;
687 - (void)deleteToBeginningOfParagraph:(id)sender;
688 - (void)deleteToEndOfLine:(id)sender;
689 - (void)deleteToEndOfParagraph:(id)sender;
690 - (void)deleteWordBackward:(id)sender;
691 - (void)deleteWordForward:(id)sender;
692 - (void)indent:(id)sender;
693 - (void)insertBacktab:(id)sender;
694 - (void)insertNewline:(id)sender;
695 - (void)insertParagraphSeparator:(id)sender;
696 - (void)insertTab:(id)sender;
697 - (void)lowercaseWord:(id)sender;
698 - (void)moveBackward:(id)sender;
699 - (void)moveBackwardAndModifySelection:(id)sender;
700 - (void)moveDown:(id)sender;
701 - (void)moveDownAndModifySelection:(id)sender;
702 - (void)moveForward:(id)sender;
703 - (void)moveForwardAndModifySelection:(id)sender;
704 - (void)moveLeft:(id)sender;
705 - (void)moveLeftAndModifySelection:(id)sender;
706 - (void)moveRight:(id)sender;
707 - (void)moveRightAndModifySelection:(id)sender;
708 - (void)moveToBeginningOfDocument:(id)sender;
709 - (void)moveToBeginningOfDocumentAndModifySelection:(id)sender;
710 - (void)moveToBeginningOfLine:(id)sender;
711 - (void)moveToBeginningOfLineAndModifySelection:(id)sender;
712 - (void)moveToBeginningOfParagraph:(id)sender;
713 - (void)moveToBeginningOfParagraphAndModifySelection:(id)sender;
714 - (void)moveToEndOfDocument:(id)sender;
715 - (void)moveToEndOfDocumentAndModifySelection:(id)sender;
716 - (void)moveToEndOfLine:(id)sender;
717 - (void)moveToEndOfLineAndModifySelection:(id)sender;
718 - (void)moveToEndOfParagraph:(id)sender;
719 - (void)moveToEndOfParagraphAndModifySelection:(id)sender;
720 - (void)moveUp:(id)sender;
721 - (void)moveUpAndModifySelection:(id)sender;
722 - (void)moveWordBackward:(id)sender;
723 - (void)moveWordBackwardAndModifySelection:(id)sender;
724 - (void)moveWordForward:(id)sender;
725 - (void)moveWordForwardAndModifySelection:(id)sender;
726 - (void)moveWordLeft:(id)sender;
727 - (void)moveWordLeftAndModifySelection:(id)sender;
728 - (void)moveWordRight:(id)sender;
729 - (void)moveWordRightAndModifySelection:(id)sender;
730 - (void)pageDown:(id)sender;
731 - (void)pageUp:(id)sender;
732 - (void)scrollLineDown:(id)sender;
733 - (void)scrollLineUp:(id)sender;
734 - (void)scrollPageDown:(id)sender;
735 - (void)scrollPageUp:(id)sender;
736 - (void)selectAll:(id)sender;
737 - (void)selectLine:(id)sender;
738 - (void)selectParagraph:(id)sender;
739 - (void)selectWord:(id)sender;
740 - (void)uppercaseWord:(id)sender;
741 */
742 
743 @end
744 
745 #if TARGET_OS_IPHONE
746 
747 @interface WebView (WebViewIOS)
748 + (void)enableWebThread;
749 + (BOOL)isCharacterSmartReplaceExempt:(unichar)character isPreviousCharacter:(BOOL)b;
750 
760 + (void)willEnterBackgroundWithCompletionHandler:(void(^)(void))handler;
761 
767 - (void)updateLayoutIgnorePendingStyleSheets;
768 @end
769 
770 @interface NSObject (WebViewClassDelegate)
771 - (BOOL)viewClass:(Class *)vClass andRepresentationClass:(Class *)rClass forMIMEType:(NSString *)MIMEType;
772 @end
773 
774 #endif /* TARGET_OS_IPHONE */
NSString * groupName
Definition: WebView.h:439
virtual HRESULT STDMETHODCALLTYPE paste(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:4944
virtual HRESULT STDMETHODCALLTYPE copy(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:4926
BOOL
Definition: PlatformScreenIOS.mm:46
void removeDragCaret()
Definition: WebView.mm:6771
virtual HRESULT STDMETHODCALLTYPE setMIMETypesShownAsHTML(__inout_ecount_full(cMimeTypes) BSTR *mimeTypes, int cMimeTypes)
Definition: WebView.cpp:3000
NSString * WebElementImageKey
Definition: WebView.mm:697
NSString *const WebViewDidChangeTypingStyleNotification
Definition: WebView.mm:725
OBJC_CLASS NSView
Definition: TextIndicatorWindow.h:34
Definition: WebView.h:565
virtual HRESULT STDMETHODCALLTYPE makeTextSmaller(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:4397
WebPreferences * preferences
Definition: WebView.h:392
Definition: WebFrame.h:48
Definition: WebArchive.h:47
id< WebEditingDelegate > editingDelegate
Definition: WebView.h:617
virtual HRESULT STDMETHODCALLTYPE canShowMIMETypeAsHTML(_In_ BSTR mimeType, _Out_ BOOL *)
Definition: WebView.cpp:2974
NSString * WebViewProgressEstimateChangedNotification
Definition: WebView.mm:714
virtual HRESULT STDMETHODCALLTYPE URLFromPasteboard(_In_opt_ IDataObject *pasteboard, _Deref_opt_out_ BSTR *url)
Definition: WebView.cpp:3006
BOOL shouldUpdateWhileOffscreen
Definition: WebView.h:525
BOOL continuousSpellCheckingEnabled
Definition: WebView.h:612
OBJC_CLASS NSWindow
Definition: WebCoreSystemInterface.h:113
OBJC_CLASS NSImage
Definition: WebCoreSystemInterface.h:102
NSString * WebElementIsSelectedKey
Definition: WebView.mm:701
BOOL editable
Definition: WebView.h:609
virtual HRESULT STDMETHODCALLTYPE isEditable(_Out_ BOOL *)
Definition: WebView.cpp:4554
Definition: DOMNode.h:58
NSString * WebElementImageURLKey
Definition: WebView.mm:700
NSArray * pasteboardTypesForSelection
Definition: WebView.h:471
virtual HRESULT STDMETHODCALLTYPE changeDocumentBackgroundColor(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:5007
Definition: WebFrameView.h:47
Definition: DOMRange.h:48
virtual HRESULT STDMETHODCALLTYPE alignRight(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:5037
id< WebFrameLoadDelegate > frameLoadDelegate
Definition: WebView.h:250
Definition: UIDelegate.h:37
virtual HRESULT STDMETHODCALLTYPE replaceSelectionWithMarkupString(_In_ BSTR)
Definition: WebView.cpp:4887
virtual HRESULT STDMETHODCALLTYPE styleDeclarationWithText(_In_ BSTR text, _COM_Outptr_opt_ IDOMCSSStyleDeclaration **)
Definition: WebView.cpp:4766
NSString *const WebViewDidChangeSelectionNotification
Definition: WebView.mm:726
OBJC_CLASS NSDictionary
Definition: DataDetection.h:34
Definition: DOMElement.h:39
virtual HRESULT STDMETHODCALLTYPE writeElement(_In_opt_ IPropertyBag *elementDictionary, __inout_ecount_full(cWithPasteboardTypes) BSTR *withPasteboardTypes, int cWithPasteboardTypes, _In_opt_ IDataObject *pasteboard)
Definition: WebView.cpp:4139
virtual HRESULT STDMETHODCALLTYPE pasteAsPlainText(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:4983
id< WebPolicyDelegate > policyDelegate
Definition: WebView.h:256
BOOL drawsBackground
Definition: WebView.h:516
virtual HRESULT STDMETHODCALLTYPE takeStringURLFrom(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:4272
id< WebResourceLoadDelegate > resourceLoadDelegate
Definition: WebView.h:238
Definition: WebPreferences.h:73
BOOL canGoForward
Definition: WebView.h:573
double estimatedProgress
Definition: WebView.h:451
virtual HRESULT STDMETHODCALLTYPE replaceSelectionWithArchive(_In_opt_ IWebArchive *)
Definition: WebView.cpp:4893
virtual HRESULT STDMETHODCALLTYPE alignJustified(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:5025
NSString * WebElementFrameKey
Definition: WebView.mm:696
Definition: WebBackForwardList.h:43
OBJC_CLASS NSURL
Definition: WebCoreSystemInterface.h:108
BOOL shouldCloseWithWindow
Definition: WebView.h:226
virtual HRESULT STDMETHODCALLTYPE reloadFromOrigin(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:4488
NSString * WebViewProgressFinishedNotification
Definition: WebView.mm:716
virtual HRESULT STDMETHODCALLTYPE pasteFont(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:4968
BOOL canMakeTextLarger
Definition: WebView.h:575
NSString * WebElementDOMNodeKey
Definition: WebView.mm:695
WEBCORE_EXPORT bool isCharacterSmartReplaceExempt(UChar32 c, bool isPreviousCharacter)
Definition: SmartReplace.cpp:96
virtual HRESULT STDMETHODCALLTYPE alignLeft(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:5031
NSString * WebElementLinkLabelKey
Definition: WebView.mm:702
NSSelectionAffinity selectionAffinity
Definition: WebView.h:607
Definition: WebView.h:603
void
Definition: AVFoundationCFSoftLinking.h:81
virtual HRESULT STDMETHODCALLTYPE isContinuousSpellCheckingEnabled(_Out_ BOOL *)
Definition: WebView.cpp:4641
WebScriptObject * windowScriptObject
Definition: WebView.h:384
NSString * WebElementLinkTargetFrameKey
Definition: WebView.mm:703
Definition: interfaces.idl:200
NSString * WebElementImageAltStringKey
Definition: WebView.mm:698
NSImage * mainFrameIcon
Definition: WebView.h:557
NSString *const WebViewDidEndEditingNotification
Definition: WebView.mm:724
virtual HRESULT STDMETHODCALLTYPE toggleContinuousSpellChecking(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:4459
virtual HRESULT STDMETHODCALLTYPE checkSpelling(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:5043
NSString * preferencesIdentifier
Definition: WebView.h:399
virtual HRESULT STDMETHODCALLTYPE URLTitleFromPasteboard(_In_opt_ IDataObject *pasteboard, _Deref_opt_out_ BSTR *urlTitle)
Definition: WebView.cpp:3012
Definition: DOMDocument.h:57
GLenum GLuint id
Definition: gl2ext.h:134
Definition: WebView.h:621
virtual HRESULT STDMETHODCALLTYPE moveDragCaretToPoint(_In_ LPPOINT)
Definition: WebView.cpp:4176
Definition: WebView.h:599
NSString * applicationNameForUserAgent
Definition: WebView.h:317
virtual HRESULT STDMETHODCALLTYPE makeTextLarger(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:4354
virtual HRESULT STDMETHODCALLTYPE goToBackForwardItem(_In_opt_ IWebHistoryItem *, _Out_ BOOL *succeeded)
Definition: WebView.cpp:3469
virtual HRESULT STDMETHODCALLTYPE writeSelectionWithPasteboardTypes(__inout_ecount_full(cTypes) BSTR *types, int cTypes, _In_opt_ IDataObject *pasteboard)
Definition: WebView.cpp:4124
BOOL supportsTextEncoding
Definition: WebView.h:349
Definition: WebScriptObject.h:222
virtual HRESULT STDMETHODCALLTYPE replaceSelectionWithText(_In_ BSTR)
Definition: WebView.cpp:4876
virtual HRESULT STDMETHODCALLTYPE startSpeaking(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:5079
virtual HRESULT STDMETHODCALLTYPE changeFont(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:4995
virtual HRESULT STDMETHODCALLTYPE makeTextStandardSize(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:4441
DOMCSSStyleDeclaration * typingStyle
Definition: WebView.h:610
struct _NSRect NSRect
Definition: WebCoreSystemInterface.h:72
virtual HRESULT STDMETHODCALLTYPE alignCenter(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:5019
virtual HRESULT STDMETHODCALLTYPE editableDOMRangeForPoint(_In_ LPPOINT, _COM_Outptr_opt_ IDOMRange **)
Definition: WebView.cpp:4509
Definition: WebViewData.h:157
struct NSString NSString
Definition: WebCoreNSStringExtras.h:35
NSUndoManager * undoManager
Definition: WebView.h:616
NSArray * MIMETypesShownAsHTML()
Definition: WebView.mm:5416
virtual HRESULT STDMETHODCALLTYPE copyFont(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:4962
virtual HRESULT STDMETHODCALLTYPE changeColor(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:5013
BOOL smartInsertDeleteEnabled
Definition: WebView.h:611
AudioFrame frame
Definition: audio_processing_impl_locking_unittest.cc:105
Definition: WebView.h:127
NSString * WebElementImageRectKey
Definition: WebView.mm:699
NSWindow * hostWindow
Definition: WebView.h:408
BOOL loading
Definition: WebView.h:457
Definition: WebHistoryItem.h:53
BOOL goBack()
Definition: WebView.mm:6121
NSString * customUserAgent
Definition: WebView.h:334
BOOL canGoBack
Definition: WebView.h:571
virtual HRESULT STDMETHODCALLTYPE reload(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:4286
NSString * WebElementLinkURLKey
Definition: WebView.mm:705
virtual HRESULT STDMETHODCALLTYPE applyStyle(_In_opt_ IDOMCSSStyleDeclaration *)
Definition: WebView.cpp:4918
OBJC_CLASS NSArray
Definition: DataDetection.h:33
WebBackForwardList * backForwardList
Definition: WebView.h:277
virtual HRESULT STDMETHODCALLTYPE stopLoading(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:4278
Definition: WebDownloadDelegate.h:32
DOMDocument * mainFrameDocument
Definition: WebView.h:537
id< WebDownloadDelegate > downloadDelegate
Definition: WebView.h:244
NSString * mainFrameURL
Definition: WebView.h:531
WebFrame * mainFrame
Definition: WebView.h:263
void deleteSelection()
Definition: WebView.mm:8220
virtual HRESULT STDMETHODCALLTYPE replaceSelectionWithNode(_In_opt_ IDOMNode *)
Definition: WebView.cpp:4870
BOOL canMakeTextSmaller
Definition: WebView.h:577
NSString * customTextEncodingName
Definition: WebView.h:362
Definition: WebView.h:630
virtual HRESULT STDMETHODCALLTYPE pasteAsRichText(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:4989
NSString * WebElementLinkTitleKey
Definition: WebView.mm:704
virtual HRESULT STDMETHODCALLTYPE setSelectedDOMRange(_In_opt_ IDOMRange *, WebSelectionAffinity)
Definition: WebView.cpp:4518
virtual HRESULT STDMETHODCALLTYPE performFindPanelAction(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:5073
NSString *const WebViewDidChangeNotification
Definition: WebView.mm:723
struct _NSPoint NSPoint
Definition: WebCoreSystemInterface.h:71
Definition: WebDataSource.h:47
BOOL canMakeTextStandardSize
Definition: WebView.h:579
virtual HRESULT STDMETHODCALLTYPE changeAttributes(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:5001
NSString * mainFrameTitle
Definition: WebView.h:543
NSString * WebViewProgressStartedNotification
Definition: WebView.mm:713
virtual HRESULT STDMETHODCALLTYPE registerURLSchemeAsLocal(_In_ BSTR scheme)
Definition: WebView.cpp:4260
virtual HRESULT STDMETHODCALLTYPE stringByEvaluatingJavaScriptFromString(_In_ BSTR script, _Deref_opt_out_ BSTR *result)
Definition: WebView.cpp:3671
NSString *const WebViewDidBeginEditingNotification
Definition: WebView.mm:722
virtual HRESULT STDMETHODCALLTYPE initWithFrame(RECT frame, _In_ BSTR frameName, _In_ BSTR groupName)
Definition: WebView.cpp:3046
NSString * mediaStyle
Definition: WebView.h:370
virtual HRESULT STDMETHODCALLTYPE isLoading(_Out_ BOOL *)
Definition: WebView.cpp:4068
virtual HRESULT STDMETHODCALLTYPE computedStyleForElement(_In_opt_ IDOMElement *, _In_ BSTR pseudoElement, _COM_Outptr_opt_ IDOMCSSStyleDeclaration **)
Definition: WebView.cpp:4498
Definition: DOMCSSStyleDeclaration.h:33
virtual HRESULT STDMETHODCALLTYPE pasteboardTypesForElement(_In_opt_ IPropertyBag *elementDictionary, _COM_Outptr_opt_ IEnumVARIANT **)
Definition: WebView.cpp:4130
virtual HRESULT STDMETHODCALLTYPE setMaintainsBackForwardList(BOOL)
Definition: WebView.cpp:3445
virtual HRESULT STDMETHODCALLTYPE elementAtPoint(_In_ LPPOINT, _COM_Outptr_opt_ IPropertyBag **elementDictionary)
Definition: WebView.cpp:4092
virtual HRESULT STDMETHODCALLTYPE searchFor(_In_ BSTR, BOOL forward, BOOL caseFlag, BOOL wrapFlag, _Out_ BOOL *found)
Definition: WebView.cpp:3864
virtual HRESULT STDMETHODCALLTYPE showGuessPanel(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:5054
OBJC_CLASS WebFrame
Definition: DumpRenderTreeMac.h:38
virtual HRESULT STDMETHODCALLTYPE cut(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:4935
virtual HRESULT STDMETHODCALLTYPE stopSpeaking(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:5085
DOMRange * selectedDOMRange
Definition: WebView.h:606
virtual HRESULT STDMETHODCALLTYPE toggleSmartInsertDelete(_In_opt_ IUnknown *sender)
Definition: WebView.cpp:4468
float textSizeMultiplier
Definition: WebView.h:311
BOOL goForward()
Definition: WebView.mm:6139
virtual HRESULT STDMETHODCALLTYPE registerViewClass(_In_opt_ IWebDocumentView *, _In_opt_ IWebDocumentRepresentation *, _In_ BSTR forMIMEType)
Definition: WebView.cpp:4022
BOOL maintainsInactiveSelection
Definition: WebView.h:608
void close()
Definition: WebView.mm:5673
virtual HRESULT STDMETHODCALLTYPE userAgentForURL(_In_ BSTR url, _Deref_opt_out_ BSTR *userAgent)
Definition: WebView.cpp:3583
NSInteger spellCheckerDocumentTag
Definition: WebView.h:614
WebFrame * selectedFrame
Definition: WebView.h:271
virtual HRESULT STDMETHODCALLTYPE canShowMIMEType(_In_ BSTR mimeType, _Out_ BOOL *)
Definition: WebView.cpp:2944