| 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/site_per_process_browsertest.h" | 5 #include "content/browser/site_per_process_browsertest.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 return events_received_.front(); | 198 return events_received_.front(); |
| 199 } | 199 } |
| 200 const std::vector<blink::WebInputEvent::Type>& events_received() { | 200 const std::vector<blink::WebInputEvent::Type>& events_received() { |
| 201 return events_received_; | 201 return events_received_; |
| 202 } | 202 } |
| 203 | 203 |
| 204 void OnInputEvent(const blink::WebInputEvent& event) override { | 204 void OnInputEvent(const blink::WebInputEvent& event) override { |
| 205 events_received_.push_back(event.type); | 205 events_received_.push_back(event.type); |
| 206 }; | 206 }; |
| 207 | 207 |
| 208 void OnInputEventAck(const blink::WebInputEvent& event) override {}; |
| 209 |
| 208 private: | 210 private: |
| 209 RenderWidgetHost* host_; | 211 RenderWidgetHost* host_; |
| 210 std::vector<blink::WebInputEvent::Type> events_received_; | 212 std::vector<blink::WebInputEvent::Type> events_received_; |
| 211 | 213 |
| 212 DISALLOW_COPY_AND_ASSIGN(TestInputEventObserver); | 214 DISALLOW_COPY_AND_ASSIGN(TestInputEventObserver); |
| 213 }; | 215 }; |
| 214 | 216 |
| 215 // Helper function that performs a surface hittest. | 217 // Helper function that performs a surface hittest. |
| 216 void SurfaceHitTestTestHelper( | 218 void SurfaceHitTestTestHelper( |
| 217 Shell* shell, | 219 Shell* shell, |
| (...skipping 8338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8556 EXPECT_TRUE(NavigateToURL(shell(), b_url)); | 8558 EXPECT_TRUE(NavigateToURL(shell(), b_url)); |
| 8557 | 8559 |
| 8558 base::string16 expected_title(base::UTF8ToUTF16("foo")); | 8560 base::string16 expected_title(base::UTF8ToUTF16("foo")); |
| 8559 TitleWatcher title_watcher(popup2->web_contents(), expected_title); | 8561 TitleWatcher title_watcher(popup2->web_contents(), expected_title); |
| 8560 EXPECT_TRUE(ExecuteScript( | 8562 EXPECT_TRUE(ExecuteScript( |
| 8561 shell(), "window.open('','popup2').postMessage('foo', '*');")); | 8563 shell(), "window.open('','popup2').postMessage('foo', '*');")); |
| 8562 EXPECT_EQ(expected_title, title_watcher.WaitAndGetTitle()); | 8564 EXPECT_EQ(expected_title, title_watcher.WaitAndGetTitle()); |
| 8563 } | 8565 } |
| 8564 | 8566 |
| 8565 } // namespace content | 8567 } // namespace content |
| OLD | NEW |