| 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 #include "chrome/browser/ui/views/simple_message_box_views.h" | 5 #include "chrome/browser/ui/views/simple_message_box_views.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/simple_message_box.h" | 9 #include "chrome/browser/simple_message_box.h" |
| 10 #include "chrome/browser/ui/dialog_style.h" | 10 #include "chrome/browser/ui/dialog_style.h" |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 bool SimpleMessageBoxViews::Dispatch(const base::NativeEvent& event) { | 146 bool SimpleMessageBoxViews::Dispatch(const base::NativeEvent& event) { |
| 147 #if defined(OS_WIN) | 147 #if defined(OS_WIN) |
| 148 TranslateMessage(&event); | 148 TranslateMessage(&event); |
| 149 DispatchMessage(&event); | 149 DispatchMessage(&event); |
| 150 #elif defined(USE_AURA) | 150 #elif defined(USE_AURA) |
| 151 aura::Env::GetInstance()->GetDispatcher()->Dispatch(event); | 151 aura::Env::GetInstance()->GetDispatcher()->Dispatch(event); |
| 152 #endif | 152 #endif |
| 153 return disposition_ == DISPOSITION_UNKNOWN; | 153 return disposition_ == DISPOSITION_UNKNOWN; |
| 154 } | 154 } |
| 155 |
| 156 bool SimpleMessageBoxViews::ShouldExit() { |
| 157 return false; |
| 158 } |
| OLD | NEW |