| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_EXTERNAL_POPUP_MENU_H_ | 5 #ifndef CONTENT_RENDERER_EXTERNAL_POPUP_MENU_H_ |
| 6 #define CONTENT_RENDERER_EXTERNAL_POPUP_MENU_H_ | 6 #define CONTENT_RENDERER_EXTERNAL_POPUP_MENU_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExternalPopupMenu.
h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExternalPopupMenu.
h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenuInfo.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenuInfo.h" |
| 13 | 13 |
| 14 class RenderViewImpl; | |
| 15 namespace WebKit { | 14 namespace WebKit { |
| 16 class WebExternalPopupMenuClient; | 15 class WebExternalPopupMenuClient; |
| 17 } | 16 } |
| 18 | 17 |
| 18 namespace content { |
| 19 class RenderViewImpl; |
| 20 |
| 19 class ExternalPopupMenu : public WebKit::WebExternalPopupMenu { | 21 class ExternalPopupMenu : public WebKit::WebExternalPopupMenu { |
| 20 public: | 22 public: |
| 21 ExternalPopupMenu(RenderViewImpl* render_view, | 23 ExternalPopupMenu(RenderViewImpl* render_view, |
| 22 const WebKit::WebPopupMenuInfo& popup_menu_info, | 24 const WebKit::WebPopupMenuInfo& popup_menu_info, |
| 23 WebKit::WebExternalPopupMenuClient* popup_menu_client); | 25 WebKit::WebExternalPopupMenuClient* popup_menu_client); |
| 24 | 26 |
| 25 virtual ~ExternalPopupMenu() {} | 27 virtual ~ExternalPopupMenu() {} |
| 26 | 28 |
| 27 #if defined(OS_MACOSX) | 29 #if defined(OS_MACOSX) |
| 28 // Called when the user has selected an item. |selected_item| is -1 if the | 30 // Called when the user has selected an item. |selected_item| is -1 if the |
| (...skipping 11 matching lines...) Expand all Loading... |
| 40 virtual void close(); | 42 virtual void close(); |
| 41 | 43 |
| 42 private: | 44 private: |
| 43 RenderViewImpl* render_view_; | 45 RenderViewImpl* render_view_; |
| 44 WebKit::WebPopupMenuInfo popup_menu_info_; | 46 WebKit::WebPopupMenuInfo popup_menu_info_; |
| 45 WebKit::WebExternalPopupMenuClient* popup_menu_client_; | 47 WebKit::WebExternalPopupMenuClient* popup_menu_client_; |
| 46 | 48 |
| 47 DISALLOW_COPY_AND_ASSIGN(ExternalPopupMenu); | 49 DISALLOW_COPY_AND_ASSIGN(ExternalPopupMenu); |
| 48 }; | 50 }; |
| 49 | 51 |
| 52 } // namespace content |
| 53 |
| 50 #endif // CONTENT_RENDERER_EXTERNAL_POPUP_MENU_H_ | 54 #endif // CONTENT_RENDERER_EXTERNAL_POPUP_MENU_H_ |
| OLD | NEW |