| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 WEBKIT_GLUE_CONTEXT_MENU_H_ | 5 #ifndef WEBKIT_GLUE_CONTEXT_MENU_H_ |
| 6 #define WEBKIT_GLUE_CONTEXT_MENU_H_ | 6 #define WEBKIT_GLUE_CONTEXT_MENU_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
| 13 #include "webkit/api/public/WebContextMenuData.h" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebContextMenuData.h" |
| 14 | 14 |
| 15 // Parameters structure for ViewHostMsg_ContextMenu. | 15 // Parameters structure for ViewHostMsg_ContextMenu. |
| 16 // FIXME(beng): This would be more useful in the future and more efficient | 16 // FIXME(beng): This would be more useful in the future and more efficient |
| 17 // if the parameters here weren't so literally mapped to what | 17 // if the parameters here weren't so literally mapped to what |
| 18 // they contain for the ContextMenu task. It might be better | 18 // they contain for the ContextMenu task. It might be better |
| 19 // to make the string fields more generic so that this object | 19 // to make the string fields more generic so that this object |
| 20 // could be used for more contextual actions. | 20 // could be used for more contextual actions. |
| 21 struct ContextMenuParams { | 21 struct ContextMenuParams { |
| 22 // This is the type of Context Node that the context menu was invoked on. | 22 // This is the type of Context Node that the context menu was invoked on. |
| 23 WebKit::WebContextMenuData::MediaType media_type; | 23 WebKit::WebContextMenuData::MediaType media_type; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 selection_text(UTF16ToWideHack(data.selectedText)), | 96 selection_text(UTF16ToWideHack(data.selectedText)), |
| 97 misspelled_word(data.misspelledWord), | 97 misspelled_word(data.misspelledWord), |
| 98 spellcheck_enabled(data.isSpellCheckingEnabled), | 98 spellcheck_enabled(data.isSpellCheckingEnabled), |
| 99 is_editable(data.isEditable), | 99 is_editable(data.isEditable), |
| 100 edit_flags(data.editFlags), | 100 edit_flags(data.editFlags), |
| 101 security_info(data.securityInfo), | 101 security_info(data.securityInfo), |
| 102 frame_charset(data.frameEncoding.utf8()) {} | 102 frame_charset(data.frameEncoding.utf8()) {} |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 #endif // WEBKIT_GLUE_CONTEXT_MENU_H_ | 105 #endif // WEBKIT_GLUE_CONTEXT_MENU_H_ |
| OLD | NEW |