Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2839993002: [Android] Adding Smart GO/NEXT feature in Chrome (Closed)
Patch Set: Fixed WebViewTest build issues after restructure. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 2504 matching lines...) Expand 10 before | Expand all | Expand 10 after
2515 clipHtml = 2515 clipHtml =
2516 createMarkup(startPosition, endPosition, AnnotateForInterchange, 2516 createMarkup(startPosition, endPosition, AnnotateForInterchange,
2517 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); 2517 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs);
2518 } else { 2518 } else {
2519 clipHtml = 2519 clipHtml =
2520 createMarkup(endPosition, startPosition, AnnotateForInterchange, 2520 createMarkup(endPosition, startPosition, AnnotateForInterchange,
2521 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); 2521 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs);
2522 } 2522 }
2523 } 2523 }
2524 2524
2525 void WebLocalFrameImpl::advanceFocusInForm(WebFocusType focusType) {
2526 if (!frame()->document())
2527 return;
2528
2529 Element* element = frame()->document()->focusedElement();
2530 if (!element)
2531 return;
2532
2533 Element* nextElement =
2534 frame()->inputMethodController().nextFocusableElementInForm(
2535 element, focusType);
2536 if (!nextElement)
2537 return;
2538
2539 nextElement->scrollIntoViewIfNeeded(true /*centerIfNeeded*/);
2540 nextElement->focus();
2541 }
2542
2525 TextCheckerClient& WebLocalFrameImpl::textCheckerClient() const { 2543 TextCheckerClient& WebLocalFrameImpl::textCheckerClient() const {
2526 return *m_textCheckerClient; 2544 return *m_textCheckerClient;
2527 } 2545 }
2528 2546
2529 void WebLocalFrameImpl::setTextCheckClient( 2547 void WebLocalFrameImpl::setTextCheckClient(
2530 WebTextCheckClient* textCheckClient) { 2548 WebTextCheckClient* textCheckClient) {
2531 m_textCheckClient = textCheckClient; 2549 m_textCheckClient = textCheckClient;
2532 } 2550 }
2533 2551
2534 } // namespace blink 2552 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698