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/basictypes.h" |
| 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "chrome/browser/ui/search/other_device_menu_controller.h" |
| 12 |
| 13 namespace gfx { |
| 14 class Point; |
| 15 } |
| 16 |
| 17 namespace ui { |
| 18 class SimpleMenuModel; |
| 19 } |
| 20 |
| 21 namespace views { |
| 22 class MenuRunner; |
| 23 } |
| 24 |
| 25 class OtherDeviceMenuViews : public OtherDeviceMenu { |
| 26 public: |
| 27 explicit OtherDeviceMenuViews(ui::SimpleMenuModel* menu_model); |
| 28 virtual ~OtherDeviceMenuViews(); |
| 29 |
| 30 virtual void ShowMenu(gfx::NativeWindow window, |
| 31 const gfx::Point& location) OVERRIDE; |
| 32 |
| 33 private: |
| 34 ui::SimpleMenuModel* menu_model_; // Owned by OtherDeviceMenuController. |
| 35 scoped_ptr<views::MenuRunner> menu_runner_; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(OtherDeviceMenuViews); |
| 38 }; |
| 39 |
| 40 #endif // CHROME_BROWSER_UI_VIEWS_OTHER_DEVICE_MENU_VIEWS_H_ |
OLD | NEW |