This source file includes following definitions.
- OnBeforeWidgetInit
#include "chrome/browser/ui/ash/test_views_delegate_with_parent.h"
#include "ash/shell.h"
TestViewsDelegateWithParent::TestViewsDelegateWithParent() {
}
TestViewsDelegateWithParent::~TestViewsDelegateWithParent() {
}
void TestViewsDelegateWithParent::OnBeforeWidgetInit(
views::Widget::InitParams* params,
views::internal::NativeWidgetDelegate* delegate) {
if (!params->parent && !params->context) {
params->parent = ash::Shell::GetInstance()->GetPrimaryRootWindow();
}
}