| 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 #include "chrome/browser/content_settings/host_content_settings_map.h" | 6 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 7 #include "chrome/browser/fullscreen.h" | 7 #include "chrome/browser/fullscreen.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/browser/ui/browser_commands.h" | 10 #include "chrome/browser/ui/browser_commands.h" |
| 11 #include "chrome/browser/ui/browser_window.h" | 11 #include "chrome/browser/ui/browser_window.h" |
| 12 #include "chrome/browser/ui/fullscreen/fullscreen_controller_test.h" | 12 #include "chrome/browser/ui/fullscreen/fullscreen_controller_test.h" |
| 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 14 #include "chrome/test/base/interactive_test_utils.h" | 14 #include "chrome/test/base/interactive_test_utils.h" |
| 15 #include "chrome/test/base/ui_test_utils.h" | 15 #include "chrome/test/base/ui_test_utils.h" |
| 16 #include "content/public/browser/render_view_host.h" | 16 #include "content/public/browser/render_view_host.h" |
| 17 #include "content/public/browser/render_widget_host_view.h" | 17 #include "content/public/browser/render_widget_host_view.h" |
| 18 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
| 19 #include "content/public/common/url_constants.h" | 19 #include "content/public/common/url_constants.h" |
| 20 | 20 |
| 21 #if defined(OS_MACOSX) | 21 #if defined(OS_MACOSX) |
| 22 #include "base/mac/mac_util.h" | 22 #include "base/mac/mac_util.h" |
| 23 #endif | 23 #endif |
| 24 | 24 |
| 25 using url::kAboutBlankURL; | 25 using url::kAboutBlankURL; |
| 26 using content::WebContents; | 26 using content::WebContents; |
| 27 using content::PAGE_TRANSITION_TYPED; | 27 using ui::PAGE_TRANSITION_TYPED; |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 const base::FilePath::CharType* kSimpleFile = FILE_PATH_LITERAL("simple.html"); | 31 const base::FilePath::CharType* kSimpleFile = FILE_PATH_LITERAL("simple.html"); |
| 32 | 32 |
| 33 } // namespace | 33 } // namespace |
| 34 | 34 |
| 35 class FullscreenControllerInteractiveTest | 35 class FullscreenControllerInteractiveTest |
| 36 : public FullscreenControllerTest { | 36 : public FullscreenControllerTest { |
| 37 protected: | 37 protected: |
| (...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 926 | 926 |
| 927 GURL url = test_server()->GetURL("simple.html"); | 927 GURL url = test_server()->GetURL("simple.html"); |
| 928 AddTabAtIndex(0, url, PAGE_TRANSITION_TYPED); | 928 AddTabAtIndex(0, url, PAGE_TRANSITION_TYPED); |
| 929 | 929 |
| 930 // Validate that going fullscreen for a URL defaults to asking permision. | 930 // Validate that going fullscreen for a URL defaults to asking permision. |
| 931 ASSERT_FALSE(IsFullscreenPermissionRequested()); | 931 ASSERT_FALSE(IsFullscreenPermissionRequested()); |
| 932 ASSERT_NO_FATAL_FAILURE(ToggleTabFullscreenNoRetries(true)); | 932 ASSERT_NO_FATAL_FAILURE(ToggleTabFullscreenNoRetries(true)); |
| 933 ASSERT_TRUE(IsFullscreenPermissionRequested()); | 933 ASSERT_TRUE(IsFullscreenPermissionRequested()); |
| 934 ASSERT_NO_FATAL_FAILURE(ToggleTabFullscreenNoRetries(false)); | 934 ASSERT_NO_FATAL_FAILURE(ToggleTabFullscreenNoRetries(false)); |
| 935 } | 935 } |
| OLD | NEW |