OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/browser/renderer_host/render_view_host.h" | 5 #include "chrome/browser/renderer_host/render_view_host.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
(...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1270 // the renderer just send us the ones we care abount, or maybe the view | 1270 // the renderer just send us the ones we care abount, or maybe the view |
1271 // should be able to decide which ones it wants or not? | 1271 // should be able to decide which ones it wants or not? |
1272 if ((event.type == WebInputEvent::RawKeyDown) || | 1272 if ((event.type == WebInputEvent::RawKeyDown) || |
1273 (event.type == WebInputEvent::KeyDown) || | 1273 (event.type == WebInputEvent::KeyDown) || |
1274 (event.type == WebInputEvent::Char)) { | 1274 (event.type == WebInputEvent::Char)) { |
1275 view->HandleKeyboardEvent(event); | 1275 view->HandleKeyboardEvent(event); |
1276 } | 1276 } |
1277 } | 1277 } |
1278 } | 1278 } |
1279 | 1279 |
1280 void RenderViewHost::OnEnterOrSpace() { | 1280 void RenderViewHost::OnUserGesture() { |
1281 delegate_->OnEnterOrSpace(); | 1281 delegate_->OnUserGesture(); |
1282 } | 1282 } |
1283 | 1283 |
1284 void RenderViewHost::OnMissingPluginStatus(int status) { | 1284 void RenderViewHost::OnMissingPluginStatus(int status) { |
1285 delegate_->OnMissingPluginStatus(status); | 1285 delegate_->OnMissingPluginStatus(status); |
1286 } | 1286 } |
1287 | 1287 |
1288 void RenderViewHost::UpdateBackForwardListCount() { | 1288 void RenderViewHost::UpdateBackForwardListCount() { |
1289 int back_list_count = 0, forward_list_count = 0; | 1289 int back_list_count = 0, forward_list_count = 0; |
1290 delegate_->GetHistoryListCount(&back_list_count, &forward_list_count); | 1290 delegate_->GetHistoryListCount(&back_list_count, &forward_list_count); |
1291 Send(new ViewMsg_UpdateBackForwardListCount( | 1291 Send(new ViewMsg_UpdateBackForwardListCount( |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1441 } | 1441 } |
1442 | 1442 |
1443 void RenderViewHost::OnAccessibilityFocusChange(int acc_obj_id) { | 1443 void RenderViewHost::OnAccessibilityFocusChange(int acc_obj_id) { |
1444 #if defined(OS_WIN) | 1444 #if defined(OS_WIN) |
1445 BrowserAccessibilityManager::GetInstance()-> | 1445 BrowserAccessibilityManager::GetInstance()-> |
1446 ChangeAccessibilityFocus(acc_obj_id, process()->pid(), routing_id()); | 1446 ChangeAccessibilityFocus(acc_obj_id, process()->pid(), routing_id()); |
1447 #else | 1447 #else |
1448 // TODO(port): accessibility not yet implemented. See http://crbug.com/8288. | 1448 // TODO(port): accessibility not yet implemented. See http://crbug.com/8288. |
1449 #endif | 1449 #endif |
1450 } | 1450 } |
OLD | NEW |