| 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 13 matching lines...) Expand all Loading... |
| 24 #include "chrome/browser/ui/browser.h" | 24 #include "chrome/browser/ui/browser.h" |
| 25 #include "chrome/browser/ui/browser_commands.h" | 25 #include "chrome/browser/ui/browser_commands.h" |
| 26 #include "chrome/browser/ui/browser_tabstrip.h" | 26 #include "chrome/browser/ui/browser_tabstrip.h" |
| 27 #include "chrome/browser/ui/browser_window.h" | 27 #include "chrome/browser/ui/browser_window.h" |
| 28 #include "chrome/browser/ui/omnibox/location_bar.h" | 28 #include "chrome/browser/ui/omnibox/location_bar.h" |
| 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/interactive_test_utils.h" |
| 34 #include "chrome/test/base/in_process_browser_test.h" | 35 #include "chrome/test/base/in_process_browser_test.h" |
| 35 #include "chrome/test/base/ui_test_utils.h" | 36 #include "chrome/test/base/ui_test_utils.h" |
| 36 #include "content/public/browser/notification_service.h" | 37 #include "content/public/browser/notification_service.h" |
| 37 #include "content/public/browser/web_contents.h" | 38 #include "content/public/browser/web_contents.h" |
| 38 #include "net/base/mock_host_resolver.h" | 39 #include "net/base/mock_host_resolver.h" |
| 39 #include "ui/base/events/event_constants.h" | 40 #include "ui/base/events/event_constants.h" |
| 40 #include "ui/base/keycodes/keyboard_codes.h" | 41 #include "ui/base/keycodes/keyboard_codes.h" |
| 41 #include "ui/gfx/point.h" | 42 #include "ui/gfx/point.h" |
| 42 | 43 |
| 43 #if defined(TOOLKIT_GTK) | 44 #if defined(TOOLKIT_GTK) |
| (...skipping 1638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1682 | 1683 |
| 1683 // Middle-clicking shouldn't select all the text either. | 1684 // Middle-clicking shouldn't select all the text either. |
| 1684 ASSERT_NO_FATAL_FAILURE( | 1685 ASSERT_NO_FATAL_FAILURE( |
| 1685 ClickFocusViewOrigin(ui_controls::LEFT, kClickOffset, kClickOffset)); | 1686 ClickFocusViewOrigin(ui_controls::LEFT, kClickOffset, kClickOffset)); |
| 1686 ASSERT_NO_FATAL_FAILURE(ClickBrowserWindowCenter()); | 1687 ASSERT_NO_FATAL_FAILURE(ClickBrowserWindowCenter()); |
| 1687 ASSERT_NO_FATAL_FAILURE( | 1688 ASSERT_NO_FATAL_FAILURE( |
| 1688 ClickFocusViewOrigin(ui_controls::MIDDLE, kClickOffset, kClickOffset)); | 1689 ClickFocusViewOrigin(ui_controls::MIDDLE, kClickOffset, kClickOffset)); |
| 1689 EXPECT_FALSE(omnibox_view->IsSelectAll()); | 1690 EXPECT_FALSE(omnibox_view->IsSelectAll()); |
| 1690 } | 1691 } |
| 1691 #endif // defined(USE_AURA) | 1692 #endif // defined(USE_AURA) |
| OLD | NEW |