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

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

Issue 903683005: Always prompt for permission on fullscreen and mouse lock on file:// URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweak unit test Created 5 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) 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/timer/timer.h" 8 #include "base/timer/timer.h"
9 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" 9 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h"
10 #include "ui/gfx/animation/animation_delegate.h" 10 #include "ui/gfx/animation/animation_delegate.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 void ToggleFullscreen(); 74 void ToggleFullscreen();
75 // Accepts the request. Can cause FullscreenExitBubble to be deleted. 75 // Accepts the request. Can cause FullscreenExitBubble to be deleted.
76 void Accept(); 76 void Accept();
77 // Denys the request. Can cause FullscreenExitBubble to be deleted. 77 // Denys the request. Can cause FullscreenExitBubble to be deleted.
78 void Cancel(); 78 void Cancel();
79 79
80 // The following strings may change according to the content type and URL. 80 // The following strings may change according to the content type and URL.
81 base::string16 GetCurrentMessageText() const; 81 base::string16 GetCurrentMessageText() const;
82 base::string16 GetCurrentDenyButtonText() const; 82 base::string16 GetCurrentDenyButtonText() const;
83 base::string16 GetCurrentAllowButtonText() const;
83 84
84 // The following strings never change. 85 // The following strings never change.
85 base::string16 GetAllowButtonText() const;
86 base::string16 GetInstructionText() const; 86 base::string16 GetInstructionText() const;
87 87
88 // The browser this bubble is in. 88 // The browser this bubble is in.
89 Browser* browser_; 89 Browser* browser_;
90 90
91 // The host the bubble is for, can be empty. 91 // The host the bubble is for, can be empty.
92 GURL url_; 92 GURL url_;
93 93
94 // The type of the bubble; controls e.g. which buttons to show. 94 // The type of the bubble; controls e.g. which buttons to show.
95 ExclusiveAccessBubbleType bubble_type_; 95 ExclusiveAccessBubbleType bubble_type_;
(...skipping 13 matching lines...) Expand all
109 base::RepeatingTimer<ExclusiveAccessBubble> mouse_position_checker_; 109 base::RepeatingTimer<ExclusiveAccessBubble> mouse_position_checker_;
110 110
111 // The most recently seen mouse position, in screen coordinates. Used to see 111 // The most recently seen mouse position, in screen coordinates. Used to see
112 // if the mouse has moved since our last check. 112 // if the mouse has moved since our last check.
113 gfx::Point last_mouse_pos_; 113 gfx::Point last_mouse_pos_;
114 114
115 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessBubble); 115 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessBubble);
116 }; 116 };
117 117
118 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_H_ 118 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698