1 // Copyright 2014 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/browser_frame.h"
6 #include "chrome/browser/ui/views/frame/browser_view.h"
7 #include "chrome/browser/ui/views/frame/native_browser_frame_factory.h"
8 #include "chrome/grit/chromium_strings.h"
9 #include "ui/base/l10n/l10n_util.h"
10 #include "ui/views/widget/widget.h"
13 BrowserWindow
* BrowserWindow::CreateBrowserWindow(Browser
* browser
) {
14 // Create the view and the frame. The frame will attach itself via the view
15 // so we don't need to do anything with the pointer.
16 BrowserView
* view
= new BrowserView();
18 (new BrowserFrame(view
))->InitBrowserFrame();
19 view
->GetWidget()->non_client_view()->SetAccessibleName(
20 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME
));
25 chrome::HostDesktopType
BrowserWindow::AdjustHostDesktopType(
26 chrome::HostDesktopType desktop_type
) {
27 return NativeBrowserFrameFactory::AdjustHostDesktopType(desktop_type
);