1// Copyright (c) 2011 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. 4 5#include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" 6 7#include "chrome/browser/chromeos/frame/browser_frame_view_chromeos.h" 8#include "chrome/browser/ui/views/frame/browser_view.h" 9#include "chrome/browser/ui/views/frame/popup_non_client_frame_view.h" 10 11namespace browser { 12 13BrowserNonClientFrameView* CreateBrowserNonClientFrameView( 14 BrowserFrame* frame, BrowserView* browser_view) { 15 if (browser_view->IsBrowserTypePopup()) 16 return new PopupNonClientFrameView(); 17 else 18 return new chromeos::BrowserFrameViewChromeos(frame, browser_view); 19} 20 21} // browser 22