OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_WINDOW_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_WINDOW_VIEWS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_WINDOW_VIEWS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_WINDOW_VIEWS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/chromeos/frame/bubble_window_style.h" | 9 #include "chrome/browser/chromeos/frame/bubble_window_style.h" |
10 #include "third_party/skia/include/core/SkColor.h" | 10 #include "third_party/skia/include/core/SkColor.h" |
11 #include "views/widget/widget.h" | 11 #include "views/widget/widget.h" |
12 | 12 |
13 namespace views { | 13 namespace views { |
14 class WidgetDelegate; | 14 class WidgetDelegate; |
15 } | 15 } |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 | 18 |
19 // A window that uses BubbleFrameView as its frame. | 19 // A window that uses BubbleFrameView as its frame. |
20 class BubbleWindowViews : public views::Widget { | 20 class BubbleWindowViews : public views::Widget { |
21 public: | 21 public: |
22 static views::Widget* Create(gfx::NativeWindow parent, | 22 void SetBackgroundColor(); |
23 BubbleWindowStyle style, | |
24 views::WidgetDelegate* widget_delegate); | |
25 | 23 |
26 protected: | 24 protected: |
27 explicit BubbleWindowViews(BubbleWindowStyle style); | 25 explicit BubbleWindowViews(BubbleWindowStyle style); |
28 virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE; | 26 virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE; |
29 | 27 |
30 private: | 28 private: |
| 29 friend class BubbleWindow; |
31 BubbleWindowStyle style_; | 30 BubbleWindowStyle style_; |
32 | 31 |
33 DISALLOW_COPY_AND_ASSIGN(BubbleWindowViews); | 32 DISALLOW_COPY_AND_ASSIGN(BubbleWindowViews); |
34 }; | 33 }; |
35 | 34 |
36 } // namespace chromeos | 35 } // namespace chromeos |
37 | 36 |
38 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_WINDOW_VIEWS_H_ | 37 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_WINDOW_VIEWS_H_ |
OLD | NEW |