This source file includes following definitions.
- GetClassName
- OnPaintBackground
#include "chrome/browser/ui/views/frame/top_container_view.h"
#include "chrome/browser/ui/views/frame/browser_frame.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/frame/immersive_mode_controller.h"
TopContainerView::TopContainerView(BrowserView* browser_view)
: browser_view_(browser_view) {
}
TopContainerView::~TopContainerView() {
}
const char* TopContainerView::GetClassName() const {
return "TopContainerView";
}
void TopContainerView::OnPaintBackground(gfx::Canvas* canvas) {
if (browser_view_->immersive_mode_controller()->IsRevealed()) {
views::View* frame = browser_view_->frame()->GetFrameView();
frame->Paint(canvas);
}
}