 Chromium Code Reviews
 Chromium Code Reviews Issue 1797393008:
  PlzNavigate: fix two RenderViewImplTests related to history  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 1797393008:
  PlzNavigate: fix two RenderViewImplTests related to history  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| 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 <stdint.h> | 8 #include <stdint.h> | 
| 9 | 9 | 
| 10 #include <string> | 10 #include <string> | 
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 96 // instead of LoadHTML for tests that cannot use a data: url (for example if | 96 // instead of LoadHTML for tests that cannot use a data: url (for example if | 
| 97 // document.location needs to be set to something specific.) | 97 // document.location needs to be set to something specific.) | 
| 98 void LoadHTMLWithUrlOverride(const char* html, const char* url); | 98 void LoadHTMLWithUrlOverride(const char* html, const char* url); | 
| 99 | 99 | 
| 100 // Returns the current PageState. | 100 // Returns the current PageState. | 
| 101 // In OOPIF enabled modes, this returns a PageState object for the main frame. | 101 // In OOPIF enabled modes, this returns a PageState object for the main frame. | 
| 102 PageState GetCurrentPageState(); | 102 PageState GetCurrentPageState(); | 
| 103 | 103 | 
| 104 // Navigates the main frame back or forward in session history and commits. | 104 // Navigates the main frame back or forward in session history and commits. | 
| 105 // The caller must capture a PageState for the target page. | 105 // The caller must capture a PageState for the target page. | 
| 106 void GoBack(const PageState& state); | 106 void GoBack(const GURL& url, const PageState& state); | 
| 
sky
2016/03/23 21:33:32
Seems bizarre that goback/forward take a url. Don'
 
Charlie Reis
2016/03/23 21:51:14
I think it's serialized inside the PageState.  I'm
 | |
| 107 void GoForward(const PageState& state); | 107 void GoForward(const GURL& url, const PageState& state); | 
| 108 | 108 | 
| 109 // Sends one native key event over IPC. | 109 // Sends one native key event over IPC. | 
| 110 void SendNativeKeyEvent(const NativeWebKeyboardEvent& key_event); | 110 void SendNativeKeyEvent(const NativeWebKeyboardEvent& key_event); | 
| 111 | 111 | 
| 112 // Send a raw keyboard event to the renderer. | 112 // Send a raw keyboard event to the renderer. | 
| 113 void SendWebKeyboardEvent(const blink::WebKeyboardEvent& key_event); | 113 void SendWebKeyboardEvent(const blink::WebKeyboardEvent& key_event); | 
| 114 | 114 | 
| 115 // Send a raw mouse event to the renderer. | 115 // Send a raw mouse event to the renderer. | 
| 116 void SendWebMouseEvent(const blink::WebMouseEvent& mouse_event); | 116 void SendWebMouseEvent(const blink::WebMouseEvent& mouse_event); | 
| 117 | 117 | 
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 206 | 206 | 
| 207 // For Mojo. | 207 // For Mojo. | 
| 208 scoped_ptr<base::TestIOThread> test_io_thread_; | 208 scoped_ptr<base::TestIOThread> test_io_thread_; | 
| 209 scoped_ptr<mojo::edk::test::ScopedIPCSupport> ipc_support_; | 209 scoped_ptr<mojo::edk::test::ScopedIPCSupport> ipc_support_; | 
| 210 | 210 | 
| 211 #if defined(OS_MACOSX) | 211 #if defined(OS_MACOSX) | 
| 212 scoped_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; | 212 scoped_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; | 
| 213 #endif | 213 #endif | 
| 214 | 214 | 
| 215 private: | 215 private: | 
| 216 void GoToOffset(int offset, const PageState& state); | 216 void GoToOffset(int offset, const GURL& url, const PageState& state); | 
| 217 }; | 217 }; | 
| 218 | 218 | 
| 219 } // namespace content | 219 } // namespace content | 
| 220 | 220 | 
| 221 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ | 221 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ | 
| OLD | NEW |