blob: ce74d1a2a77fce65ffbc6c511d2017cc09a443b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Copyright (c) 2012 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_controller.h"
#include "base/run_loop.h"
#include "ui/gfx/screen.h"
namespace views {
void MenuController::RunMessageLoop(bool nested_menu) {
MessageLoopForUI* loop = MessageLoopForUI::current();
MessageLoop::ScopedNestableTaskAllower allow(loop);
base::RunLoop run_loop(this);
run_loop.Run();
}
bool MenuController::ShouldQuitNow() const {
return true;
}
gfx::Screen* MenuController::GetScreen() {
return gfx::Screen::GetNativeScreen();
}
} // namespace views
|