| 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 "content/browser/child_process_security_policy_impl.h" | 5 #include "content/browser/child_process_security_policy_impl.h" |
| 6 #include "content/browser/renderer_host/test_render_view_host.h" | 6 #include "content/browser/renderer_host/test_render_view_host.h" |
| 7 #include "content/browser/tab_contents/navigation_controller_impl.h" | 7 #include "content/browser/tab_contents/navigation_controller_impl.h" |
| 8 #include "content/browser/tab_contents/test_tab_contents.h" | 8 #include "content/browser/tab_contents/test_tab_contents.h" |
| 9 #include "content/common/view_messages.h" | 9 #include "content/common/view_messages.h" |
| 10 #include "content/public/browser/navigation_entry.h" | 10 #include "content/public/browser/navigation_entry.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 virtual void CreateNewWidget(int route_id, | 70 virtual void CreateNewWidget(int route_id, |
| 71 WebKit::WebPopupType popup_type) {} | 71 WebKit::WebPopupType popup_type) {} |
| 72 virtual void CreateNewFullscreenWidget(int route_id) {} | 72 virtual void CreateNewFullscreenWidget(int route_id) {} |
| 73 virtual void ShowCreatedWindow(int route_id, | 73 virtual void ShowCreatedWindow(int route_id, |
| 74 WindowOpenDisposition disposition, | 74 WindowOpenDisposition disposition, |
| 75 const gfx::Rect& initial_pos, | 75 const gfx::Rect& initial_pos, |
| 76 bool user_gesture) {} | 76 bool user_gesture) {} |
| 77 virtual void ShowCreatedWidget(int route_id, | 77 virtual void ShowCreatedWidget(int route_id, |
| 78 const gfx::Rect& initial_pos) {} | 78 const gfx::Rect& initial_pos) {} |
| 79 virtual void ShowCreatedFullscreenWidget(int route_id) {} | 79 virtual void ShowCreatedFullscreenWidget(int route_id) {} |
| 80 virtual void ShowContextMenu(const ContextMenuParams& params) {} | 80 virtual void ShowContextMenu(const content::ContextMenuParams& params) {} |
| 81 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 81 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
| 82 int item_height, | 82 int item_height, |
| 83 double item_font_size, | 83 double item_font_size, |
| 84 int selected_item, | 84 int selected_item, |
| 85 const std::vector<WebMenuItem>& items, | 85 const std::vector<WebMenuItem>& items, |
| 86 bool right_aligned) {} | 86 bool right_aligned) {} |
| 87 virtual void StartDragging(const WebDropData& drop_data, | 87 virtual void StartDragging(const WebDropData& drop_data, |
| 88 WebKit::WebDragOperationsMask allowed_ops, | 88 WebKit::WebDragOperationsMask allowed_ops, |
| 89 const SkBitmap& image, | 89 const SkBitmap& image, |
| 90 const gfx::Point& image_offset) { | 90 const gfx::Point& image_offset) { |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 // the code actually expects it to have at least one int para, this this | 190 // the code actually expects it to have at least one int para, this this |
| 191 // bogus message will not fail at de-serialization but should fail in | 191 // bogus message will not fail at de-serialization but should fail in |
| 192 // OnMsgInputEventAck() processing. | 192 // OnMsgInputEventAck() processing. |
| 193 IPC::Message message(0, ViewHostMsg_HandleInputEvent_ACK::ID, | 193 IPC::Message message(0, ViewHostMsg_HandleInputEvent_ACK::ID, |
| 194 IPC::Message::PRIORITY_NORMAL); | 194 IPC::Message::PRIORITY_NORMAL); |
| 195 rvh()->TestOnMessageReceived(message); | 195 rvh()->TestOnMessageReceived(message); |
| 196 EXPECT_EQ(1, process()->bad_msg_count()); | 196 EXPECT_EQ(1, process()->bad_msg_count()); |
| 197 } | 197 } |
| 198 | 198 |
| 199 #endif | 199 #endif |
| OLD | NEW |