| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 // Returns the id of the action to point to, or the empty string if the | 58 // Returns the id of the action to point to, or the empty string if the |
| 59 // bubble should point to the center of the actions container. | 59 // bubble should point to the center of the actions container. |
| 60 virtual std::string GetAnchorActionId() = 0; | 60 virtual std::string GetAnchorActionId() = 0; |
| 61 | 61 |
| 62 // Called when the bubble is shown. | 62 // Called when the bubble is shown. |
| 63 virtual void OnBubbleShown() = 0; | 63 virtual void OnBubbleShown() = 0; |
| 64 | 64 |
| 65 // Called when the bubble is closed with the type of action the user took. | 65 // Called when the bubble is closed with the type of action the user took. |
| 66 virtual void OnBubbleClosed(CloseAction action) = 0; | 66 virtual void OnBubbleClosed(CloseAction action) = 0; |
| 67 | |
| 68 // Returns true if this is for an ExtensionMessageBubbleController. | |
| 69 // TODO(devlin): We shouldn't need this. | |
| 70 virtual bool IsExtensionMessageBubble() = 0; | |
| 71 }; | 67 }; |
| 72 | 68 |
| 73 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_ | 69 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_ |
| OLD | NEW |