summaryrefslogtreecommitdiffstats
path: root/chrome/views/native_control.cc
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-24 22:58:08 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-24 22:58:08 +0000
commit62ca321dd5cd95b7e4fc9de922c2ca0703971361 (patch)
treece782f196bd0933352bffae1130fd365a626ce25 /chrome/views/native_control.cc
parent9d6326fae66278988d0eb3f9d5b44e7d9f31870e (diff)
downloadchromium_src-62ca321dd5cd95b7e4fc9de922c2ca0703971361.zip
chromium_src-62ca321dd5cd95b7e4fc9de922c2ca0703971361.tar.gz
chromium_src-62ca321dd5cd95b7e4fc9de922c2ca0703971361.tar.bz2
Handful of changes to NativeControl, TreeView and TableView I'm going
to need for the bookmark manager. Specifically: . NativeController now delegates OnContextMenu to the ContextMenuController. . TableView allows a NULL model. . TableView::SetColumns was buggy. . Added a method that TableView invokes after painting. . Added methods to TreeView for getting various state information. BUG=674 TEST=make sure the various places in the UI we uses trees and table work fine: cookies table, passwords table, task manager, bookmark editor, search engines. Review URL: http://codereview.chromium.org/8145 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3956 0039d316-1c4b-4281-b951-d872f2087c98
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());