| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |