| 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 Range* activeMatch() const; | 302 Range* activeMatch() const; |
| 303 | 303 |
| 304 // When a Find operation ends, we want to set the selection to what was acti
ve | 304 // When a Find operation ends, we want to set the selection to what was acti
ve |
| 305 // and set focus to the first focusable node we find (starting with the firs
t | 305 // and set focus to the first focusable node we find (starting with the firs
t |
| 306 // node in the matched range and going up the inheritance chain). If we find | 306 // node in the matched range and going up the inheritance chain). If we find |
| 307 // nothing to focus we focus the first focusable node in the range. This | 307 // nothing to focus we focus the first focusable node in the range. This |
| 308 // allows us to set focus to a link (when we find text inside a link), which | 308 // allows us to set focus to a link (when we find text inside a link), which |
| 309 // allows us to navigate by pressing Enter after closing the Find box. | 309 // allows us to navigate by pressing Enter after closing the Find box. |
| 310 void setFindEndstateFocusAndSelection(); | 310 void setFindEndstateFocusAndSelection(); |
| 311 | 311 |
| 312 void didFail(const ResourceError&, bool wasProvisional, HistoryCommitType); | |
| 313 | |
| 314 // Sets whether the WebLocalFrameImpl allows its document to be scrolled. | 312 // Sets whether the WebLocalFrameImpl allows its document to be scrolled. |
| 315 // If the parameter is true, allow the document to be scrolled. | 313 // If the parameter is true, allow the document to be scrolled. |
| 316 // Otherwise, disallow scrolling. | 314 // Otherwise, disallow scrolling. |
| 317 void setCanHaveScrollbars(bool) override; | 315 void setCanHaveScrollbars(bool) override; |
| 318 | 316 |
| 319 LocalFrame* frame() const { return m_frame.get(); } | 317 LocalFrame* frame() const { return m_frame.get(); } |
| 320 WebFrameClient* client() const { return m_client; } | 318 WebFrameClient* client() const { return m_client; } |
| 321 void setClient(WebFrameClient* client) { m_client = client; } | 319 void setClient(WebFrameClient* client) { m_client = client; } |
| 322 | 320 |
| 323 WebContentSettingsClient* contentSettingsClient() { return m_contentSettings
Client; } | 321 WebContentSettingsClient* contentSettingsClient() { return m_contentSettings
Client; } |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 // cleared upon close(). | 398 // cleared upon close(). |
| 401 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; | 399 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; |
| 402 #endif | 400 #endif |
| 403 }; | 401 }; |
| 404 | 402 |
| 405 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); | 403 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); |
| 406 | 404 |
| 407 } // namespace blink | 405 } // namespace blink |
| 408 | 406 |
| 409 #endif | 407 #endif |
| OLD | NEW |