| 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" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 int dialog_flags, | 67 int dialog_flags, |
| 68 const string16& title, | 68 const string16& title, |
| 69 const string16& message); | 69 const string16& message); |
| 70 virtual ~SimpleMessageBoxViews(); | 70 virtual ~SimpleMessageBoxViews(); |
| 71 | 71 |
| 72 // MessageLoop::Dispatcher implementation. | 72 // MessageLoop::Dispatcher implementation. |
| 73 #if defined(OS_WIN) | 73 #if defined(OS_WIN) |
| 74 // Dispatcher method. This returns true if the menu was canceled, or | 74 // Dispatcher method. This returns true if the menu was canceled, or |
| 75 // if the message is such that the menu should be closed. | 75 // if the message is such that the menu should be closed. |
| 76 virtual bool Dispatch(const MSG& msg) OVERRIDE; | 76 virtual bool Dispatch(const MSG& msg) OVERRIDE; |
| 77 #elif defined(TOUCH_UI) | 77 #elif defined(TOUCH_UI) || defined(USE_AURA) |
| 78 virtual base::MessagePumpDispatcher::DispatchStatus Dispatch( | 78 virtual base::MessagePumpDispatcher::DispatchStatus Dispatch( |
| 79 XEvent* xevent) OVERRIDE; | 79 XEvent* xevent) OVERRIDE; |
| 80 #else | 80 #else |
| 81 virtual bool Dispatch(GdkEvent* event) OVERRIDE; | 81 virtual bool Dispatch(GdkEvent* event) OVERRIDE; |
| 82 #endif | 82 #endif |
| 83 | 83 |
| 84 int dialog_flags_; | 84 int dialog_flags_; |
| 85 std::wstring message_box_title_; | 85 std::wstring message_box_title_; |
| 86 views::MessageBoxView* message_box_view_; | 86 views::MessageBoxView* message_box_view_; |
| 87 DispositionType disposition_; | 87 DispositionType disposition_; |
| 88 | 88 |
| 89 DISALLOW_COPY_AND_ASSIGN(SimpleMessageBoxViews); | 89 DISALLOW_COPY_AND_ASSIGN(SimpleMessageBoxViews); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 #endif // CHROME_BROWSER_UI_VIEWS_SIMPLE_MESSAGE_BOX_VIEWS_H_ | 92 #endif // CHROME_BROWSER_UI_VIEWS_SIMPLE_MESSAGE_BOX_VIEWS_H_ |
| OLD | NEW |