OLD | NEW |
(Empty) | |
| 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/chromeos/frame/bubble_window.h" |
| 6 |
| 7 #include "chrome/browser/chromeos/frame/bubble_frame_view.h" |
| 8 |
| 9 namespace chromeos { |
| 10 |
| 11 // static |
| 12 const SkColor kBubbleWindowBackgroundColor = SK_ColorWHITE; |
| 13 |
| 14 views::Widget* BubbleWindow::Create( |
| 15 gfx::NativeWindow parent, |
| 16 DialogStyle style, |
| 17 views::WidgetDelegate* widget_delegate) { |
| 18 BubbleWindow* window = new BubbleWindow(style); |
| 19 views::Widget::InitParams params; |
| 20 params.delegate = widget_delegate; |
| 21 params.parent = reinterpret_cast<gfx::NativeView>(parent); |
| 22 window->Init(params); |
| 23 return window; |
| 24 } |
| 25 |
| 26 BubbleWindow::~BubbleWindow() { |
| 27 } |
| 28 |
| 29 views::NonClientFrameView* BubbleWindow::CreateNonClientFrameView() { |
| 30 return new BubbleFrameView(widget_delegate(), style_); |
| 31 } |
| 32 |
| 33 BubbleWindow::BubbleWindow(DialogStyle style) |
| 34 : style_(style) { |
| 35 } |
| 36 |
| 37 } // namespace chromeos |
OLD | NEW |