blob: 961f3f84d24cf8779bb8d9aa6c8a1453e1371fe3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/event_utils.h"
#include "ui/events/event.h"
namespace event_utils {
bool IsPossibleDispositionEvent(const ui::Event& event) {
return event.IsMouseEvent() && (event.flags() &
(ui::EF_LEFT_MOUSE_BUTTON | ui::EF_MIDDLE_MOUSE_BUTTON));
}
} // namespace event_utils
|