| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_PANELS_PANEL_CONSTANTS_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_CONSTANTS_H_ |
| 6 #define CHROME_BROWSER_UI_PANELS_PANEL_CONSTANTS_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_CONSTANTS_H_ |
| 7 | 7 |
| 8 namespace panel { | 8 namespace panel { |
| 9 | 9 |
| 10 // The height in pixels of the titlebar. | 10 // The height in pixels of the titlebar. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 // The padding in piexles between the icon and the title text. | 40 // The padding in piexles between the icon and the title text. |
| 41 const int kIconAndTitlePadding = 11; | 41 const int kIconAndTitlePadding = 11; |
| 42 | 42 |
| 43 // The padding in piexles between the title text and the button. | 43 // The padding in piexles between the title text and the button. |
| 44 const int kTitleAndButtonPadding = 11; | 44 const int kTitleAndButtonPadding = 11; |
| 45 | 45 |
| 46 // The padding in pixeles between buttons. | 46 // The padding in pixeles between buttons. |
| 47 static const int kButtonPadding = 5; | 47 static const int kButtonPadding = 5; |
| 48 | 48 |
| 49 #if defined(OS_WIN) |
| 49 // The number of times to flash the panel's taskbar icon in order to draw the | 50 // The number of times to flash the panel's taskbar icon in order to draw the |
| 50 // user's attention (Windows only). | 51 // user's attention (Windows only). |
| 51 static const int kNumberOfTimesToFlashPanelForAttention = 30; | 52 static const int kNumberOfTimesToFlashPanelForAttention = 30; |
| 53 #endif |
| 52 | 54 |
| 53 // Different types of buttons that can be shown on panel's titlebar. | 55 // Different types of buttons that can be shown on panel's titlebar. |
| 54 enum TitlebarButtonType { | 56 enum TitlebarButtonType { |
| 55 CLOSE_BUTTON, | 57 CLOSE_BUTTON, |
| 56 MINIMIZE_BUTTON, | 58 MINIMIZE_BUTTON, |
| 57 RESTORE_BUTTON | 59 RESTORE_BUTTON |
| 58 }; | 60 }; |
| 59 | 61 |
| 60 // Different platforms use different modifier keys to change the behavior | 62 // Different platforms use different modifier keys to change the behavior |
| 61 // of a mouse click. This enum captures the meaning of the modifier rather | 63 // of a mouse click. This enum captures the meaning of the modifier rather |
| (...skipping 25 matching lines...) Expand all Loading... |
| 87 enum CornerStyle { | 89 enum CornerStyle { |
| 88 NOT_ROUNDED = 0, | 90 NOT_ROUNDED = 0, |
| 89 TOP_ROUNDED = 0x1, | 91 TOP_ROUNDED = 0x1, |
| 90 BOTTOM_ROUNDED = 0x2, | 92 BOTTOM_ROUNDED = 0x2, |
| 91 ALL_ROUNDED = TOP_ROUNDED | BOTTOM_ROUNDED | 93 ALL_ROUNDED = TOP_ROUNDED | BOTTOM_ROUNDED |
| 92 }; | 94 }; |
| 93 | 95 |
| 94 } // namespace panel | 96 } // namespace panel |
| 95 | 97 |
| 96 #endif // CHROME_BROWSER_UI_PANELS_PANEL_CONSTANTS_H_ | 98 #endif // CHROME_BROWSER_UI_PANELS_PANEL_CONSTANTS_H_ |
| OLD | NEW |