Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(453)

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc

Issue 174803002: Move root_window.* to window_event_dispatcher.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "chrome/browser/ui/views/omnibox/omnibox_view_views.h" 5 #include "chrome/browser/ui/views/omnibox/omnibox_view_views.h"
6 6
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/browser_commands.h" 8 #include "chrome/browser/ui/browser_commands.h"
9 #include "chrome/browser/ui/browser_window.h" 9 #include "chrome/browser/ui/browser_window.h"
10 #include "chrome/browser/ui/omnibox/location_bar.h" 10 #include "chrome/browser/ui/omnibox/location_bar.h"
11 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" 11 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h"
12 #include "chrome/browser/ui/view_ids.h" 12 #include "chrome/browser/ui/view_ids.h"
13 #include "chrome/browser/ui/views/frame/browser_view.h" 13 #include "chrome/browser/ui/views/frame/browser_view.h"
14 #include "chrome/test/base/in_process_browser_test.h" 14 #include "chrome/test/base/in_process_browser_test.h"
15 #include "chrome/test/base/interactive_test_utils.h" 15 #include "chrome/test/base/interactive_test_utils.h"
16 #include "grit/generated_resources.h" 16 #include "grit/generated_resources.h"
17 #include "ui/base/clipboard/clipboard.h" 17 #include "ui/base/clipboard/clipboard.h"
18 #include "ui/base/clipboard/scoped_clipboard_writer.h" 18 #include "ui/base/clipboard/scoped_clipboard_writer.h"
19 #include "ui/base/test/ui_controls.h" 19 #include "ui/base/test/ui_controls.h"
20 20
21 #if defined(USE_AURA) 21 #if defined(USE_AURA)
22 #include "ui/aura/root_window.h"
23 #include "ui/aura/test/event_generator.h" 22 #include "ui/aura/test/event_generator.h"
24 #include "ui/aura/window.h" 23 #include "ui/aura/window.h"
24 #include "ui/aura/window_event_dispatcher.h"
25 #include "ui/aura/window_tree_host_delegate.h" 25 #include "ui/aura/window_tree_host_delegate.h"
26 #endif // defined(USE_AURA) 26 #endif // defined(USE_AURA)
27 27
28 class OmniboxViewViewsTest : public InProcessBrowserTest { 28 class OmniboxViewViewsTest : public InProcessBrowserTest {
29 protected: 29 protected:
30 OmniboxViewViewsTest() {} 30 OmniboxViewViewsTest() {}
31 31
32 static void GetOmniboxViewForBrowser(const Browser* browser, 32 static void GetOmniboxViewForBrowser(const Browser* browser,
33 OmniboxView** omnibox_view) { 33 OmniboxView** omnibox_view) {
34 BrowserWindow* window = browser->window(); 34 BrowserWindow* window = browser->window();
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // not there was text under the tap, which appears to be flaky. 215 // not there was text under the tap, which appears to be flaky.
216 216
217 // Take the focus away and tap in the omnibox again, but drag a bit before 217 // Take the focus away and tap in the omnibox again, but drag a bit before
218 // releasing. We should focus the omnibox but not select all of its text. 218 // releasing. We should focus the omnibox but not select all of its text.
219 ASSERT_NO_FATAL_FAILURE(TapBrowserWindowCenter()); 219 ASSERT_NO_FATAL_FAILURE(TapBrowserWindowCenter());
220 ASSERT_NO_FATAL_FAILURE(Tap(tap_location, tap2_location)); 220 ASSERT_NO_FATAL_FAILURE(Tap(tap_location, tap2_location));
221 EXPECT_TRUE(ui_test_utils::IsViewFocused(browser(), VIEW_ID_OMNIBOX)); 221 EXPECT_TRUE(ui_test_utils::IsViewFocused(browser(), VIEW_ID_OMNIBOX));
222 EXPECT_FALSE(omnibox_view->IsSelectAll()); 222 EXPECT_FALSE(omnibox_view->IsSelectAll());
223 } 223 }
224 #endif // defined(USE_AURA) 224 #endif // defined(USE_AURA)
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_views.cc ('k') | chrome/browser/ui/views/screen_capture_notification_ui_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698