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

Side by Side Diff: chrome/browser/ui/fullscreen_controller.cc

Issue 8892011: Clean up TCW, make it solely a hub for 1:1 observer/helper objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/find_bar/find_bar_host_browsertest.cc ('k') | chrome/browser/ui/gtk/browser_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698