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

Side by Side Diff: chrome/browser/chromeos/frame/bubble_window.cc

Issue 8800032: Make BubbleWindow a Widget override with a BubbleFrameView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comment. Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 views::NonClientFrameView* BubbleWindow::CreateNonClientFrameView() {
27 return new BubbleFrameView(widget_delegate(), style_);
28 }
29
30 BubbleWindow::BubbleWindow(DialogStyle style)
31 : style_(style) {
32 }
33
34 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698