| OLD | NEW |
| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 virtual bool willSuppressOpenerInNewFrame() const; | 167 virtual bool willSuppressOpenerInNewFrame() const; |
| 168 virtual void replaceSelection(const WebString&); | 168 virtual void replaceSelection(const WebString&); |
| 169 virtual void insertText(const WebString&); | 169 virtual void insertText(const WebString&); |
| 170 virtual void setMarkedText(const WebString&, unsigned location, unsigned len
gth); | 170 virtual void setMarkedText(const WebString&, unsigned location, unsigned len
gth); |
| 171 virtual void unmarkText(); | 171 virtual void unmarkText(); |
| 172 virtual bool hasMarkedText() const; | 172 virtual bool hasMarkedText() const; |
| 173 virtual WebRange markedRange() const; | 173 virtual WebRange markedRange() const; |
| 174 virtual bool firstRectForCharacterRange(unsigned location, unsigned length,
WebRect&) const; | 174 virtual bool firstRectForCharacterRange(unsigned location, unsigned length,
WebRect&) const; |
| 175 virtual size_t characterIndexForPoint(const WebPoint&) const; | 175 virtual size_t characterIndexForPoint(const WebPoint&) const; |
| 176 virtual bool executeCommand(const WebString&, const WebNode& = WebNode()); | 176 virtual bool executeCommand(const WebString&, const WebNode& = WebNode()); |
| 177 virtual bool executeCommand(const WebString&, const WebString& value); | 177 virtual bool executeCommand(const WebString&, const WebString& value, const
WebNode& = WebNode()); |
| 178 virtual bool isCommandEnabled(const WebString&) const; | 178 virtual bool isCommandEnabled(const WebString&) const; |
| 179 virtual void enableContinuousSpellChecking(bool); | 179 virtual void enableContinuousSpellChecking(bool); |
| 180 virtual bool isContinuousSpellCheckingEnabled() const; | 180 virtual bool isContinuousSpellCheckingEnabled() const; |
| 181 virtual void requestTextChecking(const WebElement&); | 181 virtual void requestTextChecking(const WebElement&); |
| 182 virtual void replaceMisspelledRange(const WebString&); | 182 virtual void replaceMisspelledRange(const WebString&); |
| 183 virtual void removeSpellingMarkers(); | 183 virtual void removeSpellingMarkers(); |
| 184 virtual bool hasSelection() const; | 184 virtual bool hasSelection() const; |
| 185 virtual WebRange selectionRange() const; | 185 virtual WebRange selectionRange() const; |
| 186 virtual WebString selectionAsText() const; | 186 virtual WebString selectionAsText() const; |
| 187 virtual WebString selectionAsMarkup() const; | 187 virtual WebString selectionAsMarkup() const; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 | 254 |
| 255 void createFrameView(); | 255 void createFrameView(); |
| 256 | 256 |
| 257 static WebFrameImpl* fromFrame(WebCore::Frame* frame); | 257 static WebFrameImpl* fromFrame(WebCore::Frame* frame); |
| 258 static WebFrameImpl* fromFrameOwnerElement(WebCore::Element* element); | 258 static WebFrameImpl* fromFrameOwnerElement(WebCore::Element* element); |
| 259 | 259 |
| 260 // If the frame hosts a PluginDocument, this method returns the WebPluginCon
tainerImpl | 260 // If the frame hosts a PluginDocument, this method returns the WebPluginCon
tainerImpl |
| 261 // that hosts the plugin. | 261 // that hosts the plugin. |
| 262 static WebPluginContainerImpl* pluginContainerFromFrame(WebCore::Frame*); | 262 static WebPluginContainerImpl* pluginContainerFromFrame(WebCore::Frame*); |
| 263 | 263 |
| 264 // If the frame hosts a PluginDocument, this method returns the WebPluginCon
tainerImpl |
| 265 // that hosts the plugin. If the provided node is a plugin, then it runs its |
| 266 // WebPluginContainerImpl. |
| 267 static WebPluginContainerImpl* pluginContainerFromNode(WebCore::Frame*, cons
t WebNode&); |
| 268 |
| 264 WebViewImpl* viewImpl() const; | 269 WebViewImpl* viewImpl() const; |
| 265 | 270 |
| 266 WebCore::FrameView* frameView() const { return frame() ? frame()->view() : 0
; } | 271 WebCore::FrameView* frameView() const { return frame() ? frame()->view() : 0
; } |
| 267 | 272 |
| 268 // Getters for the impls corresponding to Get(Provisional)DataSource. They | 273 // Getters for the impls corresponding to Get(Provisional)DataSource. They |
| 269 // may return 0 if there is no corresponding data source. | 274 // may return 0 if there is no corresponding data source. |
| 270 WebDataSourceImpl* dataSourceImpl() const; | 275 WebDataSourceImpl* dataSourceImpl() const; |
| 271 WebDataSourceImpl* provisionalDataSourceImpl() const; | 276 WebDataSourceImpl* provisionalDataSourceImpl() const; |
| 272 | 277 |
| 273 // Returns which frame has an active match. This function should only be | 278 // Returns which frame has an active match. This function should only be |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 long long m_identifier; | 497 long long m_identifier; |
| 493 | 498 |
| 494 // Ensure we don't overwrite valid history data during same document loads | 499 // Ensure we don't overwrite valid history data during same document loads |
| 495 // from HistoryItems | 500 // from HistoryItems |
| 496 bool m_inSameDocumentHistoryLoad; | 501 bool m_inSameDocumentHistoryLoad; |
| 497 }; | 502 }; |
| 498 | 503 |
| 499 } // namespace WebKit | 504 } // namespace WebKit |
| 500 | 505 |
| 501 #endif | 506 #endif |
| OLD | NEW |