| 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 #ifndef CONTENT_SHELL_LAYOUT_TEST_CONTROLLER_HOST_H_ | 5 #ifndef CONTENT_SHELL_LAYOUT_TEST_CONTROLLER_HOST_H_ |
| 6 #define CONTENT_SHELL_LAYOUT_TEST_CONTROLLER_HOST_H_ | 6 #define CONTENT_SHELL_LAYOUT_TEST_CONTROLLER_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 void OnImageDump(const std::string& actual_pixel_hash, const SkBitmap& image); | 44 void OnImageDump(const std::string& actual_pixel_hash, const SkBitmap& image); |
| 45 | 45 |
| 46 // layoutTestController handlers. | 46 // layoutTestController handlers. |
| 47 void OnNotifyDone(); | 47 void OnNotifyDone(); |
| 48 void OnDumpAsText(); | 48 void OnDumpAsText(); |
| 49 void OnDumpChildFramesAsText(); | 49 void OnDumpChildFramesAsText(); |
| 50 void OnSetPrinting(); | 50 void OnSetPrinting(); |
| 51 void OnSetShouldStayOnPageAfterHandlingBeforeUnload(bool should_stay_on_page); | 51 void OnSetShouldStayOnPageAfterHandlingBeforeUnload(bool should_stay_on_page); |
| 52 void OnWaitUntilDone(); | 52 void OnWaitUntilDone(); |
| 53 | 53 |
| 54 void OnNotImplemented(const std::string& object_name, |
| 55 const std::string& method_name); |
| 56 |
| 54 static std::map<RenderViewHost*, LayoutTestControllerHost*> controllers_; | 57 static std::map<RenderViewHost*, LayoutTestControllerHost*> controllers_; |
| 55 static std::string expected_pixel_hash_; | 58 static std::string expected_pixel_hash_; |
| 56 | 59 |
| 57 bool captured_dump_; | 60 bool captured_dump_; |
| 58 | 61 |
| 59 bool dump_as_text_; | 62 bool dump_as_text_; |
| 60 bool dump_child_frames_; | 63 bool dump_child_frames_; |
| 61 bool is_printing_; | 64 bool is_printing_; |
| 62 bool should_stay_on_page_after_handling_before_unload_; | 65 bool should_stay_on_page_after_handling_before_unload_; |
| 63 bool wait_until_done_; | 66 bool wait_until_done_; |
| 64 | 67 |
| 65 base::CancelableClosure watchdog_; | 68 base::CancelableClosure watchdog_; |
| 66 | 69 |
| 67 DISALLOW_COPY_AND_ASSIGN(LayoutTestControllerHost); | 70 DISALLOW_COPY_AND_ASSIGN(LayoutTestControllerHost); |
| 68 }; | 71 }; |
| 69 | 72 |
| 70 } // namespace content | 73 } // namespace content |
| 71 | 74 |
| 72 #endif // CONTENT_SHELL_LAYOUT_TEST_CONTROLLER_HOST_H_ | 75 #endif // CONTENT_SHELL_LAYOUT_TEST_CONTROLLER_HOST_H_ |
| OLD | NEW |