| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_INSTANT_INSTANT_COMMIT_TYPE_H_ | 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_COMMIT_TYPE_H_ |
| 6 #define CHROME_BROWSER_INSTANT_INSTANT_COMMIT_TYPE_H_ | 6 #define CHROME_BROWSER_INSTANT_INSTANT_COMMIT_TYPE_H_ |
| 7 | 7 |
| 8 // Reason why the Instant preview is committed (merged into a tab). | 8 // Reason why the Instant preview is committed (merged into a tab). |
| 9 enum InstantCommitType { | 9 enum InstantCommitType { |
| 10 // The commit is due to the user pressing enter or tab from the omnibox. | 10 // The commit is due to the user pressing Enter from the omnibox. |
| 11 INSTANT_COMMIT_PRESSED_ENTER, | 11 INSTANT_COMMIT_PRESSED_ENTER, |
| 12 | 12 |
| 13 // The commit is due to the omnibox losing focus, usually due to the user | 13 // The commit is due to the omnibox losing focus, usually due to the user |
| 14 // clicking on the preview. | 14 // clicking on the preview. |
| 15 INSTANT_COMMIT_FOCUS_LOST, | 15 INSTANT_COMMIT_FOCUS_LOST, |
| 16 | |
| 17 // Used internally by InstantController. | |
| 18 INSTANT_COMMIT_DESTROY | |
| 19 }; | 16 }; |
| 20 | 17 |
| 21 #endif // CHROME_BROWSER_INSTANT_INSTANT_COMMIT_TYPE_H_ | 18 #endif // CHROME_BROWSER_INSTANT_INSTANT_COMMIT_TYPE_H_ |
| OLD | NEW |