| 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" |
| 9 #include "chrome/browser/ui/search/other_device_menu_controller.h" |
| 10 |
| 11 namespace gfx{ |
| 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; |
| 30 |
| 31 |
| 32 private: |
| 33 ui::SimpleMenuModel* menu_model_; // Owned by the controller. |
| 34 scoped_ptr<views::MenuRunner> menu_runner_; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(OtherDeviceMenuViews); |
| 37 }; |
| 38 |
| 39 #endif // CHROME_BROWSER_UI_VIEWS_OTHER_DEVICE_MENU_VIEWS_H_ |
| OLD | NEW |