| OLD | NEW |
| 1 // Copyright (c) 2009 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 APP_MESSAGE_BOX_FLAGS_H_ | 5 #ifndef UI_BASE_MESSAGE_BOX_FLAGS_H_ |
| 6 #define APP_MESSAGE_BOX_FLAGS_H_ | 6 #define UI_BASE_MESSAGE_BOX_FLAGS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 | 10 |
| 11 namespace ui { |
| 12 |
| 11 // This class contains flags used to communicate the type of message box | 13 // This class contains flags used to communicate the type of message box |
| 12 // to show. E.g., the renderer can request the browser to show a | 14 // to show. E.g., the renderer can request the browser to show a |
| 13 // javascript alert or a javascript confirm message. | 15 // javascript alert or a javascript confirm message. |
| 14 class MessageBoxFlags { | 16 class MessageBoxFlags { |
| 15 public: | 17 public: |
| 16 static const int kFlagHasOKButton = 0x1; | 18 static const int kFlagHasOKButton = 0x1; |
| 17 static const int kFlagHasCancelButton = 0x2; | 19 static const int kFlagHasCancelButton = 0x2; |
| 18 static const int kFlagHasPromptField = 0x4; | 20 static const int kFlagHasPromptField = 0x4; |
| 19 static const int kFlagHasMessage = 0x8; | 21 static const int kFlagHasMessage = 0x8; |
| 20 | 22 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 48 DIALOGBUTTON_NONE = 0, // No dialog buttons, for WindowType == WINDOW. | 50 DIALOGBUTTON_NONE = 0, // No dialog buttons, for WindowType == WINDOW. |
| 49 DIALOGBUTTON_OK = 1, // Has an OK button. | 51 DIALOGBUTTON_OK = 1, // Has an OK button. |
| 50 DIALOGBUTTON_CANCEL = 2, // Has a Cancel button (becomes a Close button if | 52 DIALOGBUTTON_CANCEL = 2, // Has a Cancel button (becomes a Close button if |
| 51 }; // no OK button). | 53 }; // no OK button). |
| 52 | 54 |
| 53 private: | 55 private: |
| 54 MessageBoxFlags() {} | 56 MessageBoxFlags() {} |
| 55 DISALLOW_COPY_AND_ASSIGN(MessageBoxFlags); | 57 DISALLOW_COPY_AND_ASSIGN(MessageBoxFlags); |
| 56 }; | 58 }; |
| 57 | 59 |
| 58 #endif // APP_MESSAGE_BOX_FLAGS_H_ | 60 } // namespace ui |
| 61 |
| 62 #endif // UI_BASE_MESSAGE_BOX_FLAGS_H_ |
| OLD | NEW |