summaryrefslogtreecommitdiffstats
path: root/chrome/views/native_control.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/native_control.cc')
-rw-r--r--chrome/views/native_control.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/views/native_control.cc b/chrome/views/native_control.cc
index 8fdcb39..04a23fd 100644
--- a/chrome/views/native_control.cc
+++ b/chrome/views/native_control.cc
@@ -254,6 +254,14 @@ void NativeControl::Layout() {
}
}
+void NativeControl::OnContextMenu(const CPoint& location) {
+ if (!GetContextMenuController())
+ return;
+
+ GetContextMenuController()->ShowContextMenu(
+ this, location.x, location.y, true);
+}
+
void NativeControl::Focus() {
if (container_) {
DCHECK(container_->GetControl());