blob: b01015552b18dfcaf378816272de39e49df831ec (
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/views/events/event.h"
namespace event_utils {
bool IsPossibleDispositionEvent(const views::Event& event) {
return event.IsMouseEvent() && (event.flags() &
(ui::EF_LEFT_MOUSE_BUTTON | ui::EF_RIGHT_MOUSE_BUTTON));
}
} // namespace event_utils
|