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

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

Issue 10446106: Preliminary metro snap plumbing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix test errors, unify fullscreen code in browser view. Created 8 years, 6 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 unified diff | Download patch
OLDNEW
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 #ifndef CHROME_BROWSER_UI_FULLSCREEN_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_FULLSCREEN_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_FULLSCREEN_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_FULLSCREEN_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 bool IsMouseLockRequested() const; 54 bool IsMouseLockRequested() const;
55 bool IsMouseLocked() const; 55 bool IsMouseLocked() const;
56 56
57 // Requests. 57 // Requests.
58 void RequestToLockMouse(content::WebContents* tab, 58 void RequestToLockMouse(content::WebContents* tab,
59 bool user_gesture, 59 bool user_gesture,
60 bool last_unlocked_by_target); 60 bool last_unlocked_by_target);
61 void ToggleFullscreenModeForTab(content::WebContents* tab, 61 void ToggleFullscreenModeForTab(content::WebContents* tab,
62 bool enter_fullscreen); 62 bool enter_fullscreen);
63 #if defined(OS_WIN)
64 // API that puts the window into a mode suitable for rendering when Chrome
65 // is rendered in a 20% screen-width Metro snap view on Windows 8.
66 void ToggleMetroSnapMode(bool enable);
67 #endif
63 #if defined(OS_MACOSX) 68 #if defined(OS_MACOSX)
64 void TogglePresentationMode(); 69 void TogglePresentationMode();
65 #endif 70 #endif
66 void ToggleFullscreenMode(); 71 void ToggleFullscreenMode();
67 // Extension API implementation uses this method to toggle fullscreen mode. 72 // Extension API implementation uses this method to toggle fullscreen mode.
68 // The extension's name is displayed in the full screen bubble UI to attribute 73 // The extension's name is displayed in the full screen bubble UI to attribute
69 // the cause of the full screen state change. 74 // the cause of the full screen state change.
70 void ToggleFullscreenModeWithExtension(const GURL& extension_url); 75 void ToggleFullscreenModeWithExtension(const GURL& extension_url);
71 76
72 // Notifications. 77 // Notifications.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 142
138 // Wrapper for current tab requesting or currently in mouse lock. 143 // Wrapper for current tab requesting or currently in mouse lock.
139 TabContentsWrapper* mouse_lock_tab_; 144 TabContentsWrapper* mouse_lock_tab_;
140 145
141 MouseLockState mouse_lock_state_; 146 MouseLockState mouse_lock_state_;
142 147
143 DISALLOW_COPY_AND_ASSIGN(FullscreenController); 148 DISALLOW_COPY_AND_ASSIGN(FullscreenController);
144 }; 149 };
145 150
146 #endif // CHROME_BROWSER_UI_FULLSCREEN_CONTROLLER_H_ 151 #endif // CHROME_BROWSER_UI_FULLSCREEN_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698