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

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

Issue 1808943002: Remove unnecessary explicit keyword in ExclusiveAccessBubble class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update style Created 4 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_EXCLUSIVE_ACCESS_BUBBLE_H_ 5 #ifndef CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_H_
6 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_H_ 6 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/timer/timer.h" 9 #include "base/timer/timer.h"
10 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" 10 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h"
(...skipping 12 matching lines...) Expand all
23 // state, namely fullscreen and mouse lock. 23 // state, namely fullscreen and mouse lock.
24 // 24 //
25 // Notification display design note: if the #simplified-fullscreen-ui flag is 25 // Notification display design note: if the #simplified-fullscreen-ui flag is
26 // enabled, the bubble has the following behaviour: 26 // enabled, the bubble has the following behaviour:
27 // - The bubble is shown for kInitialDelayMs, then hides. 27 // - The bubble is shown for kInitialDelayMs, then hides.
28 // - After a bubble has been shown, notifications are suppressed for 28 // - After a bubble has been shown, notifications are suppressed for
29 // kSnoozeNotificationsTimeMs, to avoid bothering the user. After this time 29 // kSnoozeNotificationsTimeMs, to avoid bothering the user. After this time
30 // has elapsed, the next user input re-displays the bubble. 30 // has elapsed, the next user input re-displays the bubble.
31 class ExclusiveAccessBubble : public gfx::AnimationDelegate { 31 class ExclusiveAccessBubble : public gfx::AnimationDelegate {
32 public: 32 public:
33 explicit ExclusiveAccessBubble(ExclusiveAccessManager* manager, 33 ExclusiveAccessBubble(ExclusiveAccessManager* manager,
34 const GURL& url, 34 const GURL& url,
35 ExclusiveAccessBubbleType bubble_type); 35 ExclusiveAccessBubbleType bubble_type);
36 ~ExclusiveAccessBubble() override; 36 ~ExclusiveAccessBubble() override;
37 37
38 // Informs the ExclusiveAccessBubble of some user input, which may update 38 // Informs the ExclusiveAccessBubble of some user input, which may update
39 // internal timers and/or re-display the bubble. 39 // internal timers and/or re-display the bubble.
40 void OnUserInput(); 40 void OnUserInput();
41 41
42 protected: 42 protected:
43 static const int kPaddingPx; // Amount of padding around the link 43 static const int kPaddingPx; // Amount of padding around the link
44 static const int kInitialDelayMs; // Initial time bubble remains onscreen 44 static const int kInitialDelayMs; // Initial time bubble remains onscreen
45 static const int kIdleTimeMs; // Time before mouse idle triggers hide 45 static const int kIdleTimeMs; // Time before mouse idle triggers hide
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 // The most recently seen mouse position, in screen coordinates. Used to see 138 // The most recently seen mouse position, in screen coordinates. Used to see
139 // if the mouse has moved since our last check. Only used in non-simplified 139 // if the mouse has moved since our last check. Only used in non-simplified
140 // fullscreen mode. 140 // fullscreen mode.
141 gfx::Point last_mouse_pos_; 141 gfx::Point last_mouse_pos_;
142 142
143 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessBubble); 143 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessBubble);
144 }; 144 };
145 145
146 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_H_ 146 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698