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_PUBLIC_TEST_RENDER_VIEW_TEST_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ |
6 #define CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ | 6 #define CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 gfx::Rect GetElementBounds(const std::string& element_id); | 102 gfx::Rect GetElementBounds(const std::string& element_id); |
103 | 103 |
104 // Sends a left mouse click in the middle of the element with id |element_id|. | 104 // Sends a left mouse click in the middle of the element with id |element_id|. |
105 // Returns true if the event was sent, false otherwise (typically because | 105 // Returns true if the event was sent, false otherwise (typically because |
106 // the element was not found). | 106 // the element was not found). |
107 bool SimulateElementClick(const std::string& element_id); | 107 bool SimulateElementClick(const std::string& element_id); |
108 | 108 |
109 // Simulates |node| being focused. | 109 // Simulates |node| being focused. |
110 void SetFocused(const blink::WebNode& node); | 110 void SetFocused(const blink::WebNode& node); |
111 | 111 |
112 // Clears anything associated with the browsing history. | |
113 void ClearHistory(); | |
114 | |
115 // Simulates a navigation with a type of reload to the given url. | 112 // Simulates a navigation with a type of reload to the given url. |
116 void Reload(const GURL& url); | 113 void Reload(const GURL& url); |
117 | 114 |
118 // Returns the IPC message ID of the navigation message. | 115 // Returns the IPC message ID of the navigation message. |
119 uint32 GetNavigationIPCType(); | 116 uint32 GetNavigationIPCType(); |
120 | 117 |
121 // Resize the view. | 118 // Resize the view. |
122 void Resize(gfx::Size new_size, | 119 void Resize(gfx::Size new_size, |
123 gfx::Rect resizer_rect, | 120 gfx::Rect resizer_rect, |
124 bool is_fullscreen); | 121 bool is_fullscreen); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 scoped_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; | 160 scoped_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; |
164 #endif | 161 #endif |
165 | 162 |
166 private: | 163 private: |
167 void GoToOffset(int offset, const PageState& state); | 164 void GoToOffset(int offset, const PageState& state); |
168 }; | 165 }; |
169 | 166 |
170 } // namespace content | 167 } // namespace content |
171 | 168 |
172 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ | 169 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ |
OLD | NEW |