Automated Commit: Committing new LKGM version 7479.0.0 for chromeos.
[chromium-blink-merge.git] / ui / views / test / menu_runner_test_api.cc
blobc2977000d8d83e0e4be870275d42cda7d8b6b198
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"
10 namespace views {
11 namespace test {
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());
25 } // test
26 } // views