summaryrefslogtreecommitdiffstats
path: root/ui/views/controls/menu
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-08 19:04:44 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-08 19:04:44 +0000
commitffeae4b4beb48be2734e7c0a2e04ab83dfc60091 (patch)
tree2f884037673d5964b9f9a445879cdaccdcaff807 /ui/views/controls/menu
parent882ba1e272371308cfecfb5436eb5dec0ee0cea5 (diff)
downloadchromium_src-ffeae4b4beb48be2734e7c0a2e04ab83dfc60091.zip
chromium_src-ffeae4b4beb48be2734e7c0a2e04ab83dfc60091.tar.gz
chromium_src-ffeae4b4beb48be2734e7c0a2e04ab83dfc60091.tar.bz2
views: Rename ViewMenuDelegate to MenuButtonDelegate and move to controls/button/.
The reason is that why was founding difficult to know what ViewMenuDelegate was referring to. And because this delegate is always associated with a views::MenuButton. BUG=117092 R=sky@chromium.org TBR=stevenjb@chromium.org Review URL: https://chromiumcodereview.appspot.com/9632001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125650 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/controls/menu')
-rw-r--r--ui/views/controls/menu/view_menu_delegate.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/ui/views/controls/menu/view_menu_delegate.h b/ui/views/controls/menu/view_menu_delegate.h
deleted file mode 100644
index ef243e0..0000000
--- a/ui/views/controls/menu/view_menu_delegate.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 2011 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.
-
-#ifndef UI_VIEWS_CONTROLS_MENU_VIEW_MENU_DELEGATE_H_
-#define UI_VIEWS_CONTROLS_MENU_VIEW_MENU_DELEGATE_H_
-#pragma once
-
-#include "ui/gfx/native_widget_types.h"
-
-namespace gfx {
-class Point;
-}
-
-namespace views {
-
-class View;
-
-////////////////////////////////////////////////////////////////////////////////
-//
-// ViewMenuDelegate
-//
-// An interface that allows a component to tell a View about a menu that it
-// has constructed that the view can show (e.g. for MenuButton views, or as a
-// context menu.)
-//
-////////////////////////////////////////////////////////////////////////////////
-class ViewMenuDelegate {
- public:
- // Create and show a menu at the specified position. Source is the view the
- // ViewMenuDelegate was set on.
- virtual void RunMenu(View* source, const gfx::Point& pt) = 0;
-
- protected:
- virtual ~ViewMenuDelegate() {}
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_CONTROLS_MENU_VIEW_MENU_DELEGATE_H_