OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include <stdio.h> | 5 #include <stdio.h> |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/string16.h" | 8 #include "base/string16.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "ui/base/events.h" | 37 #include "ui/base/events.h" |
38 #include "ui/base/keycodes/keyboard_codes.h" | 38 #include "ui/base/keycodes/keyboard_codes.h" |
39 | 39 |
40 #if defined(TOOLKIT_USES_GTK) | 40 #if defined(TOOLKIT_USES_GTK) |
41 #include <gdk/gdk.h> | 41 #include <gdk/gdk.h> |
42 #include <gtk/gtk.h> | 42 #include <gtk/gtk.h> |
43 #endif | 43 #endif |
44 | 44 |
45 #if defined(TOOLKIT_VIEWS) | 45 #if defined(TOOLKIT_VIEWS) |
46 #include "ui/views/events/event.h" | 46 #include "ui/views/events/event.h" |
| 47 #include "ui/views/widget/widget.h" |
47 #include "views/controls/textfield/native_textfield_views.h" | 48 #include "views/controls/textfield/native_textfield_views.h" |
48 #include "views/widget/widget.h" | |
49 #endif | 49 #endif |
50 | 50 |
51 using base::Time; | 51 using base::Time; |
52 using base::TimeDelta; | 52 using base::TimeDelta; |
53 | 53 |
54 namespace { | 54 namespace { |
55 | 55 |
56 const char kSearchKeyword[] = "foo"; | 56 const char kSearchKeyword[] = "foo"; |
57 const wchar_t kSearchKeywordKeys[] = { | 57 const wchar_t kSearchKeywordKeys[] = { |
58 ui::VKEY_F, ui::VKEY_O, ui::VKEY_O, 0 | 58 ui::VKEY_F, ui::VKEY_O, ui::VKEY_O, 0 |
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1408 PersistKeywordModeOnTabSwitch) { | 1408 PersistKeywordModeOnTabSwitch) { |
1409 PersistKeywordModeOnTabSwitch(); | 1409 PersistKeywordModeOnTabSwitch(); |
1410 } | 1410 } |
1411 | 1411 |
1412 IN_PROC_BROWSER_TEST_F(OmniboxViewViewsTest, | 1412 IN_PROC_BROWSER_TEST_F(OmniboxViewViewsTest, |
1413 CtrlKeyPressedWithInlineAutocompleteTest) { | 1413 CtrlKeyPressedWithInlineAutocompleteTest) { |
1414 CtrlKeyPressedWithInlineAutocompleteTest(); | 1414 CtrlKeyPressedWithInlineAutocompleteTest(); |
1415 } | 1415 } |
1416 | 1416 |
1417 #endif | 1417 #endif |
OLD | NEW |