| Index: ui/base/ui_base_types.cc
|
| diff --git a/ui/base/ui_base_types.cc b/ui/base/ui_base_types.cc
|
| deleted file mode 100644
|
| index e757edb1e6f315acb889834d3773bfaabca63908..0000000000000000000000000000000000000000
|
| --- a/ui/base/ui_base_types.cc
|
| +++ /dev/null
|
| @@ -1,20 +0,0 @@
|
| -// Copyright 2013 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 "ui/base/ui_base_types.h"
|
| -
|
| -#include "ui/events/event.h"
|
| -
|
| -namespace ui {
|
| -
|
| -MenuSourceType GetMenuSourceTypeForEvent(const ui::Event& event) {
|
| - ui::MenuSourceType source_type = ui::MENU_SOURCE_MOUSE;
|
| - if (event.IsKeyEvent())
|
| - source_type = ui::MENU_SOURCE_KEYBOARD;
|
| - if (event.IsTouchEvent() || event.IsGestureEvent())
|
| - source_type = ui::MENU_SOURCE_TOUCH;
|
| - return source_type;
|
| -}
|
| -
|
| -} // namespace ui
|
|
|