This source file includes following definitions.
- GetOpacityForInitParams
#include "chrome/browser/ui/views/chrome_views_delegate.h"
#include "chrome/browser/ui/ash/ash_util.h"
views::Widget::InitParams::WindowOpacity
ChromeViewsDelegate::GetOpacityForInitParams(
const views::Widget::InitParams& params) {
#if defined(USE_ASH)
gfx::NativeView native_view = params.parent ? params.parent : params.context;
if (native_view && chrome::IsNativeViewInAsh(native_view))
return views::Widget::InitParams::TRANSLUCENT_WINDOW;
#endif
if (params.top_level && params.type != views::Widget::InitParams::TYPE_WINDOW)
return views::Widget::InitParams::TRANSLUCENT_WINDOW;
return views::Widget::InitParams::OPAQUE_WINDOW;
}