| 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 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "ppapi/c/pp_completion_callback.h" | 8 #include "ppapi/c/pp_completion_callback.h" |
| 9 #include "ui/gfx/point.h" | 9 #include "ui/gfx/point.h" |
| 10 #include "webkit/glue/webmenuitem.h" | 10 #include "webkit/glue/webmenuitem.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 out_menu->push_back(item); | 91 out_menu->push_back(item); |
| 92 } | 92 } |
| 93 | 93 |
| 94 return true; | 94 return true; |
| 95 } | 95 } |
| 96 | 96 |
| 97 } // namespace | 97 } // namespace |
| 98 | 98 |
| 99 PPB_Flash_Menu_Impl::PPB_Flash_Menu_Impl(PP_Instance instance) | 99 PPB_Flash_Menu_Impl::PPB_Flash_Menu_Impl(PP_Instance instance) |
| 100 : Resource(instance), | 100 : Resource(::ppapi::OBJECT_IS_IMPL, instance), |
| 101 selected_id_out_(NULL) { | 101 selected_id_out_(NULL) { |
| 102 } | 102 } |
| 103 | 103 |
| 104 PPB_Flash_Menu_Impl::~PPB_Flash_Menu_Impl() { | 104 PPB_Flash_Menu_Impl::~PPB_Flash_Menu_Impl() { |
| 105 } | 105 } |
| 106 | 106 |
| 107 // static | 107 // static |
| 108 PP_Resource PPB_Flash_Menu_Impl::Create(PP_Instance instance, | 108 PP_Resource PPB_Flash_Menu_Impl::Create(PP_Instance instance, |
| 109 const PP_Flash_Menu* menu_data) { | 109 const PP_Flash_Menu* menu_data) { |
| 110 scoped_refptr<PPB_Flash_Menu_Impl> menu(new PPB_Flash_Menu_Impl(instance)); | 110 scoped_refptr<PPB_Flash_Menu_Impl> menu(new PPB_Flash_Menu_Impl(instance)); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 } | 180 } |
| 181 } | 181 } |
| 182 } | 182 } |
| 183 | 183 |
| 184 selected_id_out_ = NULL; | 184 selected_id_out_ = NULL; |
| 185 TrackedCallback::ClearAndRun(&callback_, rv); | 185 TrackedCallback::ClearAndRun(&callback_, rv); |
| 186 } | 186 } |
| 187 | 187 |
| 188 } // namespace ppapi | 188 } // namespace ppapi |
| 189 } // namespace webkit | 189 } // namespace webkit |
| OLD | NEW |