| OLD | NEW |
| 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 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 "content/common/notification_observer.h" | 10 #include "content/common/notification_observer.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // This call is blocking. | 25 // This call is blocking. |
| 26 void ShowPopupMenu(const gfx::Rect& bounds, | 26 void ShowPopupMenu(const gfx::Rect& bounds, |
| 27 int item_height, | 27 int item_height, |
| 28 double item_font_size, | 28 double item_font_size, |
| 29 int selected_item, | 29 int selected_item, |
| 30 const std::vector<WebMenuItem>& items, | 30 const std::vector<WebMenuItem>& items, |
| 31 bool right_aligned); | 31 bool right_aligned); |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 // NotificationObserver implementation: | 34 // NotificationObserver implementation: |
| 35 virtual void Observe(NotificationType type, | 35 virtual void Observe(int type, |
| 36 const NotificationSource& source, | 36 const NotificationSource& source, |
| 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 |