blob: ed5259957a93ffb73e5e3aac4f597ccd6c65a07a (
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) 2011 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/window.h"
#include "ui/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
|