summaryrefslogtreecommitdiffstats
path: root/webkit/glue/context_menu.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/context_menu.h')
-rw-r--r--webkit/glue/context_menu.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/webkit/glue/context_menu.h b/webkit/glue/context_menu.h
index 45a91e8..e8441e56 100644
--- a/webkit/glue/context_menu.h
+++ b/webkit/glue/context_menu.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -19,6 +19,11 @@ namespace webkit_glue {
struct CustomContextMenuContext {
bool is_pepper_menu;
int request_id;
+ // The routing ID of the render widget on which the context menu is shown.
+ // It could also be |kCurrentRenderWidget|, which means the render widget that
+ // the corresponding ViewHostMsg_ContextMenu is sent to.
+ int32 render_widget_id;
+ static const int32 kCurrentRenderWidget;
CustomContextMenuContext();
};