| Index: views/view.cc
|
| diff --git a/views/view.cc b/views/view.cc
|
| index fb377678788f32fa33c3e661d32ef623ec415dd8..5aeeb20be1546c8aa699564402d7debbaa316c95 100644
|
| --- a/views/view.cc
|
| +++ b/views/view.cc
|
| @@ -801,7 +801,10 @@ bool View::OnMouseDragged(const MouseEvent& event) {
|
| return false;
|
| }
|
|
|
| -void View::OnMouseReleased(const MouseEvent& event, bool canceled) {
|
| +void View::OnMouseReleased(const MouseEvent& event) {
|
| +}
|
| +
|
| +void View::OnMouseCaptureLost() {
|
| }
|
|
|
| void View::OnMouseMoved(const MouseEvent& event) {
|
| @@ -1557,18 +1560,18 @@ bool View::ProcessMouseDragged(const MouseEvent& event, DragInfo* drag_info) {
|
| return (context_menu_controller != NULL) || possible_drag;
|
| }
|
|
|
| -void View::ProcessMouseReleased(const MouseEvent& event, bool canceled) {
|
| - if (!canceled && context_menu_controller_ && event.IsOnlyRightMouseButton()) {
|
| +void View::ProcessMouseReleased(const MouseEvent& event) {
|
| + if (context_menu_controller_ && event.IsOnlyRightMouseButton()) {
|
| // Assume that if there is a context menu controller we won't be deleted
|
| // from mouse released.
|
| gfx::Point location(event.location());
|
| - OnMouseReleased(event, canceled);
|
| + OnMouseReleased(event);
|
| if (HitTest(location)) {
|
| ConvertPointToScreen(this, &location);
|
| ShowContextMenu(location, true);
|
| }
|
| } else {
|
| - OnMouseReleased(event, canceled);
|
| + OnMouseReleased(event);
|
| }
|
| // WARNING: we may have been deleted.
|
| }
|
|
|