This source file includes following definitions.
- CreateBrowserNonClientFrameView
#include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
#include "base/command_line.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h"
#include "chrome/browser/ui/views/frame/popup_non_client_frame_view.h"
#include "chrome/common/chrome_switches.h"
namespace chrome {
BrowserNonClientFrameView* CreateBrowserNonClientFrameView(
BrowserFrame* frame, BrowserView* browser_view) {
Browser::Type type = browser_view->browser()->type();
switch (type) {
case Browser::TYPE_POPUP:
return new PopupNonClientFrameView(frame);
default:
return new OpaqueBrowserFrameView(frame, browser_view);
}
}
}