Skip to content

Commit

Permalink
Use validating form of IPC enum macros for clipboard messages.
Browse files Browse the repository at this point in the history
This is part of a long-running background task to remove the remaining
uses of the unchecked IPC_ENUM_TRAITS() macro.

BUG=246708

Review URL: https://codereview.chromium.org/159363002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250326 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
tsepez@chromium.org committed Feb 11, 2014
1 parent e518d8c commit d2e7145
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/common/clipboard_messages.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct ParamTraits<ui::Clipboard::FormatType> {

#endif // CONTENT_COMMON_CLIPBOARD_MESSAGES_H_

IPC_ENUM_TRAITS(ui::ClipboardType)
IPC_ENUM_TRAITS_MAX_VALUE(ui::ClipboardType, ui::CLIPBOARD_TYPE_LAST)

// Clipboard IPC messages sent from the renderer to the browser.

Expand Down
3 changes: 2 additions & 1 deletion ui/base/clipboard/clipboard_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ namespace ui {
enum ClipboardType {
CLIPBOARD_TYPE_COPY_PASTE,
CLIPBOARD_TYPE_SELECTION,
CLIPBOARD_TYPE_DRAG
CLIPBOARD_TYPE_DRAG,
CLIPBOARD_TYPE_LAST = CLIPBOARD_TYPE_DRAG
};

} // namespace ui
Expand Down

0 comments on commit d2e7145

Please sign in to comment.