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 "chrome/browser/ui/exclusive_access/fullscreen_controller_state_test.h" | 5 #include "chrome/browser/ui/exclusive_access/fullscreen_controller_state_test.h" |
6 | 6 |
7 #include <memory.h> | 7 #include <memory.h> |
8 | 8 |
9 #include <iomanip> | 9 #include <iomanip> |
10 #include <iostream> | 10 #include <iostream> |
11 | 11 |
12 #include "chrome/browser/fullscreen.h" | 12 #include "chrome/browser/fullscreen.h" |
13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
14 #include "chrome/browser/ui/browser_window.h" | 14 #include "chrome/browser/ui/browser_window.h" |
15 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" | 15 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" |
16 #include "chrome/browser/ui/exclusive_access/fullscreen_controller_test.h" | 16 #include "chrome/browser/ui/exclusive_access/fullscreen_controller_test.h" |
17 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 17 #include "chrome/browser/ui/tabs/tab_strip_model.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 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 | 21 |
22 #if defined(OS_MACOSX) | |
23 #include "base/mac/mac_util.h" | |
24 #endif | |
25 | |
26 namespace { | 22 namespace { |
27 | 23 |
28 bool SupportsMacSystemFullscreen() { | 24 bool SupportsMacSystemFullscreen() { |
29 #if defined(OS_MACOSX) | 25 #if defined(OS_MACOSX) |
30 return chrome::mac::SupportsSystemFullscreen(); | 26 return chrome::mac::SupportsSystemFullscreen(); |
31 #else | 27 #else |
32 return false; | 28 return false; |
33 #endif | 29 #endif |
34 } | 30 } |
35 | 31 |
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 << std::right << std::setw(2) | 794 << std::right << std::setw(2) |
799 << info.distance | 795 << info.distance |
800 << " }, // " | 796 << " }, // " |
801 << GetStateString(state2) << "\n"; | 797 << GetStateString(state2) << "\n"; |
802 } | 798 } |
803 output << "},\n"; | 799 output << "},\n"; |
804 } | 800 } |
805 output << "};"; | 801 output << "};"; |
806 return output.str(); | 802 return output.str(); |
807 } | 803 } |
OLD | NEW |