| 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/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1232 IPC_MESSAGE_HANDLER(PageMsg_SetDeviceScaleFactor, OnSetDeviceScaleFactor); | 1232 IPC_MESSAGE_HANDLER(PageMsg_SetDeviceScaleFactor, OnSetDeviceScaleFactor); |
| 1233 IPC_MESSAGE_HANDLER(PageMsg_WasHidden, OnPageWasHidden) | 1233 IPC_MESSAGE_HANDLER(PageMsg_WasHidden, OnPageWasHidden) |
| 1234 IPC_MESSAGE_HANDLER(PageMsg_WasShown, OnPageWasShown) | 1234 IPC_MESSAGE_HANDLER(PageMsg_WasShown, OnPageWasShown) |
| 1235 IPC_MESSAGE_HANDLER(PageMsg_SetHistoryOffsetAndLength, | 1235 IPC_MESSAGE_HANDLER(PageMsg_SetHistoryOffsetAndLength, |
| 1236 OnSetHistoryOffsetAndLength) | 1236 OnSetHistoryOffsetAndLength) |
| 1237 IPC_MESSAGE_HANDLER(PageMsg_AudioStateChanged, OnAudioStateChanged) | 1237 IPC_MESSAGE_HANDLER(PageMsg_AudioStateChanged, OnAudioStateChanged) |
| 1238 | 1238 |
| 1239 #if defined(OS_ANDROID) | 1239 #if defined(OS_ANDROID) |
| 1240 IPC_MESSAGE_HANDLER(ViewMsg_UpdateBrowserControlsState, | 1240 IPC_MESSAGE_HANDLER(ViewMsg_UpdateBrowserControlsState, |
| 1241 OnUpdateBrowserControlsState) | 1241 OnUpdateBrowserControlsState) |
| 1242 IPC_MESSAGE_HANDLER(ViewMsg_ExtractSmartClipData, OnExtractSmartClipData) | |
| 1243 #elif defined(OS_MACOSX) | 1242 #elif defined(OS_MACOSX) |
| 1244 IPC_MESSAGE_HANDLER(ViewMsg_GetRenderedText, | 1243 IPC_MESSAGE_HANDLER(ViewMsg_GetRenderedText, |
| 1245 OnGetRenderedText) | 1244 OnGetRenderedText) |
| 1246 IPC_MESSAGE_HANDLER(ViewMsg_Close, OnClose) | 1245 IPC_MESSAGE_HANDLER(ViewMsg_Close, OnClose) |
| 1247 #endif | 1246 #endif |
| 1248 // Adding a new message? Add platform independent ones first, then put the | 1247 // Adding a new message? Add platform independent ones first, then put the |
| 1249 // platform specific ones at the end. | 1248 // platform specific ones at the end. |
| 1250 | 1249 |
| 1251 // Have the super handle all other messages. | 1250 // Have the super handle all other messages. |
| 1252 IPC_MESSAGE_UNHANDLED(handled = RenderWidget::OnMessageReceived(message)) | 1251 IPC_MESSAGE_UNHANDLED(handled = RenderWidget::OnMessageReceived(message)) |
| (...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2689 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); | 2688 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); |
| 2690 } | 2689 } |
| 2691 | 2690 |
| 2692 std::unique_ptr<InputEventAck> ack( | 2691 std::unique_ptr<InputEventAck> ack( |
| 2693 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type(), | 2692 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type(), |
| 2694 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); | 2693 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); |
| 2695 OnInputEventAck(std::move(ack)); | 2694 OnInputEventAck(std::move(ack)); |
| 2696 } | 2695 } |
| 2697 | 2696 |
| 2698 } // namespace content | 2697 } // namespace content |
| OLD | NEW |