| 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 #include "content/renderer/external_popup_menu.h" | 5 #include "content/renderer/external_popup_menu.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "build/build_config.h" |
| 7 #include "content/common/frame_messages.h" | 10 #include "content/common/frame_messages.h" |
| 8 #include "content/renderer/menu_item_builder.h" | 11 #include "content/renderer/menu_item_builder.h" |
| 9 #include "content/renderer/render_frame_impl.h" | 12 #include "content/renderer/render_frame_impl.h" |
| 10 #include "third_party/WebKit/public/platform/WebRect.h" | 13 #include "third_party/WebKit/public/platform/WebRect.h" |
| 11 #include "third_party/WebKit/public/web/WebExternalPopupMenuClient.h" | 14 #include "third_party/WebKit/public/web/WebExternalPopupMenuClient.h" |
| 12 | 15 |
| 13 namespace content { | 16 namespace content { |
| 14 | 17 |
| 15 ExternalPopupMenu::ExternalPopupMenu( | 18 ExternalPopupMenu::ExternalPopupMenu( |
| 16 RenderFrameImpl* render_frame, | 19 RenderFrameImpl* render_frame, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 if (!popup_menu_client_) | 80 if (!popup_menu_client_) |
| 78 return; | 81 return; |
| 79 if (canceled) | 82 if (canceled) |
| 80 popup_menu_client_->didCancel(); | 83 popup_menu_client_->didCancel(); |
| 81 else | 84 else |
| 82 popup_menu_client_->didAcceptIndices(indices); | 85 popup_menu_client_->didAcceptIndices(indices); |
| 83 } | 86 } |
| 84 #endif | 87 #endif |
| 85 | 88 |
| 86 } // namespace content | 89 } // namespace content |
| OLD | NEW |