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

Side by Side Diff: views/controls/menu/menu_host.h

Issue 8536004: Cleanup: Remove unneeded forward declarations in views. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | « no previous file | views/controls/menu/menu_item_view.h » ('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 VIEWS_CONTROLS_MENU_MENU_HOST_H_ 5 #ifndef VIEWS_CONTROLS_MENU_MENU_HOST_H_
6 #define VIEWS_CONTROLS_MENU_MENU_HOST_H_ 6 #define VIEWS_CONTROLS_MENU_MENU_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
11 #include "views/controls/menu/native_menu_host_delegate.h" 11 #include "views/controls/menu/native_menu_host_delegate.h"
12 #include "views/widget/widget.h" 12 #include "views/widget/widget.h"
13 13
14 namespace views { 14 namespace views {
15 15
16 class NativeMenuHost;
17 class NativeWidget; 16 class NativeWidget;
18 class SubmenuView; 17 class SubmenuView;
19 class View; 18 class View;
20 class Widget; 19 class Widget;
21 20
22 // SubmenuView uses a MenuHost to house the SubmenuView. 21 // SubmenuView uses a MenuHost to house the SubmenuView.
23 // 22 //
24 // SubmenuView owns the MenuHost. When SubmenuView is done with the MenuHost 23 // SubmenuView owns the MenuHost. When SubmenuView is done with the MenuHost
25 // |DestroyMenuHost| is invoked. The one exception to this is if the native 24 // |DestroyMenuHost| is invoked. The one exception to this is if the native
26 // OS destroys the widget out from under us, in which case |MenuHostDestroyed| 25 // OS destroys the widget out from under us, in which case |MenuHostDestroyed|
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 70
72 // If true and capture is lost we don't notify the delegate. 71 // If true and capture is lost we don't notify the delegate.
73 bool ignore_capture_lost_; 72 bool ignore_capture_lost_;
74 73
75 DISALLOW_COPY_AND_ASSIGN(MenuHost); 74 DISALLOW_COPY_AND_ASSIGN(MenuHost);
76 }; 75 };
77 76
78 } // namespace views 77 } // namespace views
79 78
80 #endif // VIEWS_CONTROLS_MENU_MENU_HOST_H_ 79 #endif // VIEWS_CONTROLS_MENU_MENU_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | views/controls/menu/menu_item_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698