Commit 8dff7904 authored by sangseok.jang's avatar sangseok.jang Committed by Commit Bot

Change the order of handling inkdrop and dispatch event.

 InkDrop is handled before View::OnMouseEvent() in OnMouseEvent().
So, If I want to override the functions associated with InkDrop(ex : CreateInkDropHighlight()),
there is a problem with not getting the something appropriate(ex. Button::STATE)

Bug: none
Change-Id: I8543a1354197a42478075b941671e5c0e59fc0b7
Reviewed-on: https://chromium-review.googlesource.com/c/1309561Reviewed-by: default avatarMohsen Izadi <mohsen@chromium.org>
Commit-Queue: Mohsen Izadi <mohsen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#605254}
parent fd772338
......@@ -230,6 +230,7 @@ void InkDropHostView::OnBlur() {
}
void InkDropHostView::OnMouseEvent(ui::MouseEvent* event) {
View::OnMouseEvent(event);
switch (event->type()) {
case ui::ET_MOUSE_ENTERED:
GetInkDrop()->SetHovered(true);
......@@ -243,7 +244,6 @@ void InkDropHostView::OnMouseEvent(ui::MouseEvent* event) {
default:
break;
}
View::OnMouseEvent(event);
}
std::unique_ptr<InkDropImpl> InkDropHostView::CreateDefaultInkDropImpl() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment