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_STYLE_H_ | 5 #ifndef CHROME_BROWSER_UI_DIALOG_STYLE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_WINDOW_STYLE_H_ | 6 #define CHROME_BROWSER_UI_DIALOG_STYLE_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 | 10 |
11 namespace chromeos { | |
12 | |
13 // A class to share common definitions between GTK and Views implementations. | 11 // A class to share common definitions between GTK and Views implementations. |
14 enum BubbleWindowStyle { | 12 enum DialogStyle { |
15 // Default style. | 13 // Default style. |
16 STYLE_GENERIC = 0, | 14 STYLE_GENERIC = 0, |
17 | 15 |
| 16 #if defined(OS_CHROMEOS) |
18 // Show close button at the top right (left for RTL). | 17 // Show close button at the top right (left for RTL). |
19 // Deprecated, see BubbleWindow::Create(). | 18 // Deprecated, see BubbleWindow::Create(). |
| 19 // TODO(bshe): We probably need to use this style for certificate viewer |
| 20 // HTML dialog. |
20 STYLE_XBAR = 1 << 0, | 21 STYLE_XBAR = 1 << 0, |
21 | 22 |
22 // Show throbber for slow rendering. | 23 // Show throbber for slow rendering. |
23 // Deprecated, see BubbleWindow::Create(). | 24 // Deprecated, see BubbleWindow::Create(). |
24 STYLE_THROBBER = 1 << 1, | 25 STYLE_THROBBER = 1 << 1, |
25 | 26 |
26 // Content flush to edge, no padding. | 27 // Content flush to edge, no padding. |
27 STYLE_FLUSH = 1 << 2 | 28 STYLE_FLUSH = 1 << 2 |
| 29 #endif |
| 30 |
28 }; | 31 }; |
29 | 32 |
30 extern const SkColor kBubbleWindowBackgroundColor; | 33 #endif // CHROME_BROWSER_UI_DIALOG_STYLE_H_ |
31 | |
32 } // namespace chromeos | |
33 | |
34 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_WINDOW_STYLE_H_ | |
OLD | NEW |