This source file includes following definitions.
- CreateNativeBrowserFrame
- Set
- AdjustHostDesktopType
- ShouldCreateForAshDesktop
#include "chrome/browser/ui/views/frame/native_browser_frame_factory.h"
#include "chrome/browser/ui/views/frame/native_browser_frame.h"
namespace {
NativeBrowserFrameFactory* factory = NULL;
}
NativeBrowserFrame* NativeBrowserFrameFactory::CreateNativeBrowserFrame(
BrowserFrame* browser_frame,
BrowserView* browser_view) {
if (!factory)
factory = new NativeBrowserFrameFactory;
return factory->Create(browser_frame, browser_view);
}
void NativeBrowserFrameFactory::Set(NativeBrowserFrameFactory* new_factory) {
delete factory;
factory = new_factory;
}
#if !defined(OS_WIN)
chrome::HostDesktopType NativeBrowserFrameFactory::AdjustHostDesktopType(
chrome::HostDesktopType desktop_type) {
return desktop_type;
}
#endif
#if !defined(USE_ASH) || defined(OS_CHROMEOS)
bool NativeBrowserFrameFactory::ShouldCreateForAshDesktop(
BrowserView* browser_view) {
NOTREACHED();
return false;
}
#endif