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 2473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2484 clip_html = | 2484 clip_html = |
2485 CreateMarkup(start_position, end_position, kAnnotateForInterchange, | 2485 CreateMarkup(start_position, end_position, kAnnotateForInterchange, |
2486 ConvertBlocksToInlines::kNotConvert, kResolveNonLocalURLs); | 2486 ConvertBlocksToInlines::kNotConvert, kResolveNonLocalURLs); |
2487 } else { | 2487 } else { |
2488 clip_html = | 2488 clip_html = |
2489 CreateMarkup(end_position, start_position, kAnnotateForInterchange, | 2489 CreateMarkup(end_position, start_position, kAnnotateForInterchange, |
2490 ConvertBlocksToInlines::kNotConvert, kResolveNonLocalURLs); | 2490 ConvertBlocksToInlines::kNotConvert, kResolveNonLocalURLs); |
2491 } | 2491 } |
2492 } | 2492 } |
2493 | 2493 |
| 2494 void WebLocalFrameImpl::AdvanceFocusInForm(WebFocusType focus_type) { |
| 2495 DCHECK(GetFrame()->GetDocument()); |
| 2496 Element* element = GetFrame()->GetDocument()->FocusedElement(); |
| 2497 if (!element) |
| 2498 return; |
| 2499 |
| 2500 Element* next_element = |
| 2501 GetFrame()->GetPage()->GetFocusController().NextFocusableElementInForm( |
| 2502 element, focus_type); |
| 2503 if (!next_element) |
| 2504 return; |
| 2505 |
| 2506 next_element->scrollIntoViewIfNeeded(true /*centerIfNeeded*/); |
| 2507 next_element->focus(); |
| 2508 } |
| 2509 |
2494 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { | 2510 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { |
2495 return *text_checker_client_; | 2511 return *text_checker_client_; |
2496 } | 2512 } |
2497 | 2513 |
2498 void WebLocalFrameImpl::SetTextCheckClient( | 2514 void WebLocalFrameImpl::SetTextCheckClient( |
2499 WebTextCheckClient* text_check_client) { | 2515 WebTextCheckClient* text_check_client) { |
2500 text_check_client_ = text_check_client; | 2516 text_check_client_ = text_check_client; |
2501 } | 2517 } |
2502 | 2518 |
2503 void WebLocalFrameImpl::SetSpellCheckPanelHostClient( | 2519 void WebLocalFrameImpl::SetSpellCheckPanelHostClient( |
2504 WebSpellCheckPanelHostClient* spell_check_panel_host_client) { | 2520 WebSpellCheckPanelHostClient* spell_check_panel_host_client) { |
2505 spell_check_panel_host_client_ = spell_check_panel_host_client; | 2521 spell_check_panel_host_client_ = spell_check_panel_host_client; |
2506 } | 2522 } |
2507 | 2523 |
2508 } // namespace blink | 2524 } // namespace blink |
OLD | NEW |