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
3 // found in the LICENSE file.
5 #include "ui/views/controls/menu/menu_controller.h"
7 #include "base/run_loop.h"
8 #include "ui/gfx/screen.h"
12 void MenuController::RunMessageLoop(bool nested_menu) {
13 base::MessageLoopForUI* loop = base::MessageLoopForUI::current();
14 base::MessageLoop::ScopedNestableTaskAllower allow(loop);
15 base::RunLoop run_loop(this);
19 bool MenuController::ShouldQuitNow() const {
23 gfx::Screen* MenuController::GetScreen() {
24 return gfx::Screen::GetNativeScreen();