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 2553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2564 clip_html = | 2564 clip_html = |
2565 CreateMarkup(start_position, end_position, kAnnotateForInterchange, | 2565 CreateMarkup(start_position, end_position, kAnnotateForInterchange, |
2566 ConvertBlocksToInlines::kNotConvert, kResolveNonLocalURLs); | 2566 ConvertBlocksToInlines::kNotConvert, kResolveNonLocalURLs); |
2567 } else { | 2567 } else { |
2568 clip_html = | 2568 clip_html = |
2569 CreateMarkup(end_position, start_position, kAnnotateForInterchange, | 2569 CreateMarkup(end_position, start_position, kAnnotateForInterchange, |
2570 ConvertBlocksToInlines::kNotConvert, kResolveNonLocalURLs); | 2570 ConvertBlocksToInlines::kNotConvert, kResolveNonLocalURLs); |
2571 } | 2571 } |
2572 } | 2572 } |
2573 | 2573 |
| 2574 void WebLocalFrameImpl::AdvanceFocusInForm(WebFocusType focusType) { |
| 2575 DCHECK(GetFrame()->GetDocument()); |
| 2576 Element* element = GetFrame()->GetDocument()->FocusedElement(); |
| 2577 if (!element) |
| 2578 return; |
| 2579 |
| 2580 Element* next_element = |
| 2581 GetFrame()->GetPage()->GetFocusController().NextFocusableElementInForm( |
| 2582 element, focusType); |
| 2583 if (!next_element) |
| 2584 return; |
| 2585 |
| 2586 next_element->scrollIntoViewIfNeeded(true /*centerIfNeeded*/); |
| 2587 next_element->focus(); |
| 2588 } |
| 2589 |
2574 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { | 2590 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { |
2575 return *text_checker_client_; | 2591 return *text_checker_client_; |
2576 } | 2592 } |
2577 | 2593 |
2578 void WebLocalFrameImpl::SetTextCheckClient( | 2594 void WebLocalFrameImpl::SetTextCheckClient( |
2579 WebTextCheckClient* text_check_client) { | 2595 WebTextCheckClient* text_check_client) { |
2580 text_check_client_ = text_check_client; | 2596 text_check_client_ = text_check_client; |
2581 } | 2597 } |
2582 | 2598 |
2583 } // namespace blink | 2599 } // namespace blink |
OLD | NEW |