summaryrefslogtreecommitdiffstats
path: root/chrome/views/button_dropdown.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/button_dropdown.cc')
-rw-r--r--chrome/views/button_dropdown.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/views/button_dropdown.cc b/chrome/views/button_dropdown.cc
index 6c587ae..6428598 100644
--- a/chrome/views/button_dropdown.cc
+++ b/chrome/views/button_dropdown.cc
@@ -48,7 +48,7 @@ bool ButtonDropDown::OnMousePressed(const MouseEvent& e) {
// Schedule a task that will show the menu.
MessageLoop::current()->PostDelayedTask(FROM_HERE,
show_menu_factory_.NewRunnableMethod(&ButtonDropDown::ShowDropDownMenu,
- GetWidget()->GetHWND()),
+ GetWidget()->GetNativeView()),
kMenuTimerDelay);
}
@@ -72,7 +72,7 @@ void ButtonDropDown::OnMouseReleased(const MouseEvent& e, bool canceled) {
// update the appearance synchronously.
SetState(BS_PUSHED);
PaintNow();
- ShowDropDownMenu(GetWidget()->GetHWND());
+ ShowDropDownMenu(GetWidget()->GetNativeView());
}
}
@@ -90,7 +90,7 @@ bool ButtonDropDown::OnMouseDragged(const MouseEvent& e) {
// it immediately.
if (e.y() > y_position_on_lbuttondown_ + dragging_threshold) {
show_menu_factory_.RevokeAll();
- ShowDropDownMenu(GetWidget()->GetHWND());
+ ShowDropDownMenu(GetWidget()->GetNativeView());
}
}
@@ -111,7 +111,7 @@ void ButtonDropDown::ShowContextMenu(int x, int y, bool is_mouse_gesture) {
// update the appearance synchronously.
SetState(BS_PUSHED);
PaintNow();
- ShowDropDownMenu(GetWidget()->GetHWND());
+ ShowDropDownMenu(GetWidget()->GetNativeView());
SetState(BS_HOT);
}