OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FULLSCREEN_WITHIN_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_WITHIN_TAB_HELPER_H_ |
6 #define CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_WITHIN_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_WITHIN_TAB_HELPER_H_ |
7 | 7 |
8 #include "content/public/browser/web_contents_user_data.h" | 8 #include "content/public/browser/web_contents_user_data.h" |
9 | 9 |
10 // Helper used by FullscreenController to track the state of a WebContents that | 10 // Helper used by FullscreenController to track the state of a WebContents that |
(...skipping 18 matching lines...) Expand all Loading... |
29 is_fullscreen_for_captured_tab_ = is_fullscreen; | 29 is_fullscreen_for_captured_tab_ = is_fullscreen; |
30 } | 30 } |
31 | 31 |
32 // Immediately remove and destroy the FullscreenWithinTabHelper instance | 32 // Immediately remove and destroy the FullscreenWithinTabHelper instance |
33 // associated with |web_contents|. | 33 // associated with |web_contents|. |
34 static void RemoveForWebContents(content::WebContents* web_contents); | 34 static void RemoveForWebContents(content::WebContents* web_contents); |
35 | 35 |
36 private: | 36 private: |
37 friend class content::WebContentsUserData<FullscreenWithinTabHelper>; | 37 friend class content::WebContentsUserData<FullscreenWithinTabHelper>; |
38 explicit FullscreenWithinTabHelper(content::WebContents* ignored); | 38 explicit FullscreenWithinTabHelper(content::WebContents* ignored); |
39 virtual ~FullscreenWithinTabHelper(); | 39 ~FullscreenWithinTabHelper() override; |
40 | 40 |
41 bool is_fullscreen_for_captured_tab_; | 41 bool is_fullscreen_for_captured_tab_; |
42 | 42 |
43 DISALLOW_COPY_AND_ASSIGN(FullscreenWithinTabHelper); | 43 DISALLOW_COPY_AND_ASSIGN(FullscreenWithinTabHelper); |
44 }; | 44 }; |
45 | 45 |
46 #endif // CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_WITHIN_TAB_HELPER_H_ | 46 #endif // CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_WITHIN_TAB_HELPER_H_ |
OLD | NEW |