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

Side by Side Diff: chrome/browser/permissions/permission_request_manager.h

Issue 2315563002: Add PermissionPromptAndroid skeleton (Closed)
Patch Set: remove unused stuff Created 4 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PERMISSIONS_PERMISSION_REQUEST_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_MANAGER_H_
6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_MANAGER_H_ 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_MANAGER_H_
7 7
8 #include <unordered_map> 8 #include <unordered_map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // the web contents that the PermissionRequestManager belongs to. 77 // the web contents that the PermissionRequestManager belongs to.
78 void DisplayPendingRequests(); 78 void DisplayPendingRequests();
79 79
80 // Will reposition the bubble (may change parent if necessary). 80 // Will reposition the bubble (may change parent if necessary).
81 void UpdateAnchorPosition(); 81 void UpdateAnchorPosition();
82 82
83 // True if a permission bubble is currently visible. 83 // True if a permission bubble is currently visible.
84 // TODO(hcarmona): Remove this as part of the bubble API work. 84 // TODO(hcarmona): Remove this as part of the bubble API work.
85 bool IsBubbleVisible(); 85 bool IsBubbleVisible();
86 86
87 static bool IsEnabled();
raymes 2016/10/19 00:25:41 nit: please add a comment about what this does
lshang 2016/10/20 05:03:10 Done.
88
87 // Get the native window of the bubble. 89 // Get the native window of the bubble.
88 // TODO(hcarmona): Remove this as part of the bubble API work. 90 // TODO(hcarmona): Remove this as part of the bubble API work.
89 gfx::NativeWindow GetBubbleWindow(); 91 gfx::NativeWindow GetBubbleWindow();
90 92
91 // For observing the status of the permission bubble manager. 93 // For observing the status of the permission bubble manager.
92 void AddObserver(Observer* observer); 94 void AddObserver(Observer* observer);
93 void RemoveObserver(Observer* observer); 95 void RemoveObserver(Observer* observer);
94 96
95 // Do NOT use this methods in production code. Use this methods in browser 97 // Do NOT use this methods in production code. Use this methods in browser
96 // tests that need to accept or deny permissions when requested in 98 // tests that need to accept or deny permissions when requested in
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // Whether each of the requests in |requests_| is accepted by the user. 195 // Whether each of the requests in |requests_| is accepted by the user.
194 std::vector<bool> accept_states_; 196 std::vector<bool> accept_states_;
195 197
196 base::ObserverList<Observer> observer_list_; 198 base::ObserverList<Observer> observer_list_;
197 AutoResponseType auto_response_for_test_; 199 AutoResponseType auto_response_for_test_;
198 200
199 base::WeakPtrFactory<PermissionRequestManager> weak_factory_; 201 base::WeakPtrFactory<PermissionRequestManager> weak_factory_;
200 }; 202 };
201 203
202 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_MANAGER_H_ 204 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698