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

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

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebasefinal Created 8 years, 1 month 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 | Annotate | Revision Log
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/utf_string_conversions.h" 5 #include "base/utf_string_conversions.h"
6 #include "content/browser/child_process_security_policy_impl.h" 6 #include "content/browser/child_process_security_policy_impl.h"
7 #include "content/browser/renderer_host/test_render_view_host.h" 7 #include "content/browser/renderer_host/test_render_view_host.h"
8 #include "content/browser/web_contents/navigation_controller_impl.h" 8 #include "content/browser/web_contents/navigation_controller_impl.h"
9 #include "content/browser/web_contents/test_web_contents.h" 9 #include "content/browser/web_contents/test_web_contents.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 virtual void ShowPopupMenu(const gfx::Rect& bounds, 89 virtual void ShowPopupMenu(const gfx::Rect& bounds,
90 int item_height, 90 int item_height,
91 double item_font_size, 91 double item_font_size,
92 int selected_item, 92 int selected_item,
93 const std::vector<WebMenuItem>& items, 93 const std::vector<WebMenuItem>& items,
94 bool right_aligned, 94 bool right_aligned,
95 bool allow_multiple_selection) OVERRIDE {} 95 bool allow_multiple_selection) OVERRIDE {}
96 virtual void StartDragging(const WebDropData& drop_data, 96 virtual void StartDragging(const WebDropData& drop_data,
97 WebKit::WebDragOperationsMask allowed_ops, 97 WebKit::WebDragOperationsMask allowed_ops,
98 const gfx::ImageSkia& image, 98 const gfx::ImageSkia& image,
99 const gfx::Point& image_offset) OVERRIDE { 99 const gfx::Vector2d& image_offset) OVERRIDE {
100 drag_url_ = drop_data.url; 100 drag_url_ = drop_data.url;
101 html_base_url_ = drop_data.html_base_url; 101 html_base_url_ = drop_data.html_base_url;
102 } 102 }
103 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE {} 103 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE {}
104 virtual void GotFocus() OVERRIDE {} 104 virtual void GotFocus() OVERRIDE {}
105 virtual void TakeFocus(bool reverse) OVERRIDE {} 105 virtual void TakeFocus(bool reverse) OVERRIDE {}
106 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} 106 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {}
107 107
108 GURL drag_url() { 108 GURL drag_url() {
109 return drag_url_; 109 return drag_url_;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // the code actually expects it to have at least one int para, this this 218 // the code actually expects it to have at least one int para, this this
219 // bogus message will not fail at de-serialization but should fail in 219 // bogus message will not fail at de-serialization but should fail in
220 // OnMsgInputEventAck() processing. 220 // OnMsgInputEventAck() processing.
221 IPC::Message message(0, ViewHostMsg_HandleInputEvent_ACK::ID, 221 IPC::Message message(0, ViewHostMsg_HandleInputEvent_ACK::ID,
222 IPC::Message::PRIORITY_NORMAL); 222 IPC::Message::PRIORITY_NORMAL);
223 test_rvh()->OnMessageReceived(message); 223 test_rvh()->OnMessageReceived(message);
224 EXPECT_EQ(1, process()->bad_msg_count()); 224 EXPECT_EQ(1, process()->bad_msg_count());
225 } 225 }
226 226
227 #endif 227 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698