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

Side by Side Diff: chrome/test/ui_test_utils_win.cc

Issue 5046002: Cleanup: Include browser.h -> ui/browser.h [Part 2]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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
« no previous file with comments | « chrome/test/ui_test_utils_linux.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/test/ui_test_utils.h" 5 #include "chrome/test/ui_test_utils.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "chrome/browser/browser.h" 9 #include "chrome/browser/automation/ui_controls.h"
10 #include "chrome/browser/browser_window.h" 10 #include "chrome/browser/browser_window.h"
11 #include "chrome/browser/automation/ui_controls.h" 11 #include "chrome/browser/ui/browser.h"
12 #include "chrome/browser/views/frame/browser_view.h" 12 #include "chrome/browser/views/frame/browser_view.h"
13 #include "views/focus/focus_manager.h" 13 #include "views/focus/focus_manager.h"
14 14
15 namespace ui_test_utils { 15 namespace ui_test_utils {
16 16
17 bool IsViewFocused(const Browser* browser, ViewID vid) { 17 bool IsViewFocused(const Browser* browser, ViewID vid) {
18 BrowserWindow* browser_window = browser->window(); 18 BrowserWindow* browser_window = browser->window();
19 DCHECK(browser_window); 19 DCHECK(browser_window);
20 gfx::NativeWindow window = browser_window->GetNativeHandle(); 20 gfx::NativeWindow window = browser_window->GetNativeHandle();
21 DCHECK(window); 21 DCHECK(window);
(...skipping 23 matching lines...) Expand all
45 ::ShowWindow(window, SW_HIDE); 45 ::ShowWindow(window, SW_HIDE);
46 } 46 }
47 47
48 void ShowAndFocusNativeWindow(gfx::NativeWindow window) { 48 void ShowAndFocusNativeWindow(gfx::NativeWindow window) {
49 // TODO(jcampan): retrieve the WidgetWin and show/hide on it instead of 49 // TODO(jcampan): retrieve the WidgetWin and show/hide on it instead of
50 // using Windows API. 50 // using Windows API.
51 ::ShowWindow(window, SW_SHOW); 51 ::ShowWindow(window, SW_SHOW);
52 } 52 }
53 53
54 } // namespace ui_test_utils 54 } // namespace ui_test_utils
OLDNEW
« no previous file with comments | « chrome/test/ui_test_utils_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698