| Index: chrome/views/view.cc
|
| ===================================================================
|
| --- chrome/views/view.cc (revision 11412)
|
| +++ chrome/views/view.cc (working copy)
|
| @@ -1490,6 +1490,14 @@
|
| return kViewClassName;
|
| }
|
|
|
| +View* View::GetAncestorWithClassName(const std::string& name) {
|
| + for (View* view = this; view; view = view->GetParent()) {
|
| + if (view->GetClassName() == name)
|
| + return view;
|
| + }
|
| + return NULL;
|
| +}
|
| +
|
| gfx::Rect View::GetVisibleBounds() {
|
| if (!IsVisibleInRootView())
|
| return gfx::Rect();
|
|
|