Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / views / event_utils.cc
blob961f3f84d24cf8779bb8d9aa6c8a1453e1371fe3
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/views/event_utils.h"
7 #include "ui/events/event.h"
9 namespace event_utils {
11 bool IsPossibleDispositionEvent(const ui::Event& event) {
12 return event.IsMouseEvent() && (event.flags() &
13 (ui::EF_LEFT_MOUSE_BUTTON | ui::EF_MIDDLE_MOUSE_BUTTON));
16 } // namespace event_utils