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

Side by Side Diff: ui/views/controls/menu/native_menu_win.h

Issue 8771006: views: Move the remaining file from views/ to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
« no previous file with comments | « ui/views/controls/menu/native_menu_gtk.cc ('k') | ui/views/controls/message_box_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_CONTROLS_MENU_NATIVE_MENU_WIN_H_ 5 #ifndef UI_VIEWS_CONTROLS_MENU_NATIVE_MENU_WIN_H_
6 #define UI_VIEWS_CONTROLS_MENU_NATIVE_MENU_WIN_H_ 6 #define UI_VIEWS_CONTROLS_MENU_NATIVE_MENU_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "ui/base/models/simple_menu_model.h" 16 #include "ui/base/models/simple_menu_model.h"
17 #include "ui/views/controls/menu/menu_wrapper.h" 17 #include "ui/views/controls/menu/menu_wrapper.h"
18 #include "views/views_export.h" 18 #include "ui/views/views_export.h"
19 19
20 namespace views { 20 namespace views {
21 21
22 // A Windows implementation of MenuWrapper. 22 // A Windows implementation of MenuWrapper.
23 // TODO(beng): rename to MenuWin once the old class is dead. 23 // TODO(beng): rename to MenuWin once the old class is dead.
24 class VIEWS_EXPORT NativeMenuWin : public MenuWrapper { 24 class VIEWS_EXPORT NativeMenuWin : public MenuWrapper {
25 public: 25 public:
26 // Construct a NativeMenuWin, with a model and delegate. If |system_menu_for| 26 // Construct a NativeMenuWin, with a model and delegate. If |system_menu_for|
27 // is non-NULL, the NativeMenuWin wraps the system menu for that window. 27 // is non-NULL, the NativeMenuWin wraps the system menu for that window.
28 // The caller owns the model and the delegate. 28 // The caller owns the model and the delegate.
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // Overridden from SimpleMenuModel: 175 // Overridden from SimpleMenuModel:
176 virtual int FlipIndex(int index) const { return GetItemCount() - index - 1; } 176 virtual int FlipIndex(int index) const { return GetItemCount() - index - 1; }
177 177
178 private: 178 private:
179 DISALLOW_COPY_AND_ASSIGN(SystemMenuModel); 179 DISALLOW_COPY_AND_ASSIGN(SystemMenuModel);
180 }; 180 };
181 181
182 } // namespace views 182 } // namespace views
183 183
184 #endif // UI_VIEWS_CONTROLS_MENU_NATIVE_MENU_WIN_H_ 184 #endif // UI_VIEWS_CONTROLS_MENU_NATIVE_MENU_WIN_H_
OLDNEW
« no previous file with comments | « ui/views/controls/menu/native_menu_gtk.cc ('k') | ui/views/controls/message_box_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698