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

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

Issue 2089323002: Refactored FullscreenController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for thakis Created 4 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_EXCLUSIVE_ACCESS_FULLSCREEN_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_FULLSCREEN_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_FULLSCREEN_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_FULLSCREEN_CONTROLLER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // origin with regards to fullscreen. The |fullscreened_tab_| url should be 168 // origin with regards to fullscreen. The |fullscreened_tab_| url should be
169 // used as the embedder url. 169 // used as the embedder url.
170 GURL fullscreened_origin_; 170 GURL fullscreened_origin_;
171 171
172 // The URL of the extension which trigerred "browser fullscreen" mode. 172 // The URL of the extension which trigerred "browser fullscreen" mode.
173 GURL extension_caused_fullscreen_; 173 GURL extension_caused_fullscreen_;
174 174
175 enum PriorFullscreenState { 175 enum PriorFullscreenState {
176 STATE_INVALID, 176 STATE_INVALID,
177 STATE_NORMAL, 177 STATE_NORMAL,
178 STATE_BROWSER_FULLSCREEN_NO_TOOLBAR, 178 STATE_BROWSER_FULLSCREEN,
179 STATE_BROWSER_FULLSCREEN_WITH_TOOLBAR,
180 }; 179 };
181 // The state before entering tab fullscreen mode via webkitRequestFullScreen. 180 // The state before entering tab fullscreen mode via webkitRequestFullScreen.
182 // When not in tab fullscreen, it is STATE_INVALID. 181 // When not in tab fullscreen, it is STATE_INVALID.
183 PriorFullscreenState state_prior_to_tab_fullscreen_; 182 PriorFullscreenState state_prior_to_tab_fullscreen_;
184 // True if the site has entered into fullscreen. 183 // True if the site has entered into fullscreen.
185 bool tab_fullscreen_; 184 bool tab_fullscreen_;
186 185
187 // True if this controller has toggled into tab OR browser fullscreen. 186 // True if this controller has toggled into tab OR browser fullscreen.
188 bool toggled_into_fullscreen_; 187 bool toggled_into_fullscreen_;
189 188
190 // Used to verify that calls we expect to reenter by calling 189 // Used to verify that calls we expect to reenter by calling
191 // WindowFullscreenStateChanged do so. 190 // WindowFullscreenStateChanged do so.
192 bool reentrant_window_state_change_call_check_; 191 bool reentrant_window_state_change_call_check_;
193 192
194 // Used in testing to confirm proper behavior for specific, privileged 193 // Used in testing to confirm proper behavior for specific, privileged
195 // fullscreen cases. 194 // fullscreen cases.
196 bool is_privileged_fullscreen_for_testing_; 195 bool is_privileged_fullscreen_for_testing_;
197 196
198 base::WeakPtrFactory<FullscreenController> ptr_factory_; 197 base::WeakPtrFactory<FullscreenController> ptr_factory_;
199 198
200 DISALLOW_COPY_AND_ASSIGN(FullscreenController); 199 DISALLOW_COPY_AND_ASSIGN(FullscreenController);
201 }; 200 };
202 201
203 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_FULLSCREEN_CONTROLLER_H_ 202 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_FULLSCREEN_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698