| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_TAB_CONTENTS_POPUP_MENU_HELPER_MAC_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_POPUP_MENU_HELPER_MAC_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_POPUP_MENU_HELPER_MAC_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_POPUP_MENU_HELPER_MAC_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "chrome/common/notification_observer.h" | 10 #include "chrome/common/notification_observer.h" |
| 11 #include "chrome/common/notification_registrar.h" | 11 #include "chrome/common/notification_registrar.h" |
| 12 #include "gfx/rect.h" | 12 #include "ui/gfx/rect.h" |
| 13 | 13 |
| 14 class RenderViewHost; | 14 class RenderViewHost; |
| 15 struct WebMenuItem; | 15 struct WebMenuItem; |
| 16 | 16 |
| 17 class PopupMenuHelper : public NotificationObserver { | 17 class PopupMenuHelper : public NotificationObserver { |
| 18 public: | 18 public: |
| 19 // Creates a PopupMenuHelper that will notify |render_view_host| when a user | 19 // Creates a PopupMenuHelper that will notify |render_view_host| when a user |
| 20 // selects or cancels the popup. | 20 // selects or cancels the popup. |
| 21 explicit PopupMenuHelper(RenderViewHost* render_view_host); | 21 explicit PopupMenuHelper(RenderViewHost* render_view_host); |
| 22 | 22 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 37 const NotificationDetails& details); | 37 const NotificationDetails& details); |
| 38 | 38 |
| 39 NotificationRegistrar notification_registrar_; | 39 NotificationRegistrar notification_registrar_; |
| 40 | 40 |
| 41 RenderViewHost* render_view_host_; | 41 RenderViewHost* render_view_host_; |
| 42 | 42 |
| 43 DISALLOW_COPY_AND_ASSIGN(PopupMenuHelper); | 43 DISALLOW_COPY_AND_ASSIGN(PopupMenuHelper); |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 #endif // CHROME_BROWSER_TAB_CONTENTS_POPUP_MENU_HELPER_MAC_H_ | 46 #endif // CHROME_BROWSER_TAB_CONTENTS_POPUP_MENU_HELPER_MAC_H_ |
| OLD | NEW |