1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/views/frame/native_browser_frame_factory.h"
7 #include "chrome/browser/ui/views/frame/native_browser_frame.h"
11 NativeBrowserFrameFactory
* factory
= nullptr;
16 NativeBrowserFrame
* NativeBrowserFrameFactory::CreateNativeBrowserFrame(
17 BrowserFrame
* browser_frame
,
18 BrowserView
* browser_view
) {
20 factory
= new NativeBrowserFrameFactory
;
21 return factory
->Create(browser_frame
, browser_view
);
25 void NativeBrowserFrameFactory::Set(NativeBrowserFrameFactory
* new_factory
) {
27 factory
= new_factory
;
32 chrome::HostDesktopType
NativeBrowserFrameFactory::AdjustHostDesktopType(
33 chrome::HostDesktopType desktop_type
) {
36 #endif // !defined(OS_WIN)
38 #if !defined(USE_ASH) || defined(OS_CHROMEOS)
40 bool NativeBrowserFrameFactory::ShouldCreateForAshDesktop(
41 BrowserView
* browser_view
) {
45 #endif // !defined(OS_WIN) || !defined(USE_ASH)