| 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 } | 360 } |
| 361 | 361 |
| 362 void RenderViewHost::Stop() { | 362 void RenderViewHost::Stop() { |
| 363 Send(new ViewMsg_Stop(routing_id())); | 363 Send(new ViewMsg_Stop(routing_id())); |
| 364 } | 364 } |
| 365 | 365 |
| 366 bool RenderViewHost::PrintPages() { | 366 bool RenderViewHost::PrintPages() { |
| 367 return Send(new ViewMsg_PrintPages(routing_id())); | 367 return Send(new ViewMsg_PrintPages(routing_id())); |
| 368 } | 368 } |
| 369 | 369 |
| 370 void RenderViewHost::PrintingDone(int document_cookie, bool success) { |
| 371 Send(new ViewMsg_PrintingDone(routing_id(), document_cookie, success)); |
| 372 } |
| 373 |
| 370 void RenderViewHost::StartFinding(int request_id, | 374 void RenderViewHost::StartFinding(int request_id, |
| 371 const string16& search_text, | 375 const string16& search_text, |
| 372 bool forward, | 376 bool forward, |
| 373 bool match_case, | 377 bool match_case, |
| 374 bool find_next) { | 378 bool find_next) { |
| 375 if (search_text.empty()) | 379 if (search_text.empty()) |
| 376 return; | 380 return; |
| 377 | 381 |
| 378 WebFindOptions options; | 382 WebFindOptions options; |
| 379 options.forward = forward; | 383 options.forward = forward; |
| (...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1487 } | 1491 } |
| 1488 | 1492 |
| 1489 void RenderViewHost::OnAccessibilityFocusChange(int acc_obj_id) { | 1493 void RenderViewHost::OnAccessibilityFocusChange(int acc_obj_id) { |
| 1490 #if defined(OS_WIN) | 1494 #if defined(OS_WIN) |
| 1491 BrowserAccessibilityManager::GetInstance()-> | 1495 BrowserAccessibilityManager::GetInstance()-> |
| 1492 ChangeAccessibilityFocus(acc_obj_id, process()->pid(), routing_id()); | 1496 ChangeAccessibilityFocus(acc_obj_id, process()->pid(), routing_id()); |
| 1493 #else | 1497 #else |
| 1494 // TODO(port): accessibility not yet implemented. See http://crbug.com/8288. | 1498 // TODO(port): accessibility not yet implemented. See http://crbug.com/8288. |
| 1495 #endif | 1499 #endif |
| 1496 } | 1500 } |
| OLD | NEW |