| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CONFIRM_BUBBLE_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_CONFIRM_BUBBLE_MODEL_H_ |
| 6 #define CHROME_BROWSER_UI_CONFIRM_BUBBLE_MODEL_H_ | 6 #define CHROME_BROWSER_UI_CONFIRM_BUBBLE_MODEL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/string16.h" | 9 #include "base/strings/string16.h" |
| 10 | 10 |
| 11 namespace gfx { | 11 namespace gfx { |
| 12 class Image; | 12 class Image; |
| 13 } | 13 } |
| 14 | 14 |
| 15 // An interface implemented by objects wishing to control an ConfirmBubbleView. | 15 // An interface implemented by objects wishing to control an ConfirmBubbleView. |
| 16 // To use this class to implement a bubble menu, we need two steps: | 16 // To use this class to implement a bubble menu, we need two steps: |
| 17 // 1. Implement a class derived from this class. | 17 // 1. Implement a class derived from this class. |
| 18 // 2. Call chrome::ShowConfirmBubble() with the class implemented in 1. | 18 // 2. Call chrome::ShowConfirmBubble() with the class implemented in 1. |
| 19 class ConfirmBubbleModel { | 19 class ConfirmBubbleModel { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 virtual string16 GetLinkText() const; | 58 virtual string16 GetLinkText() const; |
| 59 | 59 |
| 60 // Called when the Link is clicked. | 60 // Called when the Link is clicked. |
| 61 virtual void LinkClicked(); | 61 virtual void LinkClicked(); |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 DISALLOW_COPY_AND_ASSIGN(ConfirmBubbleModel); | 64 DISALLOW_COPY_AND_ASSIGN(ConfirmBubbleModel); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 #endif // CHROME_BROWSER_UI_CONFIRM_BUBBLE_MODEL_H_ | 67 #endif // CHROME_BROWSER_UI_CONFIRM_BUBBLE_MODEL_H_ |
| OLD | NEW |