summaryrefslogtreecommitdiffstats
path: root/chrome/common/omnibox_focus_state.h
diff options
context:
space:
mode:
authoranujk.sharma <anujk.sharma@samsung.com>2014-10-09 05:16:30 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-09 12:16:49 +0000
commitef612ee574ecdff8d6d691f613cd6dac033db85c (patch)
treefb6f8bf87705671a0d4777b15a2b884e710927ec /chrome/common/omnibox_focus_state.h
parentc345bef7a71167b58d51172047365dade2ef1002 (diff)
downloadchromium_src-ef612ee574ecdff8d6d691f613cd6dac033db85c.zip
chromium_src-ef612ee574ecdff8d6d691f613cd6dac033db85c.tar.gz
chromium_src-ef612ee574ecdff8d6d691f613cd6dac033db85c.tar.bz2
Apply automatic range checks to content enum types across IPC.
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/638013002 Cr-Commit-Position: refs/heads/master@{#298853}
Diffstat (limited to 'chrome/common/omnibox_focus_state.h')
-rw-r--r--chrome/common/omnibox_focus_state.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/omnibox_focus_state.h b/chrome/common/omnibox_focus_state.h
index cddcf96..593399d 100644
--- a/chrome/common/omnibox_focus_state.h
+++ b/chrome/common/omnibox_focus_state.h
@@ -18,6 +18,8 @@ enum OmniboxFocusState {
// Omnibox will not look focused visibly but any user key strokes will go to
// the omnibox.
OMNIBOX_FOCUS_INVISIBLE,
+
+ OMNIBOX_FOCUS_STATE_LAST = OMNIBOX_FOCUS_INVISIBLE
};
// Reasons why the Omnibox focus state could change.
@@ -33,6 +35,8 @@ enum OmniboxFocusChangeReason {
// Focus changed because user started typing. This only happens when focus
// state is INVISIBLE (and this results in a change to VISIBLE).
OMNIBOX_FOCUS_CHANGE_TYPING,
+
+ OMNIBOX_FOCUS_CHANGE_REASON_LAST = OMNIBOX_FOCUS_CHANGE_TYPING
};
#endif // CHROME_COMMON_OMNIBOX_FOCUS_STATE_H_