| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/renderer/render_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 1580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1591 OnGetSavableResourceLinks) | 1591 OnGetSavableResourceLinks) |
| 1592 IPC_MESSAGE_HANDLER(FrameMsg_GetSerializedHtmlWithLocalLinks, | 1592 IPC_MESSAGE_HANDLER(FrameMsg_GetSerializedHtmlWithLocalLinks, |
| 1593 OnGetSerializedHtmlWithLocalLinks) | 1593 OnGetSerializedHtmlWithLocalLinks) |
| 1594 IPC_MESSAGE_HANDLER(FrameMsg_SerializeAsMHTML, OnSerializeAsMHTML) | 1594 IPC_MESSAGE_HANDLER(FrameMsg_SerializeAsMHTML, OnSerializeAsMHTML) |
| 1595 IPC_MESSAGE_HANDLER(FrameMsg_Find, OnFind) | 1595 IPC_MESSAGE_HANDLER(FrameMsg_Find, OnFind) |
| 1596 IPC_MESSAGE_HANDLER(FrameMsg_ClearActiveFindMatch, OnClearActiveFindMatch) | 1596 IPC_MESSAGE_HANDLER(FrameMsg_ClearActiveFindMatch, OnClearActiveFindMatch) |
| 1597 IPC_MESSAGE_HANDLER(FrameMsg_StopFinding, OnStopFinding) | 1597 IPC_MESSAGE_HANDLER(FrameMsg_StopFinding, OnStopFinding) |
| 1598 IPC_MESSAGE_HANDLER(FrameMsg_EnableViewSourceMode, OnEnableViewSourceMode) | 1598 IPC_MESSAGE_HANDLER(FrameMsg_EnableViewSourceMode, OnEnableViewSourceMode) |
| 1599 IPC_MESSAGE_HANDLER(FrameMsg_SuppressFurtherDialogs, | 1599 IPC_MESSAGE_HANDLER(FrameMsg_SuppressFurtherDialogs, |
| 1600 OnSuppressFurtherDialogs) | 1600 OnSuppressFurtherDialogs) |
| 1601 IPC_MESSAGE_HANDLER(FrameMsg_SetHasReceivedUserGesture, |
| 1602 OnSetHasReceivedUserGesture) |
| 1601 IPC_MESSAGE_HANDLER(FrameMsg_RunFileChooserResponse, OnFileChooserResponse) | 1603 IPC_MESSAGE_HANDLER(FrameMsg_RunFileChooserResponse, OnFileChooserResponse) |
| 1602 #if defined(OS_ANDROID) | 1604 #if defined(OS_ANDROID) |
| 1603 IPC_MESSAGE_HANDLER(FrameMsg_ActivateNearestFindResult, | 1605 IPC_MESSAGE_HANDLER(FrameMsg_ActivateNearestFindResult, |
| 1604 OnActivateNearestFindResult) | 1606 OnActivateNearestFindResult) |
| 1605 IPC_MESSAGE_HANDLER(FrameMsg_GetNearestFindResult, | 1607 IPC_MESSAGE_HANDLER(FrameMsg_GetNearestFindResult, |
| 1606 OnGetNearestFindResult) | 1608 OnGetNearestFindResult) |
| 1607 IPC_MESSAGE_HANDLER(FrameMsg_FindMatchRects, OnFindMatchRects) | 1609 IPC_MESSAGE_HANDLER(FrameMsg_FindMatchRects, OnFindMatchRects) |
| 1608 #endif | 1610 #endif |
| 1609 | 1611 |
| 1610 #if defined(USE_EXTERNAL_POPUP_MENU) | 1612 #if defined(USE_EXTERNAL_POPUP_MENU) |
| (...skipping 3874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5485 void RenderFrameImpl::OnEnableViewSourceMode() { | 5487 void RenderFrameImpl::OnEnableViewSourceMode() { |
| 5486 DCHECK(frame_); | 5488 DCHECK(frame_); |
| 5487 DCHECK(!frame_->parent()); | 5489 DCHECK(!frame_->parent()); |
| 5488 frame_->enableViewSourceMode(true); | 5490 frame_->enableViewSourceMode(true); |
| 5489 } | 5491 } |
| 5490 | 5492 |
| 5491 void RenderFrameImpl::OnSuppressFurtherDialogs() { | 5493 void RenderFrameImpl::OnSuppressFurtherDialogs() { |
| 5492 suppress_further_dialogs_ = true; | 5494 suppress_further_dialogs_ = true; |
| 5493 } | 5495 } |
| 5494 | 5496 |
| 5497 void RenderFrameImpl::OnSetHasReceivedUserGesture() { |
| 5498 DCHECK(frame_); |
| 5499 frame_->setHasReceivedUserGesture(); |
| 5500 } |
| 5501 |
| 5495 void RenderFrameImpl::OnFileChooserResponse( | 5502 void RenderFrameImpl::OnFileChooserResponse( |
| 5496 const std::vector<content::FileChooserFileInfo>& files) { | 5503 const std::vector<content::FileChooserFileInfo>& files) { |
| 5497 // This could happen if we navigated to a different page before the user | 5504 // This could happen if we navigated to a different page before the user |
| 5498 // closed the chooser. | 5505 // closed the chooser. |
| 5499 if (file_chooser_completions_.empty()) | 5506 if (file_chooser_completions_.empty()) |
| 5500 return; | 5507 return; |
| 5501 | 5508 |
| 5502 // Convert Chrome's SelectedFileInfo list to WebKit's. | 5509 // Convert Chrome's SelectedFileInfo list to WebKit's. |
| 5503 WebVector<blink::WebFileChooserCompletion::SelectedFileInfo> selected_files( | 5510 WebVector<blink::WebFileChooserCompletion::SelectedFileInfo> selected_files( |
| 5504 files.size()); | 5511 files.size()); |
| (...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6579 // event target. Potentially a Pepper plugin will receive the event. | 6586 // event target. Potentially a Pepper plugin will receive the event. |
| 6580 // In order to tell whether a plugin gets the last mouse event and which it | 6587 // In order to tell whether a plugin gets the last mouse event and which it |
| 6581 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6588 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
| 6582 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6589 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
| 6583 // |pepper_last_mouse_event_target_|. | 6590 // |pepper_last_mouse_event_target_|. |
| 6584 pepper_last_mouse_event_target_ = nullptr; | 6591 pepper_last_mouse_event_target_ = nullptr; |
| 6585 #endif | 6592 #endif |
| 6586 } | 6593 } |
| 6587 | 6594 |
| 6588 } // namespace content | 6595 } // namespace content |
| OLD | NEW |