Guest User

Untitled

a guest
Nov 23rd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.81 KB | None | 0 0
  1. -void TouchBrowserFrameView::AnimationEnded(const ui::Animation* animation) {
  2. -  browser_view()->set_clip_y(0);
  3. -  if (keyboard_showing_) {
  4. -    // Because the NonClientFrameView is a sibling of the ClientView, we rely on
  5. -    // the parent to resize the ClientView instead of resizing it directly.
  6. -    parent()->Layout();
  7. -
  8. -    // The keyboard that pops up may end up hiding the text entry. So make sure
  9. -    // the renderer scrolls when necessary to keep the textfield visible.
  10. -    RenderViewHost* host =
  11. -        browser_view()->browser()->GetSelectedTabContents()->render_view_host();
  12. -    host->Send(new ViewMsg_ScrollFocusedEditableNodeIntoView(
  13. -        host->routing_id()));
  14. -  } else {
  15. -    // Notify the keyboard that it is hidden now.
  16. -    keyboard_->SetVisible(false);
  17. -  }
  18. -  SchedulePaint();
  19. -}
  20. -
Add Comment
Please, Sign In to add comment