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

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

Issue 1721633002: Added UMA collection for fullscreen / mouse lock bubble re-shows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved histogram recording into each subclass. (Fix DCHECK / incorrect histogram recording.) Created 4 years, 10 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) 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698