Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(601)

Unified Diff: ui/views/test/menu_runner_test_api.h

Issue 59383003: Add the button style for combobox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: warnings Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/menu/menu_runner_handler.h ('k') | ui/views/test/menu_runner_test_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/menu_runner_test_api.h
diff --git a/ui/views/test/menu_runner_test_api.h b/ui/views/test/menu_runner_test_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..a9e2b8e8fb94b22953f9534a3aa32cd130092797
--- /dev/null
+++ b/ui/views/test/menu_runner_test_api.h
@@ -0,0 +1,37 @@
+// Copyright 2013 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.
+
+#ifndef UI_VIEWS_TEST_MENU_RUNNER_TEST_API_H_
+#define UI_VIEWS_TEST_MENU_RUNNER_TEST_API_H_
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace views {
+
+class MenuRunner;
+class MenuRunnerHandler;
+
+namespace test {
+
+// A wrapper of MenuRunner to use testing methods of MenuRunner.
+class MenuRunnerTestAPI {
+ public:
+ explicit MenuRunnerTestAPI(MenuRunner* menu_runner);
+ ~MenuRunnerTestAPI();
+
+ // Sets the menu runner handler.
+ void SetMenuRunnerHandler(scoped_ptr<MenuRunnerHandler> menu_runner_handler);
+
+ private:
+ MenuRunner* menu_runner_;
+
+ DISALLOW_COPY_AND_ASSIGN(MenuRunnerTestAPI);
+};
+
+} // namespace test
+
+} // namespace views
+
+#endif // UI_VIEWS_TEST_MENU_RUNNER_TEST_API_H_
« no previous file with comments | « ui/views/controls/menu/menu_runner_handler.h ('k') | ui/views/test/menu_runner_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698