| 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_VIEWS_CONFIRM_BUBBLE_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_CONFIRM_BUBBLE_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_CONFIRM_BUBBLE_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_CONFIRM_BUBBLE_VIEWS_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 10 #include "ui/views/controls/link_listener.h" | 11 #include "ui/views/controls/link_listener.h" |
| 11 #include "ui/views/window/dialog_delegate.h" | 12 #include "ui/views/window/dialog_delegate.h" |
| 12 | 13 |
| 13 class ConfirmBubbleModel; | 14 class ConfirmBubbleModel; |
| 14 | 15 |
| 15 // A dialog (with the standard Title/(x)/[OK]/[Cancel] UI elements), as well as | 16 // A dialog (with the standard Title/(x)/[OK]/[Cancel] UI elements), as well as |
| 16 // a message Label and optional Link. The dialog ultimately appears like this: | 17 // a message Label and optional Link. The dialog ultimately appears like this: |
| 17 // +------------------------+ | 18 // +------------------------+ |
| 18 // | Title (x) | | 19 // | Title (x) | |
| (...skipping 27 matching lines...) Expand all Loading... |
| 46 private: | 47 private: |
| 47 // The model to customize this bubble view. | 48 // The model to customize this bubble view. |
| 48 scoped_ptr<ConfirmBubbleModel> model_; | 49 scoped_ptr<ConfirmBubbleModel> model_; |
| 49 | 50 |
| 50 views::Link* link_; | 51 views::Link* link_; |
| 51 | 52 |
| 52 DISALLOW_COPY_AND_ASSIGN(ConfirmBubbleViews); | 53 DISALLOW_COPY_AND_ASSIGN(ConfirmBubbleViews); |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 #endif // CHROME_BROWSER_UI_VIEWS_CONFIRM_BUBBLE_VIEWS_H_ | 56 #endif // CHROME_BROWSER_UI_VIEWS_CONFIRM_BUBBLE_VIEWS_H_ |
| OLD | NEW |