summaryrefslogtreecommitdiffstats
path: root/chrome/views/view.h
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-09 20:55:54 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-09 20:55:54 +0000
commit5c2b98bd412b23db58345799a625b406b858ad4f (patch)
tree0e5dc8d2e4368d8d90e8d0367c5350794b610a36 /chrome/views/view.h
parentbc2f935b5525528f5b2c90c8de3a94be7d56b369 (diff)
downloadchromium_src-5c2b98bd412b23db58345799a625b406b858ad4f.zip
chromium_src-5c2b98bd412b23db58345799a625b406b858ad4f.tar.gz
chromium_src-5c2b98bd412b23db58345799a625b406b858ad4f.tar.bz2
Fixes crash in ResizeCorner. ResizeCorner was caching the BrowserView
that created it, but if a tab contained a download shelf and was dragged to a new window the ResizeCorner would be referencing the wrong BrowserView. I've changed the code to look up the ancestor BrowserView as necessary. BUG=8477 TEST=see bug Review URL: http://codereview.chromium.org/41010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11285 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/view.h')
-rw-r--r--chrome/views/view.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/views/view.h b/chrome/views/view.h
index 824eb3f..9d9a1f7 100644
--- a/chrome/views/view.h
+++ b/chrome/views/view.h
@@ -940,6 +940,10 @@ class View : public AcceleratorTarget {
// subclass. The default implementation returns kViewClassName.
virtual std::string GetClassName() const;
+ // Returns the first ancestor, starting at this, whose class name is |name|.
+ // Returns null if no ancestor has the class name |name|.
+ View* GetAncestorWithClassName(const std::string& name);
+
// Returns the visible bounds of the receiver in the receivers coordinate
// system.
//