| 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_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_VIEW_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 class PermissionBubbleRequest; | 10 class PermissionBubbleRequest; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 const std::vector<bool>& accept_state, | 46 const std::vector<bool>& accept_state, |
| 47 bool customization_mode) = 0; | 47 bool customization_mode) = 0; |
| 48 | 48 |
| 49 // Returns true if the view can accept a new Show() command to coalesce | 49 // Returns true if the view can accept a new Show() command to coalesce |
| 50 // requests. Currently the policy is that this should return true if the view | 50 // requests. Currently the policy is that this should return true if the view |
| 51 // is being shown and the mouse is not over the view area (!IsMouseHovered). | 51 // is being shown and the mouse is not over the view area (!IsMouseHovered). |
| 52 virtual bool CanAcceptRequestUpdate() = 0; | 52 virtual bool CanAcceptRequestUpdate() = 0; |
| 53 | 53 |
| 54 // Hides the permission bubble. | 54 // Hides the permission bubble. |
| 55 virtual void Hide() = 0; | 55 virtual void Hide() = 0; |
| 56 |
| 57 // Returns true if there is a bubble currently showing. |
| 58 virtual bool IsVisible() = 0; |
| 56 }; | 59 }; |
| 57 | 60 |
| 58 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_VIEW_H_ | 61 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_VIEW_H_ |
| OLD | NEW |