OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_SIMPLE_MESSAGE_BOX_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_SIMPLE_MESSAGE_BOX_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_SIMPLE_MESSAGE_BOX_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_SIMPLE_MESSAGE_BOX_VIEWS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
13 #include "views/window/dialog_delegate.h" | 13 #include "ui/views/window/dialog_delegate.h" |
14 | 14 |
15 namespace views { | 15 namespace views { |
16 class MessageBoxView; | 16 class MessageBoxView; |
17 } | 17 } |
18 | 18 |
19 // Simple message box implemented in Views. | 19 // Simple message box implemented in Views. |
20 class SimpleMessageBoxViews : public views::DialogDelegate, | 20 class SimpleMessageBoxViews : public views::DialogDelegate, |
21 public MessageLoop::Dispatcher, | 21 public MessageLoop::Dispatcher, |
22 public base::RefCounted<SimpleMessageBoxViews> { | 22 public base::RefCounted<SimpleMessageBoxViews> { |
23 public: | 23 public: |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 int dialog_flags_; | 83 int dialog_flags_; |
84 string16 message_box_title_; | 84 string16 message_box_title_; |
85 views::MessageBoxView* message_box_view_; | 85 views::MessageBoxView* message_box_view_; |
86 DispositionType disposition_; | 86 DispositionType disposition_; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(SimpleMessageBoxViews); | 88 DISALLOW_COPY_AND_ASSIGN(SimpleMessageBoxViews); |
89 }; | 89 }; |
90 | 90 |
91 #endif // CHROME_BROWSER_UI_VIEWS_SIMPLE_MESSAGE_BOX_VIEWS_H_ | 91 #endif // CHROME_BROWSER_UI_VIEWS_SIMPLE_MESSAGE_BOX_VIEWS_H_ |
OLD | NEW |