Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Unified Diff: chrome/browser/ui/views/simple_message_box_views.cc

Issue 9958152: Consolidate win/x dispatchers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync, addressed comments Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/simple_message_box_views.h ('k') | chrome/browser/ui/views/user_data_dir_dialog.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+}
« no previous file with comments | « chrome/browser/ui/views/simple_message_box_views.h ('k') | chrome/browser/ui/views/user_data_dir_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698