| 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 #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 18 matching lines...) Expand all Loading... |
| 29 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" | 29 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" |
| 30 #include "chrome/browser/ui/omnibox/omnibox_view.h" | 30 #include "chrome/browser/ui/omnibox/omnibox_view.h" |
| 31 #include "chrome/common/chrome_notification_types.h" | 31 #include "chrome/common/chrome_notification_types.h" |
| 32 #include "chrome/common/chrome_paths.h" | 32 #include "chrome/common/chrome_paths.h" |
| 33 #include "chrome/common/url_constants.h" | 33 #include "chrome/common/url_constants.h" |
| 34 #include "chrome/test/base/in_process_browser_test.h" | 34 #include "chrome/test/base/in_process_browser_test.h" |
| 35 #include "chrome/test/base/ui_test_utils.h" | 35 #include "chrome/test/base/ui_test_utils.h" |
| 36 #include "content/public/browser/notification_service.h" | 36 #include "content/public/browser/notification_service.h" |
| 37 #include "content/public/browser/web_contents.h" | 37 #include "content/public/browser/web_contents.h" |
| 38 #include "net/base/mock_host_resolver.h" | 38 #include "net/base/mock_host_resolver.h" |
| 39 #include "ui/base/events.h" | 39 #include "ui/base/events/event_constants.h" |
| 40 #include "ui/base/keycodes/keyboard_codes.h" | 40 #include "ui/base/keycodes/keyboard_codes.h" |
| 41 #include "ui/gfx/point.h" | 41 #include "ui/gfx/point.h" |
| 42 | 42 |
| 43 #if defined(TOOLKIT_GTK) | 43 #if defined(TOOLKIT_GTK) |
| 44 #include <gdk/gdk.h> | 44 #include <gdk/gdk.h> |
| 45 #include <gtk/gtk.h> | 45 #include <gtk/gtk.h> |
| 46 #endif | 46 #endif |
| 47 | 47 |
| 48 #if defined(USE_AURA) | 48 #if defined(USE_AURA) |
| 49 #include "chrome/browser/ui/views/frame/browser_view.h" | 49 #include "chrome/browser/ui/views/frame/browser_view.h" |
| (...skipping 1620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1670 | 1670 |
| 1671 // Middle-clicking shouldn't select all the text either. | 1671 // Middle-clicking shouldn't select all the text either. |
| 1672 ASSERT_NO_FATAL_FAILURE( | 1672 ASSERT_NO_FATAL_FAILURE( |
| 1673 ClickFocusViewOrigin(ui_controls::LEFT, kClickOffset, kClickOffset)); | 1673 ClickFocusViewOrigin(ui_controls::LEFT, kClickOffset, kClickOffset)); |
| 1674 ASSERT_NO_FATAL_FAILURE(ClickBrowserWindowCenter()); | 1674 ASSERT_NO_FATAL_FAILURE(ClickBrowserWindowCenter()); |
| 1675 ASSERT_NO_FATAL_FAILURE( | 1675 ASSERT_NO_FATAL_FAILURE( |
| 1676 ClickFocusViewOrigin(ui_controls::MIDDLE, kClickOffset, kClickOffset)); | 1676 ClickFocusViewOrigin(ui_controls::MIDDLE, kClickOffset, kClickOffset)); |
| 1677 EXPECT_FALSE(omnibox_view->IsSelectAll()); | 1677 EXPECT_FALSE(omnibox_view->IsSelectAll()); |
| 1678 } | 1678 } |
| 1679 #endif // defined(USE_AURA) | 1679 #endif // defined(USE_AURA) |
| OLD | NEW |