| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "apps/launcher.h" | 9 #include "apps/launcher.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1378 | 1378 |
| 1379 // Now check that the app window's default zoom, and actual zoom level, | 1379 // Now check that the app window's default zoom, and actual zoom level, |
| 1380 // have not been changed from the default. | 1380 // have not been changed from the default. |
| 1381 WebContents* web_contents = GetFirstAppWindowWebContents(); | 1381 WebContents* web_contents = GetFirstAppWindowWebContents(); |
| 1382 content::HostZoomMap* app_host_zoom_map = content::HostZoomMap::Get( | 1382 content::HostZoomMap* app_host_zoom_map = content::HostZoomMap::Get( |
| 1383 web_contents->GetSiteInstance()); | 1383 web_contents->GetSiteInstance()); |
| 1384 EXPECT_EQ(0, app_host_zoom_map->GetDefaultZoomLevel()); | 1384 EXPECT_EQ(0, app_host_zoom_map->GetDefaultZoomLevel()); |
| 1385 EXPECT_EQ(0, app_host_zoom_map->GetZoomLevel(web_contents)); | 1385 EXPECT_EQ(0, app_host_zoom_map->GetZoomLevel(web_contents)); |
| 1386 } | 1386 } |
| 1387 | 1387 |
| 1388 // This test will flake until we fix the underlying issue: |
| 1389 // https://crbug.com/620194. |
| 1390 #define MAYBE_AppWindowIframe DISABLED_AppWindowIframe |
| 1391 // Sends chrome.test.sendMessage from chrome.app.window.create's callback. |
| 1392 // The app window also adds an <iframe> to the page during window.onload. |
| 1393 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_AppWindowIframe) { |
| 1394 LoadAndLaunchPlatformApp("app_window_send_message", |
| 1395 "APP_WINDOW_CREATE_CALLBACK"); |
| 1396 } |
| 1397 |
| 1388 } // namespace extensions | 1398 } // namespace extensions |
| OLD | NEW |