| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #include "base/macros.h" |
| 5 #include "ui/aura/window.h" | 6 #include "ui/aura/window.h" |
| 6 #include "ui/aura/window_observer.h" | 7 #include "ui/aura/window_observer.h" |
| 7 #include "ui/views/controls/menu/menu_runner.h" | 8 #include "ui/views/controls/menu/menu_runner.h" |
| 8 #include "ui/views/widget/widget.h" | 9 #include "ui/views/widget/widget.h" |
| 9 | 10 |
| 10 namespace views { | 11 namespace views { |
| 11 namespace internal { | 12 namespace internal { |
| 12 | 13 |
| 13 // DisplayChangeListener implementation for aura. Cancels the menu any time the | 14 // DisplayChangeListener implementation for aura. Cancels the menu any time the |
| 14 // root window bounds change. | 15 // root window bounds change. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 } | 60 } |
| 60 | 61 |
| 61 // static | 62 // static |
| 62 DisplayChangeListener* DisplayChangeListener::Create(Widget* widget, | 63 DisplayChangeListener* DisplayChangeListener::Create(Widget* widget, |
| 63 MenuRunner* runner) { | 64 MenuRunner* runner) { |
| 64 return new AuraDisplayChangeListener(widget, runner); | 65 return new AuraDisplayChangeListener(widget, runner); |
| 65 } | 66 } |
| 66 | 67 |
| 67 } // namespace internal | 68 } // namespace internal |
| 68 } // namespace views | 69 } // namespace views |
| OLD | NEW |