OLD | NEW |
| (Empty) |
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 | |
10 namespace chromeos { | |
11 | |
12 // DOMBrowser: public ---------------------------------------------------------- | |
13 | |
14 DOMBrowser::DOMBrowser(Profile* profile) | |
15 : Browser(Browser::TYPE_TABBED, profile) { | |
16 } | |
17 | |
18 DOMBrowser::~DOMBrowser() { | |
19 } | |
20 | |
21 // static | |
22 DOMBrowser* DOMBrowser::CreateForDOM(Profile* profile) { | |
23 DOMBrowser* browser = new DOMBrowser(profile); | |
24 browser->InitBrowserWindow(); | |
25 return browser; | |
26 } | |
27 | |
28 BrowserWindow* DOMBrowser::CreateBrowserWindow() { | |
29 return DOMBrowserView::CreateDOMWindow(this); | |
30 } | |
31 | |
32 } // namespace chromeos | |
OLD | NEW |