Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 2667283007: Refactor Samsung SmartClip implementation. (Closed)
Patch Set: Rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after
2690 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); 2689 INPUT_EVENT_ACK_STATE_NOT_CONSUMED);
2691 } 2690 }
2692 2691
2693 std::unique_ptr<InputEventAck> ack( 2692 std::unique_ptr<InputEventAck> ack(
2694 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type(), 2693 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type(),
2695 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); 2694 INPUT_EVENT_ACK_STATE_NOT_CONSUMED));
2696 OnInputEventAck(std::move(ack)); 2695 OnInputEventAck(std::move(ack));
2697 } 2696 }
2698 2697
2699 } // namespace content 2698 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698