| 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_FRAME_SYSTEM_MENU_MODEL_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_SYSTEM_MENU_MODEL_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" |
| 11 #include "ui/base/models/simple_menu_model.h" |
| 12 |
| 13 // A SimpleMenuModel subclass that allows the system menu for a window to be |
| 14 // wrapped. |
| 15 class SystemMenuModel : public ui::SimpleMenuModel { |
| 16 public: |
| 17 explicit SystemMenuModel(ui::SimpleMenuModel::Delegate* delegate); |
| 18 virtual ~SystemMenuModel(); |
| 19 |
| 20 // Overridden from ui::MenuModel: |
| 21 virtual int GetFirstItemIndex(gfx::NativeMenu native_menu) const OVERRIDE; |
| 22 |
| 23 protected: |
| 24 // Overridden from ui::SimpleMenuModel: |
| 25 virtual int FlipIndex(int index) const OVERRIDE; |
| 26 |
| 27 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(SystemMenuModel); |
| 29 }; |
| 30 |
| 31 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_SYSTEM_MENU_MODEL_H_ |
| OLD | NEW |