1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_COMMIT_TYPE_H_ 6 #define CHROME_BROWSER_INSTANT_INSTANT_COMMIT_TYPE_H_ 7 #pragma once 8 9 // Enum describing the ways instant can be committed. 10 enum InstantCommitType { 11 // The commit is the result of the user pressing enter or tab. 12 INSTANT_COMMIT_PRESSED_ENTER, 13 14 // The commit is the result of focus being lost. This typically corresponds 15 // to a mouse click event. 16 INSTANT_COMMIT_FOCUS_LOST, 17 18 // Used internally by InstantController. 19 INSTANT_COMMIT_DESTROY 20 }; 21 22 #endif // CHROME_BROWSER_INSTANT_INSTANT_COMMIT_TYPE_H_ 23