blob: c319ee8fb719d44c9aee25b97337662f4b8fbfd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/frame/native_browser_frame_factory.h"
#include "chrome/browser/ui/views/frame/desktop_browser_frame_auralinux.h"
#if defined(MOJO_SHELL_CLIENT)
#include "chrome/browser/ui/views/frame/browser_frame_mus.h"
#include "content/public/common/mojo_shell_connection.h"
#endif
NativeBrowserFrame* NativeBrowserFrameFactory::Create(
BrowserFrame* browser_frame,
BrowserView* browser_view) {
#if defined(MOJO_SHELL_CLIENT)
if (content::MojoShellConnection::Get() &&
content::MojoShellConnection::Get()->UsingExternalShell())
return new BrowserFrameMus(browser_frame, browser_view);
#endif
return new DesktopBrowserFrameAuraLinux(browser_frame, browser_view);
}
|