Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1287)

Unified Diff: views/context_menu_controller.h

Issue 8735009: views: Move some random files from views/ to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/mouse_watcher.cc ('k') | views/debug_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/context_menu_controller.h
diff --git a/views/context_menu_controller.h b/views/context_menu_controller.h
deleted file mode 100644
index 9f0e6c42a09379f060b4b6c01105d675bf7197b2..0000000000000000000000000000000000000000
--- a/views/context_menu_controller.h
+++ /dev/null
@@ -1,47 +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 VIEWS_CONTEXT_MENU_CONTROLLER_H_
-#define VIEWS_CONTEXT_MENU_CONTROLLER_H_
-#pragma once
-
-#include "views/views_export.h"
-
-namespace gfx {
-class Point;
-}
-
-namespace views {
-class View;
-
-// ContextMenuController is responsible for showing the context menu for a
-// View. To use a ContextMenuController invoke set_context_menu_controller on a
-// View. When the appropriate user gesture occurs ShowContextMenu is invoked
-// on the ContextMenuController.
-//
-// Setting a ContextMenuController on a view makes the view process mouse
-// events.
-//
-// It is up to subclasses that do their own mouse processing to invoke
-// the appropriate ContextMenuController method, typically by invoking super's
-// implementation for mouse processing.
-class VIEWS_EXPORT ContextMenuController {
- public:
- // Invoked to show the context menu for the source view. If |is_mouse_gesture|
- // is true, |p| is the location of the mouse. If |is_mouse_gesture| is false,
- // this method was not invoked by a mouse gesture and |p| is the recommended
- // location to show the menu at.
- //
- // |p| is in screen coordinates.
- virtual void ShowContextMenuForView(View* source,
- const gfx::Point& p,
- bool is_mouse_gesture) = 0;
-
- protected:
- virtual ~ContextMenuController() {}
-};
-
-} // namespace views
-
-#endif // VIEWS_CONTEXT_MENU_CONTROLLER_H_
« no previous file with comments | « ui/views/mouse_watcher.cc ('k') | views/debug_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698