OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_VIEWS_TOUCHUI_TOUCH_SELECTION_MENU_RUNNER_VIEWS_H_ | 5 #ifndef UI_VIEWS_TOUCHUI_TOUCH_SELECTION_MENU_RUNNER_VIEWS_H_ |
6 #define UI_VIEWS_TOUCHUI_TOUCH_SELECTION_MENU_RUNNER_VIEWS_H_ | 6 #define UI_VIEWS_TOUCHUI_TOUCH_SELECTION_MENU_RUNNER_VIEWS_H_ |
7 | 7 |
| 8 #include <memory> |
| 9 |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "ui/touch_selection/touch_selection_menu_runner.h" | 11 #include "ui/touch_selection/touch_selection_menu_runner.h" |
11 #include "ui/views/views_export.h" | 12 #include "ui/views/views_export.h" |
12 | 13 |
13 namespace views { | 14 namespace views { |
14 class Button; | 15 class Button; |
15 class Widget; | 16 class Widget; |
16 | 17 |
17 // Views implementation for TouchSelectionMenuRunner. | 18 // Views implementation for TouchSelectionMenuRunner. |
18 class VIEWS_EXPORT TouchSelectionMenuRunnerViews | 19 class VIEWS_EXPORT TouchSelectionMenuRunnerViews |
19 : public ui::TouchSelectionMenuRunner { | 20 : public ui::TouchSelectionMenuRunner { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // A pointer to the currently running menu, or |nullptr| if no menu is | 55 // A pointer to the currently running menu, or |nullptr| if no menu is |
55 // running. The menu manages its own lifetime and deletes itself when closed. | 56 // running. The menu manages its own lifetime and deletes itself when closed. |
56 Menu* menu_; | 57 Menu* menu_; |
57 | 58 |
58 DISALLOW_COPY_AND_ASSIGN(TouchSelectionMenuRunnerViews); | 59 DISALLOW_COPY_AND_ASSIGN(TouchSelectionMenuRunnerViews); |
59 }; | 60 }; |
60 | 61 |
61 } // namespace views | 62 } // namespace views |
62 | 63 |
63 #endif // UI_VIEWS_TOUCHUI_TOUCH_SELECTION_MENU_RUNNER_VIEWS_H_ | 64 #endif // UI_VIEWS_TOUCHUI_TOUCH_SELECTION_MENU_RUNNER_VIEWS_H_ |
OLD | NEW |