Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: chrome/browser/ui/views/frame/system_menu_model.h

Issue 9966007: views: Extract SystemMenuModel from native_menu_win.*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: include string16 Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame_win.cc ('k') | chrome/browser/ui/views/frame/system_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698