OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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_EXCLUSIVE_ACCESS_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_MANAGER_H_ |
6 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_MANAGER_H_ | 6 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_MANAGER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/feature_list.h" | 10 #include "base/feature_list.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // Called by Browser::TabClosingAt. | 62 // Called by Browser::TabClosingAt. |
63 void OnTabClosing(content::WebContents* web_contents); | 63 void OnTabClosing(content::WebContents* web_contents); |
64 | 64 |
65 // Called by Browser::PreHandleKeyboardEvent. | 65 // Called by Browser::PreHandleKeyboardEvent. |
66 bool HandleUserKeyPress(const content::NativeWebKeyboardEvent& event); | 66 bool HandleUserKeyPress(const content::NativeWebKeyboardEvent& event); |
67 | 67 |
68 // Called by Browser::ContentsMouseEvent. | 68 // Called by Browser::ContentsMouseEvent. |
69 void OnUserInput(); | 69 void OnUserInput(); |
70 | 70 |
71 // Called by platform ExclusiveAccessExitBubble. | 71 // Called by platform ExclusiveAccessExitBubble. |
72 void OnAcceptExclusiveAccessPermission(); | |
73 void OnDenyExclusiveAccessPermission(); | |
74 void ExitExclusiveAccess(); | 72 void ExitExclusiveAccess(); |
75 void RecordBubbleReshownUMA(ExclusiveAccessBubbleType type); | 73 void RecordBubbleReshownUMA(ExclusiveAccessBubbleType type); |
76 | 74 |
77 private: | 75 private: |
78 // Called when the user has held down Escape. | 76 // Called when the user has held down Escape. |
79 void HandleUserHeldEscape(); | 77 void HandleUserHeldEscape(); |
80 | 78 |
81 ExclusiveAccessContext* const exclusive_access_context_; | 79 ExclusiveAccessContext* const exclusive_access_context_; |
82 FullscreenController fullscreen_controller_; | 80 FullscreenController fullscreen_controller_; |
83 MouseLockController mouse_lock_controller_; | 81 MouseLockController mouse_lock_controller_; |
84 base::OneShotTimer hold_timer_; | 82 base::OneShotTimer hold_timer_; |
85 | 83 |
86 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessManager); | 84 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessManager); |
87 }; | 85 }; |
88 | 86 |
89 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_MANAGER_H_ | 87 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_MANAGER_H_ |
OLD | NEW |