Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -void TouchBrowserFrameView::AnimationEnded(const ui::Animation* animation) {
- - browser_view()->set_clip_y(0);
- - if (keyboard_showing_) {
- - // Because the NonClientFrameView is a sibling of the ClientView, we rely on
- - // the parent to resize the ClientView instead of resizing it directly.
- - parent()->Layout();
- -
- - // The keyboard that pops up may end up hiding the text entry. So make sure
- - // the renderer scrolls when necessary to keep the textfield visible.
- - RenderViewHost* host =
- - browser_view()->browser()->GetSelectedTabContents()->render_view_host();
- - host->Send(new ViewMsg_ScrollFocusedEditableNodeIntoView(
- - host->routing_id()));
- - } else {
- - // Notify the keyboard that it is hidden now.
- - keyboard_->SetVisible(false);
- - }
- - SchedulePaint();
- -}
- -
Add Comment
Please, Sign In to add comment