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

Side by Side Diff: views/controls/menu/view_menu_delegate.h

Issue 115309: Remove even more ATL dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/controls/hwnd_view.cc ('k') | views/controls/message_box_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef VIEWS_CONTROLS_MENU_VIEW_MENU_DELEGATE_H_ 5 #ifndef VIEWS_CONTROLS_MENU_VIEW_MENU_DELEGATE_H_
6 #define VIEWS_CONTROLS_MENU_VIEW_MENU_DELEGATE_H_ 6 #define VIEWS_CONTROLS_MENU_VIEW_MENU_DELEGATE_H_
7 7
8 #include "base/gfx/native_widget_types.h" 8 #include "base/gfx/native_widget_types.h"
9 9
10 namespace gfx {
11 class Point;
12 }
13
10 namespace views { 14 namespace views {
11 15
12 class View; 16 class View;
13 17
14 //////////////////////////////////////////////////////////////////////////////// 18 ////////////////////////////////////////////////////////////////////////////////
15 // 19 //
16 // ViewMenuDelegate 20 // ViewMenuDelegate
17 // 21 //
18 // An interface that allows a component to tell a View about a menu that it 22 // An interface that allows a component to tell a View about a menu that it
19 // has constructed that the view can show (e.g. for MenuButton views, or as a 23 // has constructed that the view can show (e.g. for MenuButton views, or as a
20 // context menu.) 24 // context menu.)
21 // 25 //
22 //////////////////////////////////////////////////////////////////////////////// 26 ////////////////////////////////////////////////////////////////////////////////
23 class ViewMenuDelegate { 27 class ViewMenuDelegate {
24 public: 28 public:
25 // Create and show a menu at the specified position. Source is the view the 29 // Create and show a menu at the specified position. Source is the view the
26 // ViewMenuDelegate was set on. 30 // ViewMenuDelegate was set on.
27 virtual void RunMenu(View* source, 31 virtual void RunMenu(View* source,
28 const CPoint& pt, 32 const gfx::Point& pt,
29 gfx::NativeView hwnd) = 0; 33 gfx::NativeView hwnd) = 0;
30 }; 34 };
31 35
32 } // namespace views 36 } // namespace views
33 37
34 #endif // VIEWS_CONTROLS_MENU_VIEW_MENU_DELEGATE_H_ 38 #endif // VIEWS_CONTROLS_MENU_VIEW_MENU_DELEGATE_H_
OLDNEW
« no previous file with comments | « views/controls/hwnd_view.cc ('k') | views/controls/message_box_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698