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

Unified Diff: ui/views/controls/menu/menu_message_loop_mac.cc

Issue 2772863002: Delete MenuController Nested Message Loop (Closed)
Patch Set: remove another async flag Created 3 years, 9 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 | « ui/views/controls/menu/menu_message_loop_mac.h ('k') | ui/views/controls/menu/menu_runner_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_message_loop_mac.cc
diff --git a/ui/views/controls/menu/menu_message_loop_mac.cc b/ui/views/controls/menu/menu_message_loop_mac.cc
deleted file mode 100644
index 3d9bea954847b0737449eb026f008b0c600efa11..0000000000000000000000000000000000000000
--- a/ui/views/controls/menu/menu_message_loop_mac.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/views/controls/menu/menu_message_loop_mac.h"
-
-#include "base/auto_reset.h"
-#include "base/logging.h"
-#include "base/message_loop/message_loop.h"
-#include "base/run_loop.h"
-#include "ui/gfx/geometry/point.h"
-
-namespace views {
-
-// static
-MenuMessageLoop* MenuMessageLoop::Create() {
- return new MenuMessageLoopMac;
-}
-
-// static
-void MenuMessageLoop::RepostEventToWindow(const ui::LocatedEvent* event,
- gfx::NativeWindow window,
- const gfx::Point& screen_loc) {
- NOTIMPLEMENTED();
-}
-
-MenuMessageLoopMac::MenuMessageLoopMac() {}
-
-MenuMessageLoopMac::~MenuMessageLoopMac() {}
-
-void MenuMessageLoopMac::Run() {
- base::MessageLoopForUI* loop = base::MessageLoopForUI::current();
- base::MessageLoop::ScopedNestableTaskAllower allow(loop);
- base::RunLoop run_loop;
- base::AutoReset<base::RunLoop*> reset_run_loop(&run_loop_, &run_loop);
- run_loop.Run();
-}
-
-void MenuMessageLoopMac::QuitNow() {
- DCHECK(run_loop_);
- run_loop_->Quit();
-}
-
-} // namespace views
« no previous file with comments | « ui/views/controls/menu/menu_message_loop_mac.h ('k') | ui/views/controls/menu/menu_runner_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698