diff options
Diffstat (limited to 'chrome/browser/ui/views/window.cc')
-rw-r--r-- | chrome/browser/ui/views/window.cc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/chrome/browser/ui/views/window.cc b/chrome/browser/ui/views/window.cc new file mode 100644 index 0000000..ae28ce4 --- /dev/null +++ b/chrome/browser/ui/views/window.cc @@ -0,0 +1,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 |