blob: ae28ce4c8b64ba1e3b495722babd73406312b2e6 (
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
25
26
27
28
29
|
// Copyright (c) 2010 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/views/window.h"
#include "gfx/rect.h"
#include "views/window/window.h"
#if defined(OS_CHROMEOS)
#include "chrome/browser/chromeos/frame/bubble_window.h"
#endif // defined(OS_CHROMEOS)
namespace browser {
views::Window* CreateViewsWindow(gfx::NativeWindow parent,
const gfx::Rect& bounds,
views::WindowDelegate* delegate) {
#if defined(OS_CHROMEOS)
return chromeos::BubbleWindow::Create(parent,
gfx::Rect(),
chromeos::BubbleWindow::STYLE_GENERIC,
delegate);
#else
return views::Window::CreateChromeWindow(parent, gfx::Rect(), delegate);
#endif
}
} // namespace browser
|