| OLD | NEW |
| 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_WEBSITE_SETTINGS_PERMISSION_PROMPT_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_PROMPT_H_ |
| 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_PROMPT_H_ | 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_PROMPT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
| 13 | 13 |
| 14 class PermissionRequestManager; | |
| 15 class PermissionRequest; | 14 class PermissionRequest; |
| 16 | 15 |
| 17 namespace content { | 16 namespace content { |
| 18 class WebContents; | 17 class WebContents; |
| 19 } | 18 } |
| 20 | 19 |
| 21 // This class is the platform-independent interface through which the permission | 20 // This class is the platform-independent interface through which the permission |
| 22 // request managers (which are one per tab) communicate to the UI surface. | 21 // request managers (which are one per tab) communicate to the UI surface. |
| 23 // When the visible tab changes, the UI code must provide an object of this type | 22 // When the visible tab changes, the UI code must provide an object of this type |
| 24 // to the manager for the visible tab. | 23 // to the manager for the visible tab. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 70 |
| 72 // Updates where the prompt should be anchored. ex: fullscreen toggle. | 71 // Updates where the prompt should be anchored. ex: fullscreen toggle. |
| 73 virtual void UpdateAnchorPosition() = 0; | 72 virtual void UpdateAnchorPosition() = 0; |
| 74 | 73 |
| 75 // Returns a reference to this prompt's native window. | 74 // Returns a reference to this prompt's native window. |
| 76 // TODO(hcarmona): Remove this as part of the bubble API work. | 75 // TODO(hcarmona): Remove this as part of the bubble API work. |
| 77 virtual gfx::NativeWindow GetNativeWindow() = 0; | 76 virtual gfx::NativeWindow GetNativeWindow() = 0; |
| 78 }; | 77 }; |
| 79 | 78 |
| 80 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_PROMPT_H_ | 79 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_PROMPT_H_ |
| OLD | NEW |