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 "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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 88 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
89 int item_height, | 89 int item_height, |
90 double item_font_size, | 90 double item_font_size, |
91 int selected_item, | 91 int selected_item, |
92 const std::vector<WebMenuItem>& items, | 92 const std::vector<WebMenuItem>& items, |
93 bool right_aligned, | 93 bool right_aligned, |
94 bool allow_multiple_selection) OVERRIDE {} | 94 bool allow_multiple_selection) OVERRIDE {} |
95 virtual void StartDragging(const WebDropData& drop_data, | 95 virtual void StartDragging(const WebDropData& drop_data, |
96 WebKit::WebDragOperationsMask allowed_ops, | 96 WebKit::WebDragOperationsMask allowed_ops, |
97 const gfx::ImageSkia& image, | 97 const gfx::ImageSkia& image, |
98 const gfx::Point& image_offset) OVERRIDE { | 98 const gfx::Vector2d& image_offset) OVERRIDE { |
99 drag_url_ = drop_data.url; | 99 drag_url_ = drop_data.url; |
100 html_base_url_ = drop_data.html_base_url; | 100 html_base_url_ = drop_data.html_base_url; |
101 } | 101 } |
102 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE {} | 102 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE {} |
103 virtual void GotFocus() OVERRIDE {} | 103 virtual void GotFocus() OVERRIDE {} |
104 virtual void TakeFocus(bool reverse) OVERRIDE {} | 104 virtual void TakeFocus(bool reverse) OVERRIDE {} |
105 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} | 105 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} |
106 | 106 |
107 GURL drag_url() { | 107 GURL drag_url() { |
108 return drag_url_; | 108 return drag_url_; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 // OnMsgInputEventAck() processing. | 219 // OnMsgInputEventAck() processing. |
220 IPC::Message message(0, ViewHostMsg_HandleInputEvent_ACK::ID, | 220 IPC::Message message(0, ViewHostMsg_HandleInputEvent_ACK::ID, |
221 IPC::Message::PRIORITY_NORMAL); | 221 IPC::Message::PRIORITY_NORMAL); |
222 test_rvh()->OnMessageReceived(message); | 222 test_rvh()->OnMessageReceived(message); |
223 EXPECT_EQ(1, process()->bad_msg_count()); | 223 EXPECT_EQ(1, process()->bad_msg_count()); |
224 } | 224 } |
225 | 225 |
226 #endif | 226 #endif |
227 | 227 |
228 } // namespace content | 228 } // namespace content |
OLD | NEW |