OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ui/views/controls/menu/menu_runner_impl_adapter.h" | 5 #include "ui/views/controls/menu/menu_runner_impl_adapter.h" |
6 | 6 |
7 #include "ui/views/controls/menu/menu_model_adapter.h" | 7 #include "ui/views/controls/menu/menu_model_adapter.h" |
8 #include "ui/views/controls/menu/menu_runner_impl.h" | 8 #include "ui/views/controls/menu/menu_runner_impl.h" |
9 | 9 |
10 namespace views { | 10 namespace views { |
(...skipping 11 matching lines...) Expand all Loading... |
22 void MenuRunnerImplAdapter::Release() { | 22 void MenuRunnerImplAdapter::Release() { |
23 impl_->Release(); | 23 impl_->Release(); |
24 delete this; | 24 delete this; |
25 } | 25 } |
26 | 26 |
27 MenuRunner::RunResult MenuRunnerImplAdapter::RunMenuAt( | 27 MenuRunner::RunResult MenuRunnerImplAdapter::RunMenuAt( |
28 Widget* parent, | 28 Widget* parent, |
29 MenuButton* button, | 29 MenuButton* button, |
30 const gfx::Rect& bounds, | 30 const gfx::Rect& bounds, |
31 MenuAnchorPosition anchor, | 31 MenuAnchorPosition anchor, |
32 int32 types) { | 32 int32_t types) { |
33 return impl_->RunMenuAt(parent, button, bounds, anchor, types); | 33 return impl_->RunMenuAt(parent, button, bounds, anchor, types); |
34 } | 34 } |
35 | 35 |
36 void MenuRunnerImplAdapter::Cancel() { | 36 void MenuRunnerImplAdapter::Cancel() { |
37 impl_->Cancel(); | 37 impl_->Cancel(); |
38 } | 38 } |
39 | 39 |
40 base::TimeDelta MenuRunnerImplAdapter::GetClosingEventTime() const { | 40 base::TimeDelta MenuRunnerImplAdapter::GetClosingEventTime() const { |
41 return impl_->GetClosingEventTime(); | 41 return impl_->GetClosingEventTime(); |
42 } | 42 } |
43 | 43 |
44 MenuRunnerImplAdapter::~MenuRunnerImplAdapter() { | 44 MenuRunnerImplAdapter::~MenuRunnerImplAdapter() { |
45 } | 45 } |
46 | 46 |
47 } // namespace internal | 47 } // namespace internal |
48 } // namespace views | 48 } // namespace views |
OLD | NEW |