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/chromeos/frame/dom_browser.h" 6 7#include "chrome/browser/chromeos/frame/dom_browser_view.h" 8#include "chrome/browser/ui/browser_window.h" 9 10namespace chromeos { 11 12// DOMBrowser: public ---------------------------------------------------------- 13 14DOMBrowser::DOMBrowser(Profile* profile) 15 : Browser(Browser::TYPE_NORMAL, profile) { 16} 17 18DOMBrowser::~DOMBrowser() { 19} 20 21// static 22DOMBrowser* DOMBrowser::CreateForDOM(Profile* profile) { 23 DOMBrowser* browser = new DOMBrowser(profile); 24 browser->InitBrowserWindow(); 25 return browser; 26} 27 28BrowserWindow* DOMBrowser::CreateBrowserWindow() { 29 return DOMBrowserView::CreateDOMWindow(this); 30} 31 32} // namespace chromeos 33