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

Unified Diff: chrome/browser/extensions/extension_tabs_apitest.cc

Issue 137993009: Remove more non-aura windows code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: renable the disabled tests Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/download/drag_download_item_views.cc ('k') | chrome/browser/notifications/balloon.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_tabs_apitest.cc
===================================================================
--- chrome/browser/extensions/extension_tabs_apitest.cc (revision 244775)
+++ chrome/browser/extensions/extension_tabs_apitest.cc (working copy)
@@ -14,6 +14,10 @@
#include "chrome/common/url_constants.h"
#include "net/dns/mock_host_resolver.h"
+#if defined(OS_WIN)
+#include "ui/aura/root_window.h"
+#include "ui/aura/window.h"
+#endif
// Window resizes are not completed by the time the callback happens,
// so these tests fail on linux/gtk. http://crbug.com/72369
@@ -227,9 +231,10 @@
ASSERT_TRUE(RunExtensionTest("window_update/resize")) << message_;
}
-#if defined(OS_WIN) && !defined(USE_AURA)
+#if defined(OS_WIN)
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, FocusWindowDoesNotUnmaximize) {
- gfx::NativeWindow window = browser()->window()->GetNativeWindow();
+ HWND window = browser()->window()->GetNativeWindow()->
+ GetDispatcher()->host()->GetAcceleratedWidget();
::SendMessage(window, WM_SYSCOMMAND, SC_MAXIMIZE, 0);
ASSERT_TRUE(RunExtensionTest("window_update/focus")) << message_;
ASSERT_TRUE(::IsZoomed(window));
« no previous file with comments | « chrome/browser/download/drag_download_item_views.cc ('k') | chrome/browser/notifications/balloon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698