| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_COMMON_MESSAGE_BOX_FLAGS_H_ | 5 #ifndef APP_MESSAGE_BOX_FLAGS_H_ |
| 6 #define CHROME_COMMON_MESSAGE_BOX_FLAGS_H_ | 6 #define APP_MESSAGE_BOX_FLAGS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 // This class contains flags used to communicate the type of message box | 10 // This class contains flags used to communicate the type of message box |
| 11 // to show. E.g., the renderer can request the browser to show a | 11 // to show. E.g., the renderer can request the browser to show a |
| 12 // javascript alert or a javascript confirm message. | 12 // javascript alert or a javascript confirm message. |
| 13 class MessageBoxFlags { | 13 class MessageBoxFlags { |
| 14 public: | 14 public: |
| 15 static const int kFlagHasOKButton = 0x1; | 15 static const int kFlagHasOKButton = 0x1; |
| 16 static const int kFlagHasCancelButton = 0x2; | 16 static const int kFlagHasCancelButton = 0x2; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 47 DIALOGBUTTON_NONE = 0, // No dialog buttons, for WindowType == WINDOW. | 47 DIALOGBUTTON_NONE = 0, // No dialog buttons, for WindowType == WINDOW. |
| 48 DIALOGBUTTON_OK = 1, // Has an OK button. | 48 DIALOGBUTTON_OK = 1, // Has an OK button. |
| 49 DIALOGBUTTON_CANCEL = 2, // Has a Cancel button (becomes a Close button if | 49 DIALOGBUTTON_CANCEL = 2, // Has a Cancel button (becomes a Close button if |
| 50 }; // no OK button). | 50 }; // no OK button). |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 MessageBoxFlags() {} | 53 MessageBoxFlags() {} |
| 54 DISALLOW_COPY_AND_ASSIGN(MessageBoxFlags); | 54 DISALLOW_COPY_AND_ASSIGN(MessageBoxFlags); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 #endif // CHROME_COMMON_MESSAGE_BOX_FLAGS_H_ | 57 #endif // APP_MESSAGE_BOX_FLAGS_H_ |
| OLD | NEW |