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/ui/views/window.h" 6 7 #include "ui/gfx/rect.h" 8 #include "views/window/window.h" 9 10 #if defined(OS_CHROMEOS) 11 #include "chrome/browser/chromeos/frame/bubble_window.h" 12 #endif // defined(OS_CHROMEOS) 13 14 namespace browser { 15 16 views::Window* CreateViewsWindow(gfx::NativeWindow parent, 17 const gfx::Rect& bounds, 18 views::WindowDelegate* delegate) { 19 #if defined(OS_CHROMEOS) 20 return chromeos::BubbleWindow::Create(parent, 21 gfx::Rect(), 22 chromeos::BubbleWindow::STYLE_GENERIC, 23 delegate); 24 #else 25 return views::Window::CreateChromeWindow(parent, gfx::Rect(), delegate); 26 #endif 27 } 28 29 } // namespace browser 30