| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1244 if (delegate_ && | 1244 if (delegate_ && |
| 1245 event.wheelTicksY && | 1245 event.wheelTicksY && |
| 1246 (event.modifiers & WebKit::WebInputEvent::ControlKey)) { | 1246 (event.modifiers & WebKit::WebInputEvent::ControlKey)) { |
| 1247 delegate_->ContentsZoomChange(event.wheelTicksY > 0); | 1247 delegate_->ContentsZoomChange(event.wheelTicksY > 0); |
| 1248 return true; | 1248 return true; |
| 1249 } | 1249 } |
| 1250 | 1250 |
| 1251 return false; | 1251 return false; |
| 1252 } | 1252 } |
| 1253 | 1253 |
| 1254 void WebContentsImpl::HandleMouseMove() { |
| 1255 if (delegate_) { |
| 1256 delegate_->ContentsMouseEvent( |
| 1257 this, gfx::Screen::GetNativeScreen()->GetCursorScreenPoint(), true); |
| 1258 } |
| 1259 } |
| 1260 |
| 1254 void WebContentsImpl::HandleMouseDown() { | 1261 void WebContentsImpl::HandleMouseDown() { |
| 1255 if (delegate_) | 1262 if (delegate_) |
| 1256 delegate_->HandleMouseDown(); | 1263 delegate_->HandleMouseDown(); |
| 1257 } | 1264 } |
| 1258 | 1265 |
| 1259 void WebContentsImpl::HandleMouseUp() { | 1266 void WebContentsImpl::HandleMouseUp() { |
| 1260 if (delegate_) | 1267 if (delegate_) |
| 1261 delegate_->HandleMouseUp(); | 1268 delegate_->HandleMouseUp(); |
| 1262 } | 1269 } |
| 1263 | 1270 |
| (...skipping 2183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3447 } | 3454 } |
| 3448 | 3455 |
| 3449 BrowserPluginGuestManager* | 3456 BrowserPluginGuestManager* |
| 3450 WebContentsImpl::GetBrowserPluginGuestManager() const { | 3457 WebContentsImpl::GetBrowserPluginGuestManager() const { |
| 3451 return static_cast<BrowserPluginGuestManager*>( | 3458 return static_cast<BrowserPluginGuestManager*>( |
| 3452 GetBrowserContext()->GetUserData( | 3459 GetBrowserContext()->GetUserData( |
| 3453 browser_plugin::kBrowserPluginGuestManagerKeyName)); | 3460 browser_plugin::kBrowserPluginGuestManagerKeyName)); |
| 3454 } | 3461 } |
| 3455 | 3462 |
| 3456 } // namespace content | 3463 } // namespace content |
| OLD | NEW |