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

Side by Side Diff: chrome/browser/ui/permission_bubble/permission_prompt.h

Issue 2922313002: Remove remaining dead code that was used to implement grouped permission drop downs (Closed)
Patch Set: Remove remaining dead code that was used to implement grouped permission drop downs Created 3 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 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_UI_PERMISSION_BUBBLE_PERMISSION_PROMPT_H_ 5 #ifndef CHROME_BROWSER_UI_PERMISSION_BUBBLE_PERMISSION_PROMPT_H_
6 #define CHROME_BROWSER_UI_PERMISSION_BUBBLE_PERMISSION_PROMPT_H_ 6 #define CHROME_BROWSER_UI_PERMISSION_BUBBLE_PERMISSION_PROMPT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 14 matching lines...) Expand all
25 public: 25 public:
26 // The delegate will receive events caused by user action which need to 26 // The delegate will receive events caused by user action which need to
27 // be persisted in the per-tab UI state. 27 // be persisted in the per-tab UI state.
28 class Delegate { 28 class Delegate {
29 public: 29 public:
30 virtual ~Delegate() {} 30 virtual ~Delegate() {}
31 31
32 // These pointers should not be stored as the actual request objects may be 32 // These pointers should not be stored as the actual request objects may be
33 // deleted upon navigation and so on. 33 // deleted upon navigation and so on.
34 virtual const std::vector<PermissionRequest*>& Requests() = 0; 34 virtual const std::vector<PermissionRequest*>& Requests() = 0;
35 virtual const std::vector<bool>& AcceptStates() = 0;
36 35
37 virtual void ToggleAccept(int index, bool new_value) = 0;
38 virtual void TogglePersist(bool new_value) = 0; 36 virtual void TogglePersist(bool new_value) = 0;
39 virtual void Accept() = 0; 37 virtual void Accept() = 0;
40 virtual void Deny() = 0; 38 virtual void Deny() = 0;
41 virtual void Closing() = 0; 39 virtual void Closing() = 0;
42 }; 40 };
43 41
44 typedef base::Callback<std::unique_ptr<PermissionPrompt>( 42 typedef base::Callback<std::unique_ptr<PermissionPrompt>(
45 content::WebContents*)> 43 content::WebContents*)>
46 Factory; 44 Factory;
47 45
(...skipping 23 matching lines...) Expand all
71 69
72 // Updates where the prompt should be anchored. ex: fullscreen toggle. 70 // Updates where the prompt should be anchored. ex: fullscreen toggle.
73 virtual void UpdateAnchorPosition() = 0; 71 virtual void UpdateAnchorPosition() = 0;
74 72
75 // Returns a reference to this prompt's native window. 73 // Returns a reference to this prompt's native window.
76 // TODO(hcarmona): Remove this as part of the bubble API work. 74 // TODO(hcarmona): Remove this as part of the bubble API work.
77 virtual gfx::NativeWindow GetNativeWindow() = 0; 75 virtual gfx::NativeWindow GetNativeWindow() = 0;
78 }; 76 };
79 77
80 #endif // CHROME_BROWSER_UI_PERMISSION_BUBBLE_PERMISSION_PROMPT_H_ 78 #endif // CHROME_BROWSER_UI_PERMISSION_BUBBLE_PERMISSION_PROMPT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698