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

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

Issue 7550038: Rename VIEWS_API to VIEWS_EXPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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/menu/menu_delegate.h ('k') | views/controls/menu/menu_model_adapter.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_MENU_ITEM_VIEW_H_ 5 #ifndef VIEWS_CONTROLS_MENU_MENU_ITEM_VIEW_H_
6 #define VIEWS_CONTROLS_MENU_MENU_ITEM_VIEW_H_ 6 #define VIEWS_CONTROLS_MENU_MENU_ITEM_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // focus from the hosting window child views do not actually get focus. Instead 59 // focus from the hosting window child views do not actually get focus. Instead
60 // |SetHotTracked| is used as the user navigates around. 60 // |SetHotTracked| is used as the user navigates around.
61 // 61 //
62 // There are two ways to show a MenuItemView: 62 // There are two ways to show a MenuItemView:
63 // 1. Use RunMenuAt. This blocks the caller, executing the selected command 63 // 1. Use RunMenuAt. This blocks the caller, executing the selected command
64 // on success. 64 // on success.
65 // 2. Use RunMenuForDropAt. This is intended for use during a drop session 65 // 2. Use RunMenuForDropAt. This is intended for use during a drop session
66 // and does NOT block the caller. Instead the delegate is notified when the 66 // and does NOT block the caller. Instead the delegate is notified when the
67 // menu closes via the DropMenuClosed method. 67 // menu closes via the DropMenuClosed method.
68 68
69 class VIEWS_API MenuItemView : public View { 69 class VIEWS_EXPORT MenuItemView : public View {
70 public: 70 public:
71 friend class MenuController; 71 friend class MenuController;
72 72
73 // The menu item view's class name. 73 // The menu item view's class name.
74 static const char kViewClassName[]; 74 static const char kViewClassName[];
75 75
76 // ID used to identify menu items. 76 // ID used to identify menu items.
77 static const int kMenuItemViewID; 77 static const int kMenuItemViewID;
78 78
79 // ID used to identify empty menu items. 79 // ID used to identify empty menu items.
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 // position of the menu being shown. 490 // position of the menu being shown.
491 MenuPosition requested_menu_position_; 491 MenuPosition requested_menu_position_;
492 MenuPosition actual_menu_position_; 492 MenuPosition actual_menu_position_;
493 493
494 DISALLOW_COPY_AND_ASSIGN(MenuItemView); 494 DISALLOW_COPY_AND_ASSIGN(MenuItemView);
495 }; 495 };
496 496
497 } // namespace views 497 } // namespace views
498 498
499 #endif // VIEWS_CONTROLS_MENU_MENU_ITEM_VIEW_H_ 499 #endif // VIEWS_CONTROLS_MENU_MENU_ITEM_VIEW_H_
OLDNEW
« no previous file with comments | « views/controls/menu/menu_delegate.h ('k') | views/controls/menu/menu_model_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698