Chromium Code Reviews| 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 #include "content/renderer/render_view.h" | 5 #include "content/renderer/render_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 4243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4254 remote_addr); | 4254 remote_addr); |
| 4255 } | 4255 } |
| 4256 #endif | 4256 #endif |
| 4257 | 4257 |
| 4258 void RenderView::OnContextMenuClosed( | 4258 void RenderView::OnContextMenuClosed( |
| 4259 const webkit_glue::CustomContextMenuContext& custom_context) { | 4259 const webkit_glue::CustomContextMenuContext& custom_context) { |
| 4260 if (custom_context.is_pepper_menu) | 4260 if (custom_context.is_pepper_menu) |
| 4261 pepper_delegate_.OnContextMenuClosed(custom_context); | 4261 pepper_delegate_.OnContextMenuClosed(custom_context); |
| 4262 else | 4262 else |
| 4263 context_menu_node_.reset(); | 4263 context_menu_node_.reset(); |
| 4264 // Re-send the cursor to the view so that it can display the correct cursor | |
| 4265 // after the menu is closed (rather than waiting for a mouse move event). | |
| 4266 Send(new ViewHostMsg_SetCursor(routing_id_, current_cursor_)); | |
|
brettw
2011/07/06 17:04:31
How do you know the old cursor is the right one to
| |
| 4264 } | 4267 } |
| 4265 | 4268 |
| 4266 void RenderView::OnNetworkStateChanged(bool online) { | 4269 void RenderView::OnNetworkStateChanged(bool online) { |
| 4267 WebNetworkStateNotifier::setOnLine(online); | 4270 WebNetworkStateNotifier::setOnLine(online); |
| 4268 } | 4271 } |
| OLD | NEW |