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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 virtual unsigned unloadListenerCount() const; | 134 virtual unsigned unloadListenerCount() const; |
135 virtual bool isProcessingUserGesture() const; | 135 virtual bool isProcessingUserGesture() const; |
136 virtual bool willSuppressOpenerInNewFrame() const; | 136 virtual bool willSuppressOpenerInNewFrame() const; |
137 virtual void replaceSelection(const WebString&); | 137 virtual void replaceSelection(const WebString&); |
138 virtual void insertText(const WebString&); | 138 virtual void insertText(const WebString&); |
139 virtual void setMarkedText(const WebString&, unsigned location, unsigned len
gth); | 139 virtual void setMarkedText(const WebString&, unsigned location, unsigned len
gth); |
140 virtual void unmarkText(); | 140 virtual void unmarkText(); |
141 virtual bool hasMarkedText() const; | 141 virtual bool hasMarkedText() const; |
142 virtual WebRange markedRange() const; | 142 virtual WebRange markedRange() const; |
143 virtual bool firstRectForCharacterRange(unsigned location, unsigned length,
WebRect&) const; | 143 virtual bool firstRectForCharacterRange(unsigned location, unsigned length,
WebRect&) const; |
| 144 virtual unsigned characterIndexForPoint(const WebPoint& point) const; |
144 virtual bool executeCommand(const WebString&); | 145 virtual bool executeCommand(const WebString&); |
145 virtual bool executeCommand(const WebString&, const WebString& value); | 146 virtual bool executeCommand(const WebString&, const WebString& value); |
146 virtual bool isCommandEnabled(const WebString&) const; | 147 virtual bool isCommandEnabled(const WebString&) const; |
147 virtual void enableContinuousSpellChecking(bool); | 148 virtual void enableContinuousSpellChecking(bool); |
148 virtual bool isContinuousSpellCheckingEnabled() const; | 149 virtual bool isContinuousSpellCheckingEnabled() const; |
149 virtual bool hasSelection() const; | 150 virtual bool hasSelection() const; |
150 virtual WebRange selectionRange() const; | 151 virtual WebRange selectionRange() const; |
151 virtual WebString selectionAsText() const; | 152 virtual WebString selectionAsText() const; |
152 virtual WebString selectionAsMarkup() const; | 153 virtual WebString selectionAsMarkup() const; |
153 virtual bool selectWordAroundCaret(); | 154 virtual bool selectWordAroundCaret(); |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 const WebFindOptions&, bool reset); | 314 const WebFindOptions&, bool reset); |
314 | 315 |
315 // Determines whether to invalidate the content area and scrollbar. | 316 // Determines whether to invalidate the content area and scrollbar. |
316 void invalidateIfNecessary(); | 317 void invalidateIfNecessary(); |
317 | 318 |
318 // Clears the map of password listeners. | 319 // Clears the map of password listeners. |
319 void clearPasswordListeners(); | 320 void clearPasswordListeners(); |
320 | 321 |
321 void loadJavaScriptURL(const WebCore::KURL&); | 322 void loadJavaScriptURL(const WebCore::KURL&); |
322 | 323 |
| 324 // Given a point in content coordinate space, this will return a Range that |
| 325 // contains that point. |
| 326 WebCore::Range* characterRangeAtPoint(const WebCore::IntPoint& point) const; |
| 327 |
| 328 // Takes in a Range and extracts a location and length of that range. |
| 329 bool getLocationAndLengthFromRange(WebCore::Range* range, unsigned& location
, unsigned& length) const; |
| 330 |
323 FrameLoaderClientImpl m_frameLoaderClient; | 331 FrameLoaderClientImpl m_frameLoaderClient; |
324 | 332 |
325 WebFrameClient* m_client; | 333 WebFrameClient* m_client; |
326 | 334 |
327 // This is a weak pointer to our corresponding WebCore frame. A reference t
o | 335 // This is a weak pointer to our corresponding WebCore frame. A reference t
o |
328 // ourselves is held while frame_ is valid. See our Closing method. | 336 // ourselves is held while frame_ is valid. See our Closing method. |
329 WebCore::Frame* m_frame; | 337 WebCore::Frame* m_frame; |
330 | 338 |
331 // A way for the main frame to keep track of which frame has an active | 339 // A way for the main frame to keep track of which frame has an active |
332 // match. Should be 0 for all other frames. | 340 // match. Should be 0 for all other frames. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 // Keeps a reference to the frame's WebAnimationController. | 401 // Keeps a reference to the frame's WebAnimationController. |
394 WebAnimationControllerImpl m_animationController; | 402 WebAnimationControllerImpl m_animationController; |
395 | 403 |
396 // The identifier of this frame. | 404 // The identifier of this frame. |
397 long long m_identifier; | 405 long long m_identifier; |
398 }; | 406 }; |
399 | 407 |
400 } // namespace WebKit | 408 } // namespace WebKit |
401 | 409 |
402 #endif | 410 #endif |
OLD | NEW |