Index: chrome/browser/ui/views/simple_message_box_views.cc |
diff --git a/chrome/browser/ui/views/simple_message_box_views.cc b/chrome/browser/ui/views/simple_message_box_views.cc |
index dd5ad047547bdf14f439905d100d1f77e9b6fc7d..2c200fd8ae432a106830931f4bb971a76711bd3d 100644 |
--- a/chrome/browser/ui/views/simple_message_box_views.cc |
+++ b/chrome/browser/ui/views/simple_message_box_views.cc |
@@ -149,20 +149,12 @@ SimpleMessageBoxViews::SimpleMessageBoxViews(gfx::NativeWindow parent_window, |
SimpleMessageBoxViews::~SimpleMessageBoxViews() { |
} |
+bool SimpleMessageBoxViews::Dispatch(const base::NativeEvent& event) { |
#if defined(OS_WIN) |
-bool SimpleMessageBoxViews::Dispatch(const MSG& msg) { |
- TranslateMessage(&msg); |
- DispatchMessage(&msg); |
- return disposition_ == DISPOSITION_UNKNOWN; |
-} |
+ TranslateMessage(&event); |
+ DispatchMessage(&event); |
#elif defined(USE_AURA) |
-base::MessagePumpDispatcher::DispatchStatus |
- SimpleMessageBoxViews::Dispatch(XEvent* xev) { |
- if (!aura::Env::GetInstance()->GetDispatcher()->Dispatch(xev)) |
- return EVENT_IGNORED; |
- |
- if (disposition_ == DISPOSITION_UNKNOWN) |
- return base::MessagePumpDispatcher::EVENT_PROCESSED; |
- return base::MessagePumpDispatcher::EVENT_QUIT; |
-} |
+ aura::Env::GetInstance()->GetDispatcher()->Dispatch(event); |
#endif |
+ return disposition_ == DISPOSITION_UNKNOWN; |
+} |