| 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_NODE_TYPES_H__ | 5 #ifndef WEBKIT_GLUE_CONTEXT_NODE_TYPES_H__ |
| 6 #define WEBKIT_GLUE_CONTEXT_NODE_TYPES_H__ | 6 #define WEBKIT_GLUE_CONTEXT_NODE_TYPES_H__ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // could be used for more contextual actions. | 98 // could be used for more contextual actions. |
| 99 struct ContextMenuParams { | 99 struct ContextMenuParams { |
| 100 // This is the type of Context Node that the context menu was invoked on. | 100 // This is the type of Context Node that the context menu was invoked on. |
| 101 ContextNodeType node_type; | 101 ContextNodeType node_type; |
| 102 | 102 |
| 103 // These values represent the coordinates of the mouse when the context menu | 103 // These values represent the coordinates of the mouse when the context menu |
| 104 // was invoked. Coords are relative to the associated RenderView's origin. | 104 // was invoked. Coords are relative to the associated RenderView's origin. |
| 105 int x; | 105 int x; |
| 106 int y; | 106 int y; |
| 107 | 107 |
| 108 // The URL of the background image if one was found in the node the context |
| 109 //menu was invoked on. |
| 110 GURL bkg_url; |
| 111 |
| 108 // This is the URL of the link that encloses the node the context menu was | 112 // This is the URL of the link that encloses the node the context menu was |
| 109 // invoked on. | 113 // invoked on. |
| 110 GURL link_url; | 114 GURL link_url; |
| 111 | 115 |
| 112 // The link URL to be used ONLY for "copy link address". We don't validate | 116 // The link URL to be used ONLY for "copy link address". We don't validate |
| 113 // this field in the frontend process. | 117 // this field in the frontend process. |
| 114 GURL unfiltered_link_url; | 118 GURL unfiltered_link_url; |
| 115 | 119 |
| 116 // This is the source URL for the element that the context menu was | 120 // This is the source URL for the element that the context menu was |
| 117 // invoked on. Example of elements with source URLs are img, audio, and | 121 // invoked on. Example of elements with source URLs are img, audio, and |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 179 |
| 176 // The new playback rate to set if the action is SET_PLAYBACK_RATE. | 180 // The new playback rate to set if the action is SET_PLAYBACK_RATE. |
| 177 double playback_rate; | 181 double playback_rate; |
| 178 | 182 |
| 179 MediaPlayerAction() : command(NONE), playback_rate(1.0f) {} | 183 MediaPlayerAction() : command(NONE), playback_rate(1.0f) {} |
| 180 explicit MediaPlayerAction(int c) : command(c), playback_rate(1.0f) {} | 184 explicit MediaPlayerAction(int c) : command(c), playback_rate(1.0f) {} |
| 181 MediaPlayerAction(int c, double rate) : command(c), playback_rate(rate) {} | 185 MediaPlayerAction(int c, double rate) : command(c), playback_rate(rate) {} |
| 182 }; | 186 }; |
| 183 | 187 |
| 184 #endif // WEBKIT_GLUE_CONTEXT_NODE_TYPES_H__ | 188 #endif // WEBKIT_GLUE_CONTEXT_NODE_TYPES_H__ |
| OLD | NEW |