OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/webui/login/browser/dom_browser.h" | 5 #include "chrome/browser/chromeos/frame/dom_browser.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/webui/login/browser/dom_browser_view.h" | 7 #include "chrome/browser/chromeos/frame/dom_browser_view.h" |
8 #include "chrome/browser/ui/browser_window.h" | 8 #include "chrome/browser/ui/browser_window.h" |
9 | 9 |
10 namespace chromeos { | 10 namespace chromeos { |
11 | 11 |
12 // DOMBrowser: public ---------------------------------------------------------- | 12 // DOMBrowser: public ---------------------------------------------------------- |
13 | 13 |
14 DOMBrowser::DOMBrowser(Profile* profile) | 14 DOMBrowser::DOMBrowser(Profile* profile) |
15 : Browser(Browser::TYPE_NORMAL, profile) { | 15 : Browser(Browser::TYPE_NORMAL, profile) { |
16 } | 16 } |
17 | 17 |
18 DOMBrowser::~DOMBrowser() { | 18 DOMBrowser::~DOMBrowser() { |
19 } | 19 } |
20 | 20 |
21 // static | 21 // static |
22 DOMBrowser* DOMBrowser::CreateForDOM(Profile* profile) { | 22 DOMBrowser* DOMBrowser::CreateForDOM(Profile* profile) { |
23 DOMBrowser* browser = new DOMBrowser(profile); | 23 DOMBrowser* browser = new DOMBrowser(profile); |
24 browser->InitBrowserWindow(); | 24 browser->InitBrowserWindow(); |
25 return browser; | 25 return browser; |
26 } | 26 } |
27 | 27 |
28 BrowserWindow* DOMBrowser::CreateBrowserWindow() { | 28 BrowserWindow* DOMBrowser::CreateBrowserWindow() { |
29 return DOMBrowserView::CreateDOMWindow(this); | 29 return DOMBrowserView::CreateDOMWindow(this); |
30 } | 30 } |
31 | 31 |
32 | 32 |
33 } // namespace chromeos | 33 } // namespace chromeos |
OLD | NEW |