OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/fullscreen_controller.h" | 5 #include "chrome/browser/ui/fullscreen_controller.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "chrome/browser/content_settings/host_content_settings_map.h" | 9 #include "chrome/browser/content_settings/host_content_settings_map.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/ui/browser_window.h" | 12 #include "chrome/browser/ui/browser_window.h" |
13 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 13 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
14 #include "chrome/common/chrome_notification_types.h" | 14 #include "chrome/common/chrome_notification_types.h" |
15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
16 #include "content/browser/renderer_host/render_view_host.h" | 16 #include "content/browser/renderer_host/render_view_host.h" |
| 17 #include "content/browser/tab_contents/tab_contents.h" |
17 #include "content/browser/user_metrics.h" | 18 #include "content/browser/user_metrics.h" |
18 #include "content/public/browser/notification_service.h" | 19 #include "content/public/browser/notification_service.h" |
19 | 20 |
20 FullscreenController::FullscreenController(BrowserWindow* window, | 21 FullscreenController::FullscreenController(BrowserWindow* window, |
21 Profile* profile, | 22 Profile* profile, |
22 Browser* browser) | 23 Browser* browser) |
23 : window_(window), | 24 : window_(window), |
24 profile_(profile), | 25 profile_(profile), |
25 browser_(browser), | 26 browser_(browser), |
26 fullscreened_tab_(NULL), | 27 fullscreened_tab_(NULL), |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 | 346 |
346 ContentSetting | 347 ContentSetting |
347 FullscreenController::GetMouseLockSetting(const GURL& url) const { | 348 FullscreenController::GetMouseLockSetting(const GURL& url) const { |
348 if (url.SchemeIsFile()) | 349 if (url.SchemeIsFile()) |
349 return CONTENT_SETTING_ALLOW; | 350 return CONTENT_SETTING_ALLOW; |
350 | 351 |
351 HostContentSettingsMap* settings_map = profile_->GetHostContentSettingsMap(); | 352 HostContentSettingsMap* settings_map = profile_->GetHostContentSettingsMap(); |
352 return settings_map->GetContentSetting(url, url, | 353 return settings_map->GetContentSetting(url, url, |
353 CONTENT_SETTINGS_TYPE_MOUSELOCK, std::string()); | 354 CONTENT_SETTINGS_TYPE_MOUSELOCK, std::string()); |
354 } | 355 } |
OLD | NEW |