| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 } | 450 } |
| 451 | 451 |
| 452 void InspectorPageAgent::navigate(ErrorString*, const String& url) | 452 void InspectorPageAgent::navigate(ErrorString*, const String& url) |
| 453 { | 453 { |
| 454 UserGestureIndicator indicator(DefinitelyProcessingNewUserGesture); | 454 UserGestureIndicator indicator(DefinitelyProcessingNewUserGesture); |
| 455 Frame* frame = m_page->mainFrame(); | 455 Frame* frame = m_page->mainFrame(); |
| 456 FrameLoadRequest request(frame->document()->securityOrigin(), ResourceReques
t(frame->document()->completeURL(url))); | 456 FrameLoadRequest request(frame->document()->securityOrigin(), ResourceReques
t(frame->document()->completeURL(url))); |
| 457 frame->loader()->load(request); | 457 frame->loader()->load(request); |
| 458 } | 458 } |
| 459 | 459 |
| 460 void InspectorPageAgent::getNavigationHistory(ErrorString*, int*, RefPtr<TypeBui
lder::Array<TypeBuilder::Page::NavigationHistoryEntry> >&) |
| 461 { } |
| 462 |
| 463 void InspectorPageAgent::navigateToHistoryEntry(ErrorString*, int) |
| 464 { } |
| 465 |
| 460 static PassRefPtr<TypeBuilder::Page::Cookie> buildObjectForCookie(const Cookie&
cookie) | 466 static PassRefPtr<TypeBuilder::Page::Cookie> buildObjectForCookie(const Cookie&
cookie) |
| 461 { | 467 { |
| 462 return TypeBuilder::Page::Cookie::create() | 468 return TypeBuilder::Page::Cookie::create() |
| 463 .setName(cookie.name) | 469 .setName(cookie.name) |
| 464 .setValue(cookie.value) | 470 .setValue(cookie.value) |
| 465 .setDomain(cookie.domain) | 471 .setDomain(cookie.domain) |
| 466 .setPath(cookie.path) | 472 .setPath(cookie.path) |
| 467 .setExpires(cookie.expires) | 473 .setExpires(cookie.expires) |
| 468 .setSize((cookie.name.length() + cookie.value.length())) | 474 .setSize((cookie.name.length() + cookie.value.length())) |
| 469 .setHttpOnly(cookie.httpOnly) | 475 .setHttpOnly(cookie.httpOnly) |
| (...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1290 } | 1296 } |
| 1291 | 1297 |
| 1292 void InspectorPageAgent::setShowViewportSizeOnResize(ErrorString*, bool show, co
nst bool* showGrid) | 1298 void InspectorPageAgent::setShowViewportSizeOnResize(ErrorString*, bool show, co
nst bool* showGrid) |
| 1293 { | 1299 { |
| 1294 m_state->setBoolean(PageAgentState::showSizeOnResize, show); | 1300 m_state->setBoolean(PageAgentState::showSizeOnResize, show); |
| 1295 m_state->setBoolean(PageAgentState::showGridOnResize, showGrid && *showGrid)
; | 1301 m_state->setBoolean(PageAgentState::showGridOnResize, showGrid && *showGrid)
; |
| 1296 } | 1302 } |
| 1297 | 1303 |
| 1298 } // namespace WebCore | 1304 } // namespace WebCore |
| 1299 | 1305 |
| OLD | NEW |