| 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 4210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4221 void RenderView::OnReservePageIDRange(int size_of_range) { | 4221 void RenderView::OnReservePageIDRange(int size_of_range) { |
| 4222 next_page_id_ += size_of_range + 1; | 4222 next_page_id_ += size_of_range + 1; |
| 4223 } | 4223 } |
| 4224 | 4224 |
| 4225 void RenderView::OnDragTargetDragEnter(const WebDropData& drop_data, | 4225 void RenderView::OnDragTargetDragEnter(const WebDropData& drop_data, |
| 4226 const gfx::Point& client_point, | 4226 const gfx::Point& client_point, |
| 4227 const gfx::Point& screen_point, | 4227 const gfx::Point& screen_point, |
| 4228 WebDragOperationsMask ops) { | 4228 WebDragOperationsMask ops) { |
| 4229 WebDragOperation operation = webview()->dragTargetDragEnter( | 4229 WebDragOperation operation = webview()->dragTargetDragEnter( |
| 4230 drop_data.ToDragData(), | 4230 drop_data.ToDragData(), |
| 4231 0, // drag identity, unused | |
| 4232 client_point, | 4231 client_point, |
| 4233 screen_point, | 4232 screen_point, |
| 4234 ops); | 4233 ops); |
| 4235 | 4234 |
| 4236 Send(new DragHostMsg_UpdateDragCursor(routing_id_, operation)); | 4235 Send(new DragHostMsg_UpdateDragCursor(routing_id_, operation)); |
| 4237 } | 4236 } |
| 4238 | 4237 |
| 4239 void RenderView::OnDragTargetDragOver(const gfx::Point& client_point, | 4238 void RenderView::OnDragTargetDragOver(const gfx::Point& client_point, |
| 4240 const gfx::Point& screen_point, | 4239 const gfx::Point& screen_point, |
| 4241 WebDragOperationsMask ops) { | 4240 WebDragOperationsMask ops) { |
| (...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5157 const webkit_glue::CustomContextMenuContext& custom_context) { | 5156 const webkit_glue::CustomContextMenuContext& custom_context) { |
| 5158 if (custom_context.is_pepper_menu) | 5157 if (custom_context.is_pepper_menu) |
| 5159 pepper_delegate_.OnContextMenuClosed(custom_context); | 5158 pepper_delegate_.OnContextMenuClosed(custom_context); |
| 5160 else | 5159 else |
| 5161 context_menu_node_.reset(); | 5160 context_menu_node_.reset(); |
| 5162 } | 5161 } |
| 5163 | 5162 |
| 5164 void RenderView::OnNetworkStateChanged(bool online) { | 5163 void RenderView::OnNetworkStateChanged(bool online) { |
| 5165 WebNetworkStateNotifier::setOnLine(online); | 5164 WebNetworkStateNotifier::setOnLine(online); |
| 5166 } | 5165 } |
| OLD | NEW |