Lines Matching refs:event
7 #include "ui/events/event.h"
16 bool LocationBarDecorationView::OnMousePressed(const ui::MouseEvent& event) {
17 if (event.IsOnlyLeftMouseButton() && HitTestPoint(event.location())) {
26 void LocationBarDecorationView::OnMouseReleased(const ui::MouseEvent& event) {
27 if (event.IsOnlyLeftMouseButton() && HitTestPoint(event.location()) &&
33 bool LocationBarDecorationView::OnKeyPressed(const ui::KeyEvent& event) {
34 if (event.key_code() == ui::VKEY_SPACE ||
35 event.key_code() == ui::VKEY_RETURN) {
43 void LocationBarDecorationView::OnGestureEvent(ui::GestureEvent* event) {
44 if (event->type() == ui::ET_GESTURE_TAP) {
46 event->SetHandled();