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

Side by Side Diff: content/browser/renderer_host/render_widget_host_unittest.cc

Issue 1440923002: Convert the coordinates in WebInputEvent To Viewport in InputRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 client_->FilterInputEvent(touch_event.event, touch_event.latency) == 112 client_->FilterInputEvent(touch_event.event, touch_event.latency) ==
113 INPUT_EVENT_ACK_STATE_NOT_CONSUMED; 113 INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
114 } 114 }
115 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const override { 115 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const override {
116 NOTREACHED(); 116 NOTREACHED();
117 return NULL; 117 return NULL;
118 } 118 }
119 void NotifySiteIsMobileOptimized(bool is_mobile_optimized) override {} 119 void NotifySiteIsMobileOptimized(bool is_mobile_optimized) override {}
120 void RequestNotificationWhenFlushed() override {} 120 void RequestNotificationWhenFlushed() override {}
121 bool HasPendingEvents() const override { return false; } 121 bool HasPendingEvents() const override { return false; }
122 void SetDeviceScaleFactor(float device_scale_factor) override {}
122 123
123 // IPC::Listener 124 // IPC::Listener
124 bool OnMessageReceived(const IPC::Message& message) override { 125 bool OnMessageReceived(const IPC::Message& message) override {
125 message_received_ = true; 126 message_received_ = true;
126 return false; 127 return false;
127 } 128 }
128 129
129 bool send_event_called_; 130 bool send_event_called_;
130 bool sent_mouse_event_; 131 bool sent_mouse_event_;
131 bool sent_wheel_event_; 132 bool sent_wheel_event_;
(...skipping 1514 matching lines...) Expand 10 before | Expand all | Expand 10 after
1646 // Having an initial size set means that the size information had been sent 1647 // Having an initial size set means that the size information had been sent
1647 // with the reqiest to new up the RenderView and so subsequent WasResized 1648 // with the reqiest to new up the RenderView and so subsequent WasResized
1648 // calls should not result in new IPC (unless the size has actually changed). 1649 // calls should not result in new IPC (unless the size has actually changed).
1649 host_->WasResized(); 1650 host_->WasResized();
1650 EXPECT_FALSE(process_->sink().GetUniqueMessageMatching(ViewMsg_Resize::ID)); 1651 EXPECT_FALSE(process_->sink().GetUniqueMessageMatching(ViewMsg_Resize::ID));
1651 EXPECT_EQ(initial_size_, host_->old_resize_params_->new_size); 1652 EXPECT_EQ(initial_size_, host_->old_resize_params_->new_size);
1652 EXPECT_TRUE(host_->resize_ack_pending_); 1653 EXPECT_TRUE(host_->resize_ack_pending_);
1653 } 1654 }
1654 1655
1655 } // namespace content 1656 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698