Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6724)

Unified Diff: chrome/browser/views/window.cc

Issue 3538012: Use BubbleWindow for ChromeOS windows/dialogs. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: fix win trybot Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/views/window.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/window.cc
diff --git a/chrome/browser/views/window.cc b/chrome/browser/views/window.cc
new file mode 100644
index 0000000000000000000000000000000000000000..bd8a304f6fb2036ee9b99a9a72cf97ea73c604a7
--- /dev/null
+++ b/chrome/browser/views/window.cc
@@ -0,0 +1,26 @@
+// 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(), delegate);
+#else
+ return views::Window::CreateChromeWindow(parent, gfx::Rect(), delegate);
+#endif
+}
+
+} // namespace browser
« no previous file with comments | « chrome/browser/views/window.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698