| 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 #if defined(ENABLE_PEPPER) | 5 #if defined(ENABLE_PEPPER) |
| 6 #define PEPPER_APIS_ENABLED | 6 #define PEPPER_APIS_ENABLED |
| 7 #endif | 7 #endif |
| 8 | 8 |
| 9 #include "chrome/renderer/render_view.h" | 9 #include "chrome/renderer/render_view.h" |
| 10 | 10 |
| (...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1391 true); // autodetected | 1391 true); // autodetected |
| 1392 | 1392 |
| 1393 Send(new ViewHostMsg_DidStopLoading(routing_id_)); | 1393 Send(new ViewHostMsg_DidStopLoading(routing_id_)); |
| 1394 | 1394 |
| 1395 MessageLoop::current()->PostDelayedTask(FROM_HERE, | 1395 MessageLoop::current()->PostDelayedTask(FROM_HERE, |
| 1396 method_factory_.NewRunnableMethod(&RenderView::CapturePageInfo, page_id_, | 1396 method_factory_.NewRunnableMethod(&RenderView::CapturePageInfo, page_id_, |
| 1397 false), | 1397 false), |
| 1398 kDelayForCaptureMs); | 1398 kDelayForCaptureMs); |
| 1399 } | 1399 } |
| 1400 | 1400 |
| 1401 bool RenderView::shouldBeginEditing(const WebRange& range) { | |
| 1402 return true; | |
| 1403 } | |
| 1404 | |
| 1405 bool RenderView::shouldEndEditing(const WebRange& range) { | |
| 1406 return true; | |
| 1407 } | |
| 1408 | |
| 1409 bool RenderView::shouldInsertNode(const WebNode& node, const WebRange& range, | |
| 1410 WebEditingAction action) { | |
| 1411 return true; | |
| 1412 } | |
| 1413 | |
| 1414 bool RenderView::shouldInsertText(const WebString& text, const WebRange& range, | |
| 1415 WebEditingAction action) { | |
| 1416 return true; | |
| 1417 } | |
| 1418 | |
| 1419 bool RenderView::shouldChangeSelectedRange(const WebRange& from_range, | |
| 1420 const WebRange& to_range, | |
| 1421 WebTextAffinity affinity, | |
| 1422 bool still_selecting) { | |
| 1423 return true; | |
| 1424 } | |
| 1425 | |
| 1426 bool RenderView::shouldDeleteRange(const WebRange& range) { | |
| 1427 return true; | |
| 1428 } | |
| 1429 | |
| 1430 bool RenderView::shouldApplyStyle(const WebString& style, | |
| 1431 const WebRange& range) { | |
| 1432 return true; | |
| 1433 } | |
| 1434 | |
| 1435 bool RenderView::isSmartInsertDeleteEnabled() { | |
| 1436 return true; | |
| 1437 } | |
| 1438 | |
| 1439 bool RenderView::isSelectTrailingWhitespaceEnabled() { | 1401 bool RenderView::isSelectTrailingWhitespaceEnabled() { |
| 1440 #if defined(OS_WIN) | 1402 #if defined(OS_WIN) |
| 1441 return true; | 1403 return true; |
| 1442 #else | 1404 #else |
| 1443 return false; | 1405 return false; |
| 1444 #endif | 1406 #endif |
| 1445 } | 1407 } |
| 1446 | 1408 |
| 1447 void RenderView::setInputMethodEnabled(bool enabled) { | 1409 void RenderView::setInputMethodEnabled(bool enabled) { |
| 1448 // Save the updated IME status and mark the input focus has been updated. | 1410 // Save the updated IME status and mark the input focus has been updated. |
| (...skipping 2322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3771 new PluginMsg_SignalModalDialogEvent(host_window_)); | 3733 new PluginMsg_SignalModalDialogEvent(host_window_)); |
| 3772 | 3734 |
| 3773 message->EnableMessagePumping(); // Runs a nested message loop. | 3735 message->EnableMessagePumping(); // Runs a nested message loop. |
| 3774 bool rv = Send(message); | 3736 bool rv = Send(message); |
| 3775 | 3737 |
| 3776 PluginChannelHost::Broadcast( | 3738 PluginChannelHost::Broadcast( |
| 3777 new PluginMsg_ResetModalDialogEvent(host_window_)); | 3739 new PluginMsg_ResetModalDialogEvent(host_window_)); |
| 3778 | 3740 |
| 3779 return rv; | 3741 return rv; |
| 3780 } | 3742 } |
| OLD | NEW |