OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006 Apple Computer, 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // increments the refcount of the NPObject passed in. | 119 // increments the refcount of the NPObject passed in. |
120 virtual void BindToWindowObject(const std::wstring& name, NPObject* object); | 120 virtual void BindToWindowObject(const std::wstring& name, NPObject* object); |
121 virtual void CallJSGC(); | 121 virtual void CallJSGC(); |
122 | 122 |
123 virtual void* GetFrameImplementation() { return frame(); } | 123 virtual void* GetFrameImplementation() { return frame(); } |
124 | 124 |
125 virtual NPObject* GetWindowNPObject(); | 125 virtual NPObject* GetWindowNPObject(); |
126 | 126 |
127 virtual void GetContentAsPlainText(int max_chars, std::wstring* text) const; | 127 virtual void GetContentAsPlainText(int max_chars, std::wstring* text) const; |
128 virtual bool Find( | 128 virtual bool Find( |
129 const WebKit::WebFindInPageRequest& request, bool wrap_within_frame, | 129 int request_id, |
| 130 const string16& search_text, |
| 131 const WebKit::WebFindOptions& options, |
| 132 bool wrap_within_frame, |
130 gfx::Rect* selection_rect); | 133 gfx::Rect* selection_rect); |
131 virtual void StopFinding(bool clear_selection); | 134 virtual void StopFinding(bool clear_selection); |
132 virtual void ScopeStringMatches( | 135 virtual void ScopeStringMatches( |
133 const WebKit::WebFindInPageRequest& request, bool reset); | 136 int request_id, |
| 137 const string16& search_text, |
| 138 const WebKit::WebFindOptions& options, |
| 139 bool reset); |
134 virtual void CancelPendingScopingEffort(); | 140 virtual void CancelPendingScopingEffort(); |
135 virtual void ResetMatchCount(); | 141 virtual void ResetMatchCount(); |
136 virtual bool Visible(); | 142 virtual bool Visible(); |
137 virtual void SelectAll(); | 143 virtual void SelectAll(); |
138 virtual void Copy(); | 144 virtual void Copy(); |
139 virtual void Cut(); | 145 virtual void Cut(); |
140 virtual void Paste(); | 146 virtual void Paste(); |
141 virtual void Replace(const std::wstring& text); | 147 virtual void Replace(const std::wstring& text); |
142 virtual void ToggleSpellCheck(); | 148 virtual void ToggleSpellCheck(); |
143 virtual bool SpellCheckEnabled(); | 149 virtual bool SpellCheckEnabled(); |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 // Returns the ordinal of the first match in the frame specified. This | 386 // Returns the ordinal of the first match in the frame specified. This |
381 // function enumerates the frames, starting with the main frame and up to (but | 387 // function enumerates the frames, starting with the main frame and up to (but |
382 // not including) the frame passed in as a parameter and counts how many | 388 // not including) the frame passed in as a parameter and counts how many |
383 // matches have been found. | 389 // matches have been found. |
384 int OrdinalOfFirstMatchForFrame(WebFrameImpl* frame) const; | 390 int OrdinalOfFirstMatchForFrame(WebFrameImpl* frame) const; |
385 | 391 |
386 // Determines whether the scoping effort is required for a particular frame. | 392 // Determines whether the scoping effort is required for a particular frame. |
387 // It is not necessary if the frame is invisible, for example, or if this | 393 // It is not necessary if the frame is invisible, for example, or if this |
388 // is a repeat search that already returned nothing last time the same prefix | 394 // is a repeat search that already returned nothing last time the same prefix |
389 // was searched. | 395 // was searched. |
390 bool ShouldScopeMatches(const WebKit::WebFindInPageRequest& request); | 396 bool ShouldScopeMatches(const string16& search_text); |
391 | 397 |
392 // Only for test_shell | 398 // Only for test_shell |
393 int PendingFrameUnloadEventCount() const; | 399 int PendingFrameUnloadEventCount() const; |
394 | 400 |
395 // Determines whether to invalidate the content area and scrollbar. | 401 // Determines whether to invalidate the content area and scrollbar. |
396 void InvalidateIfNecessary(); | 402 void InvalidateIfNecessary(); |
397 | 403 |
398 void InternalLoadRequest(const WebRequest* request, | 404 void InternalLoadRequest(const WebRequest* request, |
399 const WebCore::SubstituteData& data, | 405 const WebCore::SubstituteData& data, |
400 bool replace); | 406 bool replace); |
401 | 407 |
402 // Clears the map of password listeners. | 408 // Clears the map of password listeners. |
403 void ClearPasswordListeners(); | 409 void ClearPasswordListeners(); |
404 | 410 |
405 // Valid between calls to BeginPrint() and EndPrint(). Containts the print | 411 // Valid between calls to BeginPrint() and EndPrint(). Containts the print |
406 // information. Is used by PrintPage(). | 412 // information. Is used by PrintPage(). |
407 scoped_ptr<ChromePrintContext> print_context_; | 413 scoped_ptr<ChromePrintContext> print_context_; |
408 | 414 |
409 // The input fields that are interested in edit events and their associated | 415 // The input fields that are interested in edit events and their associated |
410 // listeners. | 416 // listeners. |
411 typedef HashMap<RefPtr<WebCore::HTMLInputElement>, | 417 typedef HashMap<RefPtr<WebCore::HTMLInputElement>, |
412 webkit_glue::PasswordAutocompleteListener*> PasswordListenerMap; | 418 webkit_glue::PasswordAutocompleteListener*> PasswordListenerMap; |
413 PasswordListenerMap password_listeners_; | 419 PasswordListenerMap password_listeners_; |
414 | 420 |
415 DISALLOW_COPY_AND_ASSIGN(WebFrameImpl); | 421 DISALLOW_COPY_AND_ASSIGN(WebFrameImpl); |
416 }; | 422 }; |
417 | 423 |
418 #endif // WEBKIT_GLUE_WEBFRAME_IMPL_H_ | 424 #endif // WEBKIT_GLUE_WEBFRAME_IMPL_H_ |
OLD | NEW |