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

Unified Diff: chrome/browser/ui/exclusive_access/fullscreen_controller.h

Issue 877413004: Refactor away the Browser* dependency in exclusive_access (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix broken mac change Created 5 years, 10 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/exclusive_access/fullscreen_controller.h
diff --git a/chrome/browser/ui/exclusive_access/fullscreen_controller.h b/chrome/browser/ui/exclusive_access/fullscreen_controller.h
index 763591f7373d2ae1d5cdfe84a848b792da46835c..64202e3faf7aa517b3e20d2d016a108b5ddf8377 100644
--- a/chrome/browser/ui/exclusive_access/fullscreen_controller.h
+++ b/chrome/browser/ui/exclusive_access/fullscreen_controller.h
@@ -49,7 +49,7 @@ class WebContents;
// This class implements fullscreen behaviour.
class FullscreenController : public ExclusiveAccessControllerBase {
public:
- FullscreenController(ExclusiveAccessManager* manager, Browser* browser);
+ explicit FullscreenController(ExclusiveAccessManager* manager);
~FullscreenController() override;
// Browser/User Fullscreen ///////////////////////////////////////////////////
@@ -116,14 +116,14 @@ class FullscreenController : public ExclusiveAccessControllerBase {
// Platform Fullscreen ///////////////////////////////////////////////////////
+#if defined(OS_WIN)
// Returns whether we are currently in a Metro snap view.
bool IsInMetroSnapMode();
-#if defined(OS_WIN)
// API that puts the window into a mode suitable for rendering when Chrome
// is rendered in a 20% screen-width Metro snap view on Windows 8.
void SetMetroSnapMode(bool enable);
-#endif
+#endif // OS_WIN
// Overrde from ExclusiveAccessControllerBase.
void OnTabDetachedFromView(content::WebContents* web_contents) override;

Powered by Google App Engine
This is Rietveld 408576698