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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac_unittest.mm

Issue 1391843006: Embed keyboard shortcut bit in WebKeyboardEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mac test compile Created 5 years, 2 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/browser/renderer_host/render_widget_host_view_mac.h" 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
6 6
7 #include <Cocoa/Cocoa.h> 7 #include <Cocoa/Cocoa.h>
8 8
9 #include "base/mac/mac_util.h" 9 #include "base/mac/mac_util.h"
10 #include "base/mac/scoped_nsautorelease_pool.h" 10 #include "base/mac/scoped_nsautorelease_pool.h"
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 message = process_host_->sink().GetMessageAt(0); 920 message = process_host_->sink().GetMessageAt(0);
921 break; 921 break;
922 case 2: 922 case 2:
923 message = process_host_->sink().GetMessageAt(1); 923 message = process_host_->sink().GetMessageAt(1);
924 break; 924 break;
925 default: 925 default:
926 NOTREACHED(); 926 NOTREACHED();
927 break; 927 break;
928 } 928 }
929 DCHECK(message); 929 DCHECK(message);
930 base::Tuple<IPC::WebInputEventPointer, ui::LatencyInfo, bool> data; 930 base::Tuple<IPC::WebInputEventPointer, ui::LatencyInfo> data;
931 InputMsg_HandleInputEvent::Read(message, &data); 931 InputMsg_HandleInputEvent::Read(message, &data);
932 IPC::WebInputEventPointer ipc_event = base::get<0>(data); 932 IPC::WebInputEventPointer ipc_event = base::get<0>(data);
933 const blink::WebGestureEvent* gesture_event = 933 const blink::WebGestureEvent* gesture_event =
934 static_cast<const blink::WebGestureEvent*>(ipc_event); 934 static_cast<const blink::WebGestureEvent*>(ipc_event);
935 return gesture_event->data.pinchUpdate.zoomDisabled; 935 return gesture_event->data.pinchUpdate.zoomDisabled;
936 } 936 }
937 937
938 MockRenderProcessHost* process_host_; 938 MockRenderProcessHost* process_host_;
939 }; 939 };
940 940
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 EXPECT_EQ(1U, process_host_->sink().message_count()); 1054 EXPECT_EQ(1U, process_host_->sink().message_count());
1055 process_host_->sink().ClearMessages(); 1055 process_host_->sink().ClearMessages();
1056 } 1056 }
1057 1057
1058 // Clean up. 1058 // Clean up.
1059 host->Shutdown(); 1059 host->Shutdown();
1060 } 1060 }
1061 1061
1062 1062
1063 } // namespace content 1063 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_unittest.cc ('k') | content/common/input/input_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698