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

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

Issue 2004353002: Delete unused code for exclusive access permission prompting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fullscreen-mac-remove-window-controller
Patch Set: Remove changes to content settings UI (spun out to CL 2045163002). Created 4 years, 6 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/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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 void StartWatchingMouse(); 80 void StartWatchingMouse();
81 void StopWatchingMouse(); 81 void StopWatchingMouse();
82 bool IsWatchingMouse() const; 82 bool IsWatchingMouse() const;
83 83
84 // Called repeatedly to get the current mouse position and animate the bubble 84 // Called repeatedly to get the current mouse position and animate the bubble
85 // on or off the screen as appropriate. 85 // on or off the screen as appropriate.
86 void CheckMousePosition(); 86 void CheckMousePosition();
87 87
88 void ExitExclusiveAccess(); 88 void ExitExclusiveAccess();
89 // Accepts the request. Can cause FullscreenExitBubble to be deleted.
90 void Accept();
91 // Denys the request. Can cause FullscreenExitBubble to be deleted.
92 void Cancel();
93 89
94 // The following strings may change according to the content type and URL. 90 // The following strings may change according to the content type and URL.
95 base::string16 GetCurrentMessageText() const; 91 base::string16 GetCurrentMessageText() const;
96 base::string16 GetCurrentDenyButtonText() const; 92 base::string16 GetCurrentDenyButtonText() const;
97 base::string16 GetCurrentAllowButtonText() const; 93 base::string16 GetCurrentAllowButtonText() const;
98 94
99 // This string *may* contain the name of the key surrounded in pipe characters 95 // This string *may* contain the name of the key surrounded in pipe characters
100 // ('|'), which should be drawn graphically as a key, not displayed literally. 96 // ('|'), which should be drawn graphically as a key, not displayed literally.
101 // |accelerator| is the name of the key to exit fullscreen mode. 97 // |accelerator| is the name of the key to exit fullscreen mode.
102 base::string16 GetInstructionText(const base::string16& accelerator) const; 98 base::string16 GetInstructionText(const base::string16& accelerator) const;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 133
138 // The most recently seen mouse position, in screen coordinates. Used to see 134 // 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 135 // if the mouse has moved since our last check. Only used in non-simplified
140 // fullscreen mode. 136 // fullscreen mode.
141 gfx::Point last_mouse_pos_; 137 gfx::Point last_mouse_pos_;
142 138
143 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessBubble); 139 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessBubble);
144 }; 140 };
145 141
146 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_H_ 142 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/exclusive_access/exclusive_access_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698