Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_OTHER_DEVICE_MENU_VIEWS_H_ | |
| 6 #define CHROME_BROWSER_UI_VIEWS_OTHER_DEVICE_MENU_VIEWS_H_ | |
| 7 | |
| 8 #include "base/memory/scoped_ptr.h" | |
|
tfarina
2012/10/29 01:37:43
include basictypes for DISALLOW_ and compiler_spec
| |
| 9 #include "chrome/browser/ui/search/other_device_menu_controller.h" | |
| 10 | |
| 11 namespace gfx{ | |
|
tfarina
2012/10/29 01:37:43
nit: one whitespace between gfx and {
jeremycho
2012/10/29 19:55:28
Done.
| |
| 12 class Point; | |
| 13 } | |
| 14 | |
| 15 namespace ui { | |
| 16 class SimpleMenuModel; | |
| 17 } | |
| 18 | |
| 19 namespace views { | |
| 20 class MenuRunner; | |
| 21 } | |
| 22 | |
| 23 class OtherDeviceMenuViews : public OtherDeviceMenu { | |
| 24 public: | |
| 25 explicit OtherDeviceMenuViews(ui::SimpleMenuModel* menu_model); | |
| 26 virtual ~OtherDeviceMenuViews(); | |
| 27 | |
| 28 virtual void ShowMenu( | |
| 29 gfx::NativeWindow window, const gfx::Point& location) OVERRIDE; | |
|
tfarina
2012/10/29 01:37:43
nit: one arg per line!
jeremycho
2012/10/29 19:55:28
Done.
| |
| 30 | |
| 31 private: | |
| 32 ui::SimpleMenuModel* menu_model_; // Owned by the controller. | |
|
tfarina
2012/10/29 01:37:43
which controller? better to write the class name.
jeremycho
2012/10/29 19:55:28
Done.
| |
| 33 scoped_ptr<views::MenuRunner> menu_runner_; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(OtherDeviceMenuViews); | |
| 36 }; | |
| 37 | |
| 38 #endif // CHROME_BROWSER_UI_VIEWS_OTHER_DEVICE_MENU_VIEWS_H_ | |
| OLD | NEW |