root/chrome/browser/ui/views/frame/native_browser_frame_factory_auralinux.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. Create

// 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_aura.h"

#if defined(USE_ASH)
#include "chrome/browser/ui/views/frame/browser_frame_ash.h"
#endif

NativeBrowserFrame* NativeBrowserFrameFactory::Create(
    BrowserFrame* browser_frame,
    BrowserView* browser_view) {
#if defined(USE_ASH)
  if (ShouldCreateForAshDesktop(browser_view))
    return new BrowserFrameAsh(browser_frame, browser_view);
#endif
  return new DesktopBrowserFrameAura(browser_frame, browser_view);
}

/* [<][>][^][v][top][bottom][index][help] */