| 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/renderer_host/render_view_host.h" | 5 #include "content/browser/renderer_host/render_view_host.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1231 } | 1231 } |
| 1232 | 1232 |
| 1233 void RenderViewHost::OnMsgFocus() { | 1233 void RenderViewHost::OnMsgFocus() { |
| 1234 delegate_->Activate(); | 1234 delegate_->Activate(); |
| 1235 } | 1235 } |
| 1236 | 1236 |
| 1237 void RenderViewHost::OnMsgBlur() { | 1237 void RenderViewHost::OnMsgBlur() { |
| 1238 delegate_->Deactivate(); | 1238 delegate_->Deactivate(); |
| 1239 } | 1239 } |
| 1240 | 1240 |
| 1241 gfx::Rect RenderViewHost::GetRootWindowResizerRect() const { |
| 1242 return delegate_->GetRootWindowResizerRect(); |
| 1243 } |
| 1244 |
| 1241 void RenderViewHost::ForwardMouseEvent( | 1245 void RenderViewHost::ForwardMouseEvent( |
| 1242 const WebKit::WebMouseEvent& mouse_event) { | 1246 const WebKit::WebMouseEvent& mouse_event) { |
| 1243 | 1247 |
| 1244 // We make a copy of the mouse event because | 1248 // We make a copy of the mouse event because |
| 1245 // RenderWidgetHost::ForwardMouseEvent will delete |mouse_event|. | 1249 // RenderWidgetHost::ForwardMouseEvent will delete |mouse_event|. |
| 1246 WebKit::WebMouseEvent event_copy(mouse_event); | 1250 WebKit::WebMouseEvent event_copy(mouse_event); |
| 1247 RenderWidgetHost::ForwardMouseEvent(event_copy); | 1251 RenderWidgetHost::ForwardMouseEvent(event_copy); |
| 1248 | 1252 |
| 1249 switch (event_copy.type) { | 1253 switch (event_copy.type) { |
| 1250 case WebInputEvent::MouseMove: | 1254 case WebInputEvent::MouseMove: |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1541 | 1545 |
| 1542 void RenderViewHost::OnWebUISend(const GURL& source_url, | 1546 void RenderViewHost::OnWebUISend(const GURL& source_url, |
| 1543 const std::string& name, | 1547 const std::string& name, |
| 1544 const base::ListValue& args) { | 1548 const base::ListValue& args) { |
| 1545 delegate_->WebUISend(this, source_url, name, args); | 1549 delegate_->WebUISend(this, source_url, name, args); |
| 1546 } | 1550 } |
| 1547 | 1551 |
| 1548 void RenderViewHost::ClearPowerSaveBlockers() { | 1552 void RenderViewHost::ClearPowerSaveBlockers() { |
| 1549 STLDeleteValues(&power_save_blockers_); | 1553 STLDeleteValues(&power_save_blockers_); |
| 1550 } | 1554 } |
| OLD | NEW |