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_MOUSE_LOCK_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_MOUSE_LOCK_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_MOUSE_LOCK_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_MOUSE_LOCK_CONTROLLER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/ui/exclusive_access/exclusive_access_controller_base.h" | 9 #include "chrome/browser/ui/exclusive_access/exclusive_access_controller_base.h" |
10 #include "components/content_settings/core/common/content_settings.h" | 10 #include "components/content_settings/core/common/content_settings.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // Mouse lock has been allowed by the user. | 52 // Mouse lock has been allowed by the user. |
53 MOUSELOCK_ACCEPTED, | 53 MOUSELOCK_ACCEPTED, |
54 // Mouse lock has been silently accepted, no notification to user. | 54 // Mouse lock has been silently accepted, no notification to user. |
55 MOUSELOCK_ACCEPTED_SILENTLY | 55 MOUSELOCK_ACCEPTED_SILENTLY |
56 }; | 56 }; |
57 | 57 |
58 void NotifyMouseLockChange(); | 58 void NotifyMouseLockChange(); |
59 | 59 |
60 void ExitExclusiveAccessIfNecessary() override; | 60 void ExitExclusiveAccessIfNecessary() override; |
61 void NotifyTabExclusiveAccessLost() override; | 61 void NotifyTabExclusiveAccessLost() override; |
| 62 void RecordBubbleReshowsHistogram(int bubble_reshow_count) override; |
62 | 63 |
63 ContentSetting GetMouseLockSetting(const GURL& url) const; | 64 ContentSetting GetMouseLockSetting(const GURL& url) const; |
64 | 65 |
65 MouseLockState mouse_lock_state_; | 66 MouseLockState mouse_lock_state_; |
66 | 67 |
67 bool fake_mouse_lock_for_test_; | 68 bool fake_mouse_lock_for_test_; |
68 | 69 |
69 DISALLOW_COPY_AND_ASSIGN(MouseLockController); | 70 DISALLOW_COPY_AND_ASSIGN(MouseLockController); |
70 }; | 71 }; |
71 | 72 |
72 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_MOUSE_LOCK_CONTROLLER_H_ | 73 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_MOUSE_LOCK_CONTROLLER_H_ |
OLD | NEW |