OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_WINDOW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_WINDOW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_WINDOW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "third_party/skia/include/core/SkColor.h" | 9 #include "third_party/skia/include/core/SkColor.h" |
10 #include "views/window/window_gtk.h" | 10 #include "views/window/window_gtk.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 }; | 31 }; |
32 | 32 |
33 static views::Window* Create(gfx::NativeWindow parent, | 33 static views::Window* Create(gfx::NativeWindow parent, |
34 const gfx::Rect& bounds, | 34 const gfx::Rect& bounds, |
35 Style style, | 35 Style style, |
36 views::WindowDelegate* window_delegate); | 36 views::WindowDelegate* window_delegate); |
37 | 37 |
38 static const SkColor kBackgroundColor; | 38 static const SkColor kBackgroundColor; |
39 | 39 |
40 protected: | 40 protected: |
41 BubbleWindow(); | 41 explicit BubbleWindow(views::Window* window); |
42 | 42 |
43 // Overidden from views::WindowGtk: | 43 // Overidden from views::WindowGtk: |
44 virtual void InitNativeWidget( | 44 virtual void InitNativeWidget( |
45 const views::Widget::InitParams& params) OVERRIDE; | 45 const views::Widget::InitParams& params) OVERRIDE; |
46 | 46 |
47 // Trims the window margins and rounds off the corners. | 47 // Trims the window margins and rounds off the corners. |
48 void TrimMargins(int margin_left, int margin_right, int margin_top, | 48 void TrimMargins(int margin_left, int margin_right, int margin_top, |
49 int margin_bottom, int border_radius); | 49 int margin_bottom, int border_radius); |
50 }; | 50 }; |
51 | 51 |
52 } // namespace chromeos | 52 } // namespace chromeos |
53 | 53 |
54 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_WINDOW_H_ | 54 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_WINDOW_H_ |
OLD | NEW |