| 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
|
|
|