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

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

Issue 7390032: Fixes regression from menu refactoring. The old windows code wasn't (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename field Created 9 years, 5 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
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/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 virtual bool ShouldReleaseCaptureOnMouseReleased() const OVERRIDE; 66 virtual bool ShouldReleaseCaptureOnMouseReleased() const OVERRIDE;
67 virtual void OnMouseCaptureLost() OVERRIDE; 67 virtual void OnMouseCaptureLost() OVERRIDE;
68 virtual void OnNativeWidgetDestroyed() OVERRIDE; 68 virtual void OnNativeWidgetDestroyed() OVERRIDE;
69 69
70 // The view we contain. 70 // The view we contain.
71 SubmenuView* submenu_; 71 SubmenuView* submenu_;
72 72
73 // If true, DestroyMenuHost has been invoked. 73 // If true, DestroyMenuHost has been invoked.
74 bool destroying_; 74 bool destroying_;
75 75
76 // If true, we're attempting to Show. 76 // If true and capture is lost we don't notify the delegate.
77 bool showing_; 77 bool ignore_capture_lost_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(MenuHost); 79 DISALLOW_COPY_AND_ASSIGN(MenuHost);
80 }; 80 };
81 81
82 } // namespace views 82 } // namespace views
83 83
84 #endif // VIEWS_CONTROLS_MENU_MENU_HOST_H_ 84 #endif // VIEWS_CONTROLS_MENU_MENU_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ('k') | views/controls/menu/menu_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698