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 2586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2597 clip_html = | 2597 clip_html = |
2598 CreateMarkup(start_position, end_position, kAnnotateForInterchange, | 2598 CreateMarkup(start_position, end_position, kAnnotateForInterchange, |
2599 ConvertBlocksToInlines::kNotConvert, kResolveNonLocalURLs); | 2599 ConvertBlocksToInlines::kNotConvert, kResolveNonLocalURLs); |
2600 } else { | 2600 } else { |
2601 clip_html = | 2601 clip_html = |
2602 CreateMarkup(end_position, start_position, kAnnotateForInterchange, | 2602 CreateMarkup(end_position, start_position, kAnnotateForInterchange, |
2603 ConvertBlocksToInlines::kNotConvert, kResolveNonLocalURLs); | 2603 ConvertBlocksToInlines::kNotConvert, kResolveNonLocalURLs); |
2604 } | 2604 } |
2605 } | 2605 } |
2606 | 2606 |
| 2607 void WebLocalFrameImpl::AdvanceFocusInForm(WebFocusType focus_type) { |
| 2608 DCHECK(GetFrame()->GetDocument()); |
| 2609 Element* element = GetFrame()->GetDocument()->FocusedElement(); |
| 2610 if (!element) |
| 2611 return; |
| 2612 |
| 2613 Element* next_element = |
| 2614 GetFrame()->GetPage()->GetFocusController().NextFocusableElementInForm( |
| 2615 element, focus_type); |
| 2616 if (!next_element) |
| 2617 return; |
| 2618 |
| 2619 next_element->scrollIntoViewIfNeeded(true /*centerIfNeeded*/); |
| 2620 next_element->focus(); |
| 2621 } |
| 2622 |
2607 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { | 2623 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { |
2608 return *text_checker_client_; | 2624 return *text_checker_client_; |
2609 } | 2625 } |
2610 | 2626 |
2611 void WebLocalFrameImpl::SetTextCheckClient( | 2627 void WebLocalFrameImpl::SetTextCheckClient( |
2612 WebTextCheckClient* text_check_client) { | 2628 WebTextCheckClient* text_check_client) { |
2613 text_check_client_ = text_check_client; | 2629 text_check_client_ = text_check_client; |
2614 } | 2630 } |
2615 | 2631 |
2616 } // namespace blink | 2632 } // namespace blink |
OLD | NEW |