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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
215 // If currently_loading_request is NULL, does nothing. | 215 // If currently_loading_request is NULL, does nothing. |
216 void CacheCurrentRequestInfo(WebDataSourceImpl* datasource); | 216 void CacheCurrentRequestInfo(WebDataSourceImpl* datasource); |
217 | 217 |
218 void set_currently_loading_history_item(WebHistoryItemImpl* item); | 218 void set_currently_loading_history_item(WebHistoryItemImpl* item); |
219 | 219 |
220 // Getters for the impls corresponding to Get(Provisional)DataSource. They | 220 // Getters for the impls corresponding to Get(Provisional)DataSource. They |
221 // may return NULL if there is no corresponding data source. | 221 // may return NULL if there is no corresponding data source. |
222 WebDataSourceImpl* GetDataSourceImpl() const; | 222 WebDataSourceImpl* GetDataSourceImpl() const; |
223 WebDataSourceImpl* GetProvisionalDataSourceImpl() const; | 223 WebDataSourceImpl* GetProvisionalDataSourceImpl() const; |
224 | 224 |
225 const WebCore::Node* inspected_node() const { | |
226 return inspected_node_; | |
227 } | |
228 | |
229 void selectNodeFromInspector(WebCore::Node* node); | 225 void selectNodeFromInspector(WebCore::Node* node); |
pfeldman
2009/02/28 20:13:09
This one is no longer implemented.
| |
230 | 226 |
231 // Returns which frame has an active match. This function should only be | 227 // Returns which frame has an active match. This function should only be |
232 // called on the main frame, as it is the only frame keeping track. Returned | 228 // called on the main frame, as it is the only frame keeping track. Returned |
233 // value can be NULL if no frame has an active match. | 229 // value can be NULL if no frame has an active match. |
234 const WebFrameImpl* active_match_frame() const { | 230 const WebFrameImpl* active_match_frame() const { |
235 return active_match_frame_; | 231 return active_match_frame_; |
236 } | 232 } |
237 | 233 |
238 // When a Find operation ends, we want to set the selection to what was active | 234 // When a Find operation ends, we want to set the selection to what was active |
239 // and set focus to the first focusable node we find (starting with the first | 235 // and set focus to the first focusable node we find (starting with the first |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
315 // WebCore initiates a history navigation (probably via javascript). | 311 // WebCore initiates a history navigation (probably via javascript). |
316 scoped_refptr<WebHistoryItemImpl> currently_loading_history_item_; | 312 scoped_refptr<WebHistoryItemImpl> currently_loading_history_item_; |
317 | 313 |
318 // Plugins sometimes need to be notified when loads are complete so we keep | 314 // Plugins sometimes need to be notified when loads are complete so we keep |
319 // a pointer back to the appropriate plugin. | 315 // a pointer back to the appropriate plugin. |
320 WebPluginDelegate* plugin_delegate_; | 316 WebPluginDelegate* plugin_delegate_; |
321 | 317 |
322 // Handling requests from TextInputController on this frame. | 318 // Handling requests from TextInputController on this frame. |
323 scoped_ptr<WebTextInputImpl> webtextinput_impl_; | 319 scoped_ptr<WebTextInputImpl> webtextinput_impl_; |
324 | 320 |
325 // The node selected in the web inspector. Used for highlighting it on the pag e. | |
326 WebCore::Node* inspected_node_; | |
327 | |
328 // A way for the main frame to keep track of which frame has an active | 321 // A way for the main frame to keep track of which frame has an active |
329 // match. Should be NULL for all other frames. | 322 // match. Should be NULL for all other frames. |
330 WebFrameImpl* active_match_frame_; | 323 WebFrameImpl* active_match_frame_; |
331 | 324 |
332 // The range of the active match for the current frame. | 325 // The range of the active match for the current frame. |
333 RefPtr<WebCore::Range> active_match_; | 326 RefPtr<WebCore::Range> active_match_; |
334 | 327 |
335 // The index of the active match. | 328 // The index of the active match. |
336 int active_match_index_; | 329 int active_match_index_; |
337 | 330 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
423 // The input fields that are interested in edit events and their associated | 416 // The input fields that are interested in edit events and their associated |
424 // listeners. | 417 // listeners. |
425 typedef HashMap<RefPtr<WebCore::HTMLInputElement>, | 418 typedef HashMap<RefPtr<WebCore::HTMLInputElement>, |
426 webkit_glue::PasswordAutocompleteListener*> PasswordListenerMap; | 419 webkit_glue::PasswordAutocompleteListener*> PasswordListenerMap; |
427 PasswordListenerMap password_listeners_; | 420 PasswordListenerMap password_listeners_; |
428 | 421 |
429 DISALLOW_COPY_AND_ASSIGN(WebFrameImpl); | 422 DISALLOW_COPY_AND_ASSIGN(WebFrameImpl); |
430 }; | 423 }; |
431 | 424 |
432 #endif // WEBKIT_GLUE_WEBFRAME_IMPL_H_ | 425 #endif // WEBKIT_GLUE_WEBFRAME_IMPL_H_ |
OLD | NEW |