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

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

Issue 2029423003: OOPIF IME: Renderer Side Changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implemented WebViewImpl::getCompositionCharacterBounds Created 4 years, 6 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 } 459 }
460 } 460 }
461 } 461 }
462 462
463 bool WebFrameWidgetImpl::setComposition( 463 bool WebFrameWidgetImpl::setComposition(
464 const WebString& text, 464 const WebString& text,
465 const WebVector<WebCompositionUnderline>& underlines, 465 const WebVector<WebCompositionUnderline>& underlines,
466 int selectionStart, 466 int selectionStart,
467 int selectionEnd) 467 int selectionEnd)
468 { 468 {
469 // FIXME: To be implemented. 469 return view()->setComposition(text, underlines, selectionStart, selectionEnd );
EhsanK 2016/06/09 03:24:26 Following the comments on getCompositionCharacterB
470 return false;
471 } 470 }
472 471
473 bool WebFrameWidgetImpl::confirmComposition() 472 bool WebFrameWidgetImpl::confirmComposition()
474 { 473 {
475 // FIXME: To be implemented. 474 // FIXME: To be implemented.
476 return false; 475 return view()->confirmComposition();
477 } 476 }
478 477
479 bool WebFrameWidgetImpl::confirmComposition(ConfirmCompositionBehavior selection Behavior) 478 bool WebFrameWidgetImpl::confirmComposition(ConfirmCompositionBehavior selection Behavior)
480 { 479 {
481 // FIXME: To be implemented. 480 return view()->confirmComposition(selectionBehavior);
482 return false;
483 } 481 }
484 482
485 bool WebFrameWidgetImpl::confirmComposition(const WebString& text) 483 bool WebFrameWidgetImpl::confirmComposition(const WebString& text)
486 { 484 {
487 // FIXME: To be implemented. 485 return view()->confirmComposition(text);
488 return false;
489 } 486 }
490 487
491 bool WebFrameWidgetImpl::compositionRange(size_t* location, size_t* length) 488 bool WebFrameWidgetImpl::compositionRange(size_t* location, size_t* length)
492 { 489 {
493 // FIXME: To be implemented. 490 return view()->compositionRange(location, length);
494 return false;
495 } 491 }
496 492
497 WebTextInputInfo WebFrameWidgetImpl::textInputInfo() 493 WebTextInputInfo WebFrameWidgetImpl::textInputInfo()
498 { 494 {
499 return view()->textInputInfo(); 495 return view()->textInputInfo();
500 } 496 }
501 497
502 WebTextInputType WebFrameWidgetImpl::textInputType() 498 WebTextInputType WebFrameWidgetImpl::textInputType()
503 { 499 {
504 return view()->textInputType(); 500 return view()->textInputType();
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 m_layerTreeView = nullptr; 634 m_layerTreeView = nullptr;
639 m_layerTreeViewClosed = true; 635 m_layerTreeViewClosed = true;
640 } 636 }
641 637
642 void WebFrameWidgetImpl::didChangeWindowResizerRect() 638 void WebFrameWidgetImpl::didChangeWindowResizerRect()
643 { 639 {
644 if (m_localRoot->frameView()) 640 if (m_localRoot->frameView())
645 m_localRoot->frameView()->windowResizerRectChanged(); 641 m_localRoot->frameView()->windowResizerRectChanged();
646 } 642 }
647 643
644 bool WebFrameWidgetImpl::getCompositionCharacterBounds(WebVector<WebRect>& bound s)
645 {
646 return view()->getCompositionCharacterBounds(bounds);
647 }
648
648 void WebFrameWidgetImpl::handleMouseLeave(LocalFrame& mainFrame, const WebMouseE vent& event) 649 void WebFrameWidgetImpl::handleMouseLeave(LocalFrame& mainFrame, const WebMouseE vent& event)
649 { 650 {
650 // FIXME: WebWidget doesn't have the method below. 651 // FIXME: WebWidget doesn't have the method below.
651 // m_client->setMouseOverURL(WebURL()); 652 // m_client->setMouseOverURL(WebURL());
652 PageWidgetEventHandler::handleMouseLeave(mainFrame, event); 653 PageWidgetEventHandler::handleMouseLeave(mainFrame, event);
653 } 654 }
654 655
655 void WebFrameWidgetImpl::handleMouseDown(LocalFrame& mainFrame, const WebMouseEv ent& event) 656 void WebFrameWidgetImpl::handleMouseDown(LocalFrame& mainFrame, const WebMouseEv ent& event)
656 { 657 {
657 // Take capture on a mouse down on a plugin so we can send it mouse events. 658 // Take capture on a mouse down on a plugin so we can send it mouse events.
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 1111
1111 HitTestResult WebFrameWidgetImpl::hitTestResultForRootFramePos(const IntPoint& p osInRootFrame) 1112 HitTestResult WebFrameWidgetImpl::hitTestResultForRootFramePos(const IntPoint& p osInRootFrame)
1112 { 1113 {
1113 IntPoint docPoint(m_localRoot->frame()->view()->rootFrameToContents(posInRoo tFrame)); 1114 IntPoint docPoint(m_localRoot->frame()->view()->rootFrameToContents(posInRoo tFrame));
1114 HitTestResult result = m_localRoot->frame()->eventHandler().hitTestResultAtP oint(docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active); 1115 HitTestResult result = m_localRoot->frame()->eventHandler().hitTestResultAtP oint(docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active);
1115 result.setToShadowHostIfInUserAgentShadowRoot(); 1116 result.setToShadowHostIfInUserAgentShadowRoot();
1116 return result; 1117 return result;
1117 } 1118 }
1118 1119
1119 } // namespace blink 1120 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698