1 // Copyright 2013 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/test/menu_runner_test_api.h"
7 #include "ui/views/controls/menu/menu_runner.h"
8 #include "ui/views/controls/menu/menu_runner_handler.h"
13 MenuRunnerTestAPI::MenuRunnerTestAPI(MenuRunner
* menu_runner
)
14 : menu_runner_(menu_runner
) {
17 MenuRunnerTestAPI::~MenuRunnerTestAPI() {
20 void MenuRunnerTestAPI::SetMenuRunnerHandler(
21 scoped_ptr
<MenuRunnerHandler
> menu_runner_handler
) {
22 menu_runner_
->SetRunnerHandler(menu_runner_handler
.Pass());