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 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1250 event.wheelTicksY && | 1250 event.wheelTicksY && |
1251 (event.modifiers & WebKit::WebInputEvent::ControlKey)) { | 1251 (event.modifiers & WebKit::WebInputEvent::ControlKey)) { |
1252 delegate_->ContentsZoomChange(event.wheelTicksY > 0); | 1252 delegate_->ContentsZoomChange(event.wheelTicksY > 0); |
1253 return true; | 1253 return true; |
1254 } | 1254 } |
1255 #endif | 1255 #endif |
1256 | 1256 |
1257 return false; | 1257 return false; |
1258 } | 1258 } |
1259 | 1259 |
1260 void WebContentsImpl::HandleMouseMove() { | |
1261 if (delegate_) { | |
1262 delegate_->ContentsMouseEvent( | |
1263 this, gfx::Screen::GetNativeScreen()->GetCursorScreenPoint(), true); | |
1264 } | |
1265 } | |
1266 | |
1267 void WebContentsImpl::HandleMouseDown() { | 1260 void WebContentsImpl::HandleMouseDown() { |
1268 if (delegate_) | 1261 if (delegate_) |
1269 delegate_->HandleMouseDown(); | 1262 delegate_->HandleMouseDown(); |
1270 } | 1263 } |
1271 | 1264 |
1272 void WebContentsImpl::HandleMouseUp() { | 1265 void WebContentsImpl::HandleMouseUp() { |
1273 if (delegate_) | 1266 if (delegate_) |
1274 delegate_->HandleMouseUp(); | 1267 delegate_->HandleMouseUp(); |
1275 } | 1268 } |
1276 | 1269 |
(...skipping 2140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3417 } | 3410 } |
3418 | 3411 |
3419 BrowserPluginGuestManager* | 3412 BrowserPluginGuestManager* |
3420 WebContentsImpl::GetBrowserPluginGuestManager() const { | 3413 WebContentsImpl::GetBrowserPluginGuestManager() const { |
3421 return static_cast<BrowserPluginGuestManager*>( | 3414 return static_cast<BrowserPluginGuestManager*>( |
3422 GetBrowserContext()->GetUserData( | 3415 GetBrowserContext()->GetUserData( |
3423 browser_plugin::kBrowserPluginGuestManagerKeyName)); | 3416 browser_plugin::kBrowserPluginGuestManagerKeyName)); |
3424 } | 3417 } |
3425 | 3418 |
3426 } // namespace content | 3419 } // namespace content |
OLD | NEW |